When the RSI is above 70, and when the Price drops above the Higher Bollinger Band.When the RSI is below 30, and when the Price drops below the Lower Bollinger Band.
BUY{ SET BT = BBT(CLOSE,20,2,SIMPLE); SET RS = RSI(CLOSE,11); RS > 70 AND CROSSOVER(CLOSE,BT);} SELL{ SET BB = BBB(CLOSE,20,2,SIMPLE); SET RS = RSI(CLOSE,11); RS < 30 AND CROSSOVER(BB,CLOSE);}