Quote:
vars Close = series(priceClose());
vars Price = series(price());

var *BBAnd1Upper = series(rRealUpperBand);
var *BBAnd1Lower = series(rRealLowerBand);


if (priceClose() <= (rRealLowerBand))
enterLong();

else if (priceClose() >= (rRealUpperBand))
enterShort();



I am just testing out the Bollinger Bands indicators, and the above part of the code seems to work.

But I am not sure if there something missing from this code? Such as the below, which I found from an older post on this forum..

Quote:
BBands(Close,19,1,1,MAType_SMA));


I have tried to put in this part above but it gives me a syntax error... Just want to make sure that I am going about this correctly??

Cheers.