Code: Select all
m_CloseBull =
OrderCreator.Limit(new SOrderParameters(Contracts.UserSpecified, "CloseBull", EOrderAction.Sell));
I execute the following code
Code: Select all
m_CloseBull.Send(Bars.Close[0] - trailLimit, Convert.ToInt32(CurrentPosition.OpenLots * percentCloseSize));
After this order is executed and atleast a few bars later, if my exit is triggered, I place the following statement
Code: Select all
m_CloseBull.Send(Bars.Close[0] - trailLimit, CurrentPosition.OpenLots);
Code: Select all
[IOGMode(IOGMode.Enabled)]
[SkipIdenticalTicks(true)]
[UpdateOnEveryTick(true)]
[SameAsSymbol(true)]