Ok thanks makes sense. Though just out of curiousity would it work also if you just used the following:

Quote:

var *BBand1 = series(BBands(Close,19,1,1,MAType_SMA));


Then to get the 2nd deviation away you could do this for example?

Quote:

if(priceClose() > ((rRealUpperBand - rRealMiddleBand) + rRealUpperBand))


In theory you should be able to get the distance between the upper and middle band and just add it to the upperband price again to get the 2nd deviation away correct?