here is the code
protected override void OnBarUpdate()
{
if (Bars.IsFirstBarOfSession)
{
iCumVolume = VOL()[0];
iCumTypicalVolume = VOL()[0] * ((High[0] + Low[0] + Close[0]) / 3);
}
else
{
iCumVolume = iCumVolume + VOL()[0];
iCumTypicalVolume = iCumTypicalVolume + (VOL()[0] * ((High[0] + Low[0] + Close[0]) / 3));
}
PlotVWAP[0] = (iCumTypicalVolume / iCumVolume);
}
********************************************
As the Standard VWAP starts at the opening bar I assume the conditions and calculations are based on starting here each day: if (Bars.IsFirstBarOfSession)
I want to change to Start at a specified bar LIKE Highest High plotted on a 5 minute chart in the last 78 bars
Thats it. Any Help appreicated
DTS
Comment