API Support Forum
OEC API > API Support > Trailing Stop Loss & Trailing Stop Limit
Author Topic: Trailing Stop Loss & Trailing Stop Limit
(6 messages, Page 1 of 1)
Moderators: VPfau
MFrasson3344
Posts: 45
Joined: Nov 09, 2015


Posted: Aug 22, 2017 @ 08:04 AM             Msg. 1 of 6
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:


Posted: Aug 23, 2017 @ 02:27 PM             Msg. 2 of 6
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


Posted: Aug 24, 2017 @ 04:55 AM             Msg. 3 of 6
>>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:


Posted: Aug 24, 2017 @ 02:53 PM             Msg. 4 of 6
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:


Posted: Sep 07, 2017 @ 11:59 AM             Msg. 5 of 6
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


Posted: Sep 08, 2017 @ 09:43 AM             Msg. 6 of 6
Perfect! Good choice.

Thanks
Mauro frasson