Looping Candles and Saving Value for Recall
-
the logic am trying to create is to have a scan from the highest price point to the current price and scan for the closet imbalance candle to the highest price/candle id
like this

I have with the help of @ambrogio been able to ID the highest candle now left with the FVG candle scan
this is how far I have come need your help going forward: https://fxdreema.com/shared/KvrlwTEyc
-
@tec-nacks @ambrogio suggested this, Basically you need a loop to apply the formula to all the candles (7-5) (6-4) (5-3) (4-2) (3-1) until new high is trigger, when a new candle forms they begin (8-6) (7-5) (6-4) and so on........
But I don't know how to go about it
-
You need a complex loop searching for that info. Are you familiar with loops?
-
@l-andorrà No am not
-
Then I recommend to search for 'loop' threads on the search tool and filter them by user 'roar'. Almost everything I learnt of loops was from him. Then try your first loop and we can begin to work from there.
-
@l-andorrà ooh okay
-
@l-andorrà there are over 143 posts by roar on loop, do you know of some specifics post that nails it better?
Wouldn't mind if I can get an heads up
-
Honestly I don't remember any dealing with your specific settings. The idea is understanding how loops work and then create your own. Did you try any first version?