if (Bars.FirstBarOfSession )
{
if (Time[0].DayOfWeek == DayOfWeek.Monday)
timeOfInterest = new DateTime(Time[0].Year, Time[0].Month, Time[0].Day - 3, 16, 30, 0);
else
timeOfInterest = new DateTime(Time[0].Year, Time[0].Month, Time[0].Day - 1, 16, 30, 0);
}
barsAgo = GetBar(timeOfInterest) ;
Plot0.Set(VWAP().VWAPLine[barsAgo]);
Comment