CV:=CLOSE;
BBIBOLL:=(MA(CV,3)+MA(CV,6)+MA(CV,12)+MA(CV,24))/4;
DWN:=BBIBOLL-6*STD(BBIBOLL,11);
AA:=MA((2*CLOSE+HIGH+LOW)/4,5);
CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,CC);
SS:=(1-7/100)*DD,COLORRED;
TT:DWN>SS AND L