API Support Forum
OEC API > Order Execution > Trailing Stop Orders
Author Topic: Trailing Stop Orders
(2 messages, Page 1 of 1)
Moderators: VPfau
Posts: 20
Joined: Jun 13, 2013

Posted: Aug 30, 2013 @ 11:04 AM             Msg. 1 of 2
I am having trouble submitting a trailing stop order.
I looked at the conversation in the following thread:


I have tried following the example above, but I cannot get it to work. I am using YMU3 in this case and the current price is: 14776

draft->Type = OEC::Data::OrderType::TrailingStopLoss;
draft->Price = 10;
draft->SetTSData(14776, 0);

I get a confirmation that the order is accepted, but immediately after the order is rejected with the message "Invalid absolute offset"

Is there something that I am doing wrong? Did I mis-interpret this thread?

Leigh Carter
Posts: 746
Joined: May 08, 2007

Posted: Sep 03, 2013 @ 02:56 PM             Msg. 2 of 2
I checked a couple of your trailing orders - you need to change Buy to Sell to make these orders with such price acting like a stop

Victor Vins
Lead Software Developer