Good day to all!
There was a problem. The indicator, if it is opened in a separate window (indicator_separate_window), is not updated until the next candle occurs. If the indicator is hung on the chart window, then the update (calculation) is correct in real time, i.e. the price has changed – the indicator value has changed immediately.
What could be the catch in the case of a separate window? A normal calculation in real time is absolutely necessary.
Maybe there is some “operator” responsible for this?
Unfortunately, I can’t upload the code here.