for (double i = today.low; i <= today.high; i += TickSize) { //TODAY = CANDLESTICK. In other words I'm just looping through the high[0] to the low[0] and incrementing by the ticksize
if (i == 1.20909) {
Print("yes");
Print(CurrentBar);
Print(i);
}
if (CurrentBar == 2627) { //this bar includes the price of 1.20909 * see picture
Print("Bar");
Print(i);
}
}
What is puzzling is that the bar 2627 does include the price of 1.20909 which is shown in this picture. Because it does, I would also expect the first condition to be true and give its print outs. It does not.

Comment