Try the following code with the NT CurrentDayOHL indicator. It will give you the High & Low starting with the night session. As for the Open, you have the option to change it to any time you need. I trade futures, but like to keep tabs when the market opens, so mine is CST, 8:30 am.
Hope this this is what you need.
if (currentDate != Bars.GetTradingDayFromLocal(Time[0]) || currentOpen == double.MinValue) { currentOpen = Open[CurrentBar-Bars.GetBar(new DateTime(Time[0].Year,Time[0].Month,Time[0].Day,8,30,0))]; currentHigh = High[0]; currentLow = Low[0]; sameDay = false; } currentHigh = Math.Max(currentHigh, High[0]); currentLow = Math.Min(currentLow, Low[0]); if(ToTime(Time[0]) < ToTime(8,30,0)) { currentOpen = Open[0]; PlotColors[0][0] = Color.Transparent; } if(currentDate == Bars.GetTradingDayFromLocal(Time[0]) && ToTime(Time[0]) >= ToTime(8,30,0)) currentOpen = Close[CurrentBar-Bars.GetBar(new DateTime(Time[0].Year,Time[0].Month,Time[0].Day,8,30,0))];
Comment