If you have [intrabarordergeneration=true] then the following order will be submitted on the next tick update inside the current bar, or the next bar if the current tick is the last one this bar:
Code: Select all
buy 1 contract next bar at 2400 limit;
I know it can be confusing as
next bar implies the next real bar. That's true only if IOG is false. It would have been better if they had another type of order like:
buy 1 contract next tick at 2400 limit;
and the
next bar would still mean the real next bar even with IOG turned on, and
next tick would apply to the next tick even if IOG is turned off. In other words, use keywords that mean what they say rather than fudge things using IOG statements at the start of the code. Oh well, I suppose we can't have everything.