Hi,
I would like to code an Entry limit order to trail the highest High of the last three bars by X number of ticks.
myEntryLongOrder = EnterLongLimit(0, true, DefaultQuantity, MAX(High,3)[0] - 4 * TickSize, "LongSignal");
barNumberofLongOrder = CurrentBar;
When the limit order is activated by the prescribed conditions it does not trail the high. It simply remains static.
Note two things: I set Live until cancel to true because I wanted the order to remain until it is filled sometime after the signal bar closed.
Second, the signal bar is unique and the bars after it do not meet the trigger conditions.
Any insight would be appreciated.
Comment