Checking last candle on every new candle's opening
-
Hi all,
Once per bar, I want to check if last candle's upper wick size is bigger than body size. It doesn't work.
But when i try to check if the last candle's close price is above ema 10 or not, i can do it. Isn't it the same logic? Can you help me ?Thanks a lot
......
candle check.png -
Set Candle ID to 1 when you want to work with the last candle. At the first tick of the new candle O, H, L and C are equal.
-
Thanks a lot. Really appreciate your work here. I have been using it for 2 days, it is amazing.
-
To check previous candles, should I increase candle ID'S +1.
I mean, at the new bar opening, to check last candle, candle ID = 1, and the one before last candle, candle ID = 2 and so on? -
Yes, 0 is the current candle, 1 is the previous candle and so on... 2, 3, 4, 5....
Negative values can also be used to get values that visually appear "in the future" from some indicators like Ichimoku.