Below is the code for PVP but that code does not work with volume bars. What is the necessary modification needed to make this work with volume bars ?
Thanks
protected override void OnBarUpdate()
{
double MaxVolume = 0;
double MaxPrice = 0.0;
for (int x = 0; x <= Bars.BarsSinceSession; x++)
{
if (Volume[x] > MaxVolume)
{
MaxVolume = Volume[x];
MaxPrice = Close[x];
}
}
PVPLine.Set(MaxPrice);
}
Comment