I created an indicator and I would like to use it as one of the conditions for an alert in the Market Analyzer. Unfortunately, even though everything works fine in the chart, in the Market analyzer I came across a small thing that makes it impossible to use it this way. I came to the conclusion that the value of the indicator in the MA is set to 0 when a new candle is opened. So if at that time the new candle has a range of 0, i.e. the update of the indicator value was not called because the price change did not take place.
Is it possible for me to somehow set the same value from the previous candle for the moment until OnBarUpdate (on price change) is called for the new candle? Or am I wrong somewhere?
I would like to avoid OnEachTick - which unfortunately also has this manifestation. Also, I would not like to create a special indicator for MA. This internally uses 1m TF + D TF for calculations, but can be used on 5m TF or other - that's why OnPriceChange is important.
Ideas?
Thank you for the suggestions.

Comment