With CalculateOnBarClose = true, the price at the current bar can be compared with that of the previous bar, as in:
Close[0] > Close[1]
However, with CalculateOnBarClose = false, is it possible to make the same comparison with successive tick values, such as:
Price this tick > Price previous tick ?
If this is possible, how would this be coded?
(Just to add that I'd be using ordinary range bars for my entry conditions. I'd use the above to code a mathematical function to define a trailing stop.)
Thanks in advance for your help.


Comment