Then, I calculate the extremes of each session, the highest high and the lowest low. Once I got these values, obviously only at the last bar of each session, I wanted to draw a straight line at these levels from the beginning of the next RTH session until its end. I have no problem when the overnight session ends because I only need to stretch the past ETH levels to 4:15 on the same day.
The problem arises with the RTH levels since I want to draw them on the RTH portion of the next working day, considering both holidays and weekends. I looked at the Session Iterator pages of the documentation, but I couldn't find a solution. The time granularity of a tick chart is not the same as a time-based chart like a 30-minute chart. I need a calendar calculator. I glimpsed at .NET documentation about DateTime objects but got more confused—the same with NinjaScript documentation about the trading hours templates. I'm sure there's a way, but how?

Comment