protected override void OnBarUpdate()
{
if (CurrentBar > Period)
{
//bhigh = MAX(High, 150)[0];
bandwidth = (Bollinger(Deviation,Period).Upper[0] - Bollinger(Deviation,Period).Lower[0])/SMA(20)[0];
bulge = MAX(bandwidth(0), 150)[0];
Plot0[0] = (bandwidth/bulge)*100;
}
else {
Plot0[0] = 0;
}
}
The error is bandwidth is a field but used as a method. Any ideas?

Comment