Price indicator during forming of the candle

Algo team,

I use a 10minute heikinashi chart and doing backtesting.

After the first candle is formed, I want to set a condition where the price of second or later candle crosses the high of opening range. The discomfort is I have either choose high, open , close or low from that subsequent candle, where the close would hv peaked much much higher than the opening range-high. And I lose on that rise.

Is there an indicator which reflects the price during the formation of a candle, which I can use and buy/sell when it crosses the high/low of previously formed candle ?

,