I have a strategy running on a Renko chart. The Renko chart has a limited timeframe, as defined by the trading hours template. The OnBarUpdate() logic is not being called during the hours that the Renko chart is not printing any new bars. However, OnMarketData() is still being called in the strategy. When I use the ToTime(Time[0]) in OnMarketData(), it is referencing the timestamp of the most recently printed bar of the Renko chart. This is not the current time. How can I access the true current time in OnMarketData(), irrelevant of the bars on the Renko chart?
Thank you in advance for your reply, I look forward to your response!
Comment