I am coding a strategy that works OnEachTick and that uses time frames of 1 tick, 5 seconds and 60 minutes. This strategy is executed on a 1-minute chart.
My question is the following: I need to take the maximum, minimum, opening and closing values of the current 60-minute candle [0] (the one that is forming) but, until it finishes, the program takes into account the values of the previous candle in each tick (which is the one that is really finished). How can I make it so that, while OnEachTick performs the relevant calculations, it waits until the 60-minute candle finishes so that it only takes into account the values of its closing?
Thank you very much in advance and have a nice day.

Comment