Author |
Topic: Trailing Stop Loss & Trailing Stop Limit (6 messages, Page 1 of 1) |
||||
---|---|---|---|---|---|
Moderators: VPfau | |||||
MFrasson3344 Posts: 45 Joined: Nov 09, 2015 |
Hi,
The ExtData of a Trailing Stop Loss and a Trailing Stop Limit order type is null after the first price update. Is this correct? or could be an API bug? Mauro frasson
|
||||
SRuscak Posts: 7 Joined: |
Hello,
I've been looking into this. If I may ask: What version are you using? Was the behavior different previously? If so, when did it change? Could you please elaborate on the programmatic context in which you are seeing the missing ExtData? I'll let you know what I find out. Seth R Edited by SRuscak on Aug 23, 2017 03:23 PM |
||||
MFrasson3344 Posts: 45 Joined: Nov 09, 2015 |
>>What version are you using?
Last Version -> 3.5.14.36 (Api.dll) Environment: Developer (api.gainfutures.com) >>Was the behavior different previously? If so, when did it change? I do not know. We are adding now Trailing Stop to our application. >>Could you please elaborate on the programmatic context in which you are seeing the missing ExtData? 1) Insert a Trailing Stop Loss or a Trailing Stop Limit using SetTSData to set Reference and Delta (ExtData is not null) 2) Wait until the price of trailing order change automatically. 3) check the ExtData of order and you can see that it is null. Mauro frasson Edited by MFrasson3344 on Aug 24, 2017 07:57 AM Edited by MFrasson3344 on Aug 24, 2017 09:07 AM Edited by MFrasson3344 on Aug 24, 2017 09:08 AM |
||||
SRuscak Posts: 7 Joined: |
I'm still investigating this.
In the meantime, if you need the ExtData it is still available in Version.ExtData for earlier Versions in the Orders.Versions collection. There's no new ExtData information that you're missing out on after Order.ExtData becomes null. Seth R
|
||||
SRuscak Posts: 7 Joined: |
It wasn't part of the original design to include the ExtData on Trailing Stop price modifications, but we agree that it's nice to have. So, in a future release the Order will include the ExtData after price updates.
Seth R
|
||||
MFrasson3344 Posts: 45 Joined: Nov 09, 2015 |
Perfect! Good choice.
Thanks Mauro frasson
|
||||