I downloaded Scott Daggett's "BzvOpeningRange3" indicator here
This plots the highest high/lowest low of the first x minutes of the open, otherwise known as the Initial Balance (IB).
It uses manually adjustable open and finish times, with the time to stop plotting. This takes into account a change of day which is why I like this indicator. I plot the cash session opening range into the following O/N session. This results in a plot jumping past midnight. Scott's code thus uses "AddDays" to make this work.
stopPlotDT = openDate.AddDays(1) + stopPlotTimeTS; // ie. adding an extra day to the date if it plots past midnight
if (Time[0].DayOfWeek == DayOfWeek.Friday)
{
stopPlotDT = openDate.AddDays(2) + stopPlotTimeTS; [COLOR="SeaGreen"]// into Sunday[/COLOR]
}
else
{
stopPlotDT = openDate.AddDays(1) + stopPlotTimeTS;
}
Thanks a lot.
Sim22


Comment