I am trying to plot a price curve with Bollinger Bands. Using the sample code from Zorro help seems to work. However, there are periods when all three bands unite. For instance using price data from 12/2/2013 between 5am and 7am (but one can find this in any others day data). How come?

Best wishes

Michas

I am using the following code:

function run()
{
set(PLOTNOW);

StartDate = 20121203;
EndDate = 20121203;

BarPeriod = 1;

BBands(series(price()),30,2,2,MAType_SMA);
plot("Bollinger1",rRealUpperBand,BAND1,0x000000CC);
plot("Bollinger2",rRealLowerBand,BAND2,0x800000FF);
plot("Price", price(),LINE, RED);

}

Attached Files BBands.png