Buy Next Bar is a Buy Next tick.... Meaning , after a buy stop order is issued, it is valid only for the next tick (bar). It should be valid for the entire 15 minutes bar. Actually, the entry is done only if the first tick after the order, fulfilled the targeted stop price (LE).
Code: Select all
[intrabarOrderGeneration = true]
if marketposition <> 1 then begin
If Goentry = True then Begin
Buy ("Long1") next bars Q contracts at LE stop;
setstoploss (q * (Range + .0002) * bigpointvalue);
Only the tick placed immediatly after the targeted price will create a long entry.
How could I have my stop order entry valid for a full 15 minutes bar length?