I'm developing a multi-timeframe indicator that uses an additional data series. While the indicator correctly draws objects on historical data, I'm encountering an issue when starting the indicator in real-time:
The indicator works on a 5-minute chart with an additional 15-minute data series
It draws dots on each 5-minute candle (first line) and separate dots on 15-minute candles (second line)
Problem: When launching the indicator, it immediately draws a 15-minute dot without waiting for the next 15-minute candle to begin
What I've Tried:
- Using IsFirstTickOfBar didn't resolve the issue
- Various approaches to synchronize the drawing with candle starts
Question:
What would be the proper way to prevent this premature drawing of the 15-minute objects when the indicator initializes?
Thank you

Comment