I'm new to programming, I need help with a situation. I have an indicator that appears arrows when a certain condition is reached.
When a new arrow is created, I need to store the candle close price in a variable and after 3 candles compare if the price stored is higher or lower than the current candle close price. Regardless of the timeframe the comparison is always made after 3 candles later.
How do I store the candle close price and compare the stored variable after 3 candles closed time?
How do I store the candle close price and compare the stored variable after 3 candles closed time?
Code attached