last 30 candle low
-
Hi all,,
i want to code a loop with blocks that it will count 1 to 30 and set all these candles' low to a seperate variables. I could not make it with with a loop like n, n+1,n+2....etc.
shortly, i need last 30 candles' low which are set 30 different variable. could you help me? regards. -
If I understand it correctly, you want it in a dynamic way, right? I mean, the last 30 lows as new candles are closed, right?
-
@l-andorrà yes thats right. when a condition result is true, it will calculate and set to variable last 30 candles low or high.
-
@turelforex Do you really need 30 highs and lows? Or just the high and the low of the last 30 candles?
-
@trader-philipps no just H or L of the last 30 candles.
-
Then you need this (for highs):

Then you can duplicate it for lows.