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<SS*1.01 AND C>SS AND crOSS(DWN,SS) AND SS>=REF(SS,1)-0.01;