bollinger rsi buy sell for Amibroker (AFL)
Copy & Paste Friendly
_SECTION_BEGIN("bbrsi");
per=100*(Close-Ref(Close,-1))/Ref(Close,-1);
Buy= Ref(Close,-1)< Ref (BBandBot(Close,20,2),-1) AND per>-1 AND per<1;
PlotShapes(shapeUpArrow*Buy,colorGreen);
Sell = Cross (RSI (21), 70);
PlotShapes(shapeDownArrow*Sell,colorRed);
_SECTION_END();