I have a doubt in my strategy. I am trying to programm a code with
CalculateOnBarClose = false and make a comparison with the data of previous bar. For example, something like this:
If currentprice > Close of previous bar then so something
If I use: if (Close[0]>Close[1]) {...} using this it will refers to the previous tick instead of the close of the previous bar.
Any help about how to do this?.
As a clarification, I am trying to enter in the current price of current bar (by using Close[0]) but with some conditions with respect to the previous bars, and not of the previous ticks of the current bar that is what it seems it is happening if I user Close[1] that refers to previous tick, of Close[2] that refers to 2 ticks before the current one of the same bar.
Thanks in advance.

Comment