Low and High of last x candles
-
I would like to get the price value of "high" and "low" of the last "x" candles. I need to use this value in the condition block. What is the quickest/easiest way to accomplish this?
-
@yalgaar Hi, create a loop with "x" as limit, every round add +1 to the candle ID counter, a condition checks the number of candle ID being checked at that round and after it stores the high/low info it in a separate variables (using the modify variable blocks).
You must think what is the max number of candles you are willing to check beforehand.
Hope this helps
If not i am sure savy coders may have a better solution. -
@yalgaar If you want the mean of the high/lows just add the formula blocks at the end of the loop (the yellow conection).