Author |
Topic: Bracket Order -> Price Modification (6 messages, Page 1 of 1) |
||||
---|---|---|---|---|---|
Moderators: VPfau | |||||
MFrasson3344 Posts: 45 Joined: Nov 09, 2015 |
Hi,
If I place a bracket order from Trader Developer and I modify the price of the "main" order on DOM (drag & drop), the linked orders are changed maintaining the same offset. But, if I place a bracket order from my application and I modify the price of the "main" order from my application or from Trader developer the linked orders are NOT changed. I think I forgot to set some property. Maybe DeltaTicks and/or DeltaTicks2? And if so, how should they be set? Thank you. Mauro frasson
|
||||
SRuscak Posts: 7 Joined: |
You are correct, the ModifyOrderDraft's DeltaTicks and DeltaTicks2 should be changed.
For each, if there is a value you should add to it the number of ticks of the price change. |
||||
MFrasson3344 Posts: 45 Joined: Nov 09, 2015 |
I tried, but it does not work. I've tried setting DeltaTicks and DeltaTicks2 of the primary order, and then also of the linked orders, but nothing happens. The price of linked orders does not change if I change the price of the main order. If I change the quantity instead of the price, everything works.
Are you sure DeltaTick and Deltatick2 work? Can you write a sample code please? Mauro frasson
|
||||
SRuscak Posts: 7 Joined: |
Could it be that you omitted the second argument in the SendLinkedOrders call?
client.SendLinkedOrders(mainDraft, OSOGroupingMethod.ByFirstPrice, limitDraft, stopDraft); Seth R
|
||||
MFrasson3344 Posts: 45 Joined: Nov 09, 2015 |
Yes, I did not see the second overload of the function. Now works!
And... Can you describe OSOGroupingMethod? I cannot find it in documentation. Thanks. Mauro frasson
|
||||
SRuscak Posts: 7 Joined: |
Glad to hear you found a solution :)
Yes, we're working on expanding our documentation. It will be available soon. SRuscak
|
||||