X_1:=DYNAINFO(3)*1;
X_2:=REF(CLOSE,1);
X_3:=SMA(MAX(CLOSE-X_2,0),6,1)/SMA(Abs(CLOSE-X_2),6,1)*2;
X_4:=SMA(MAX(CLOSE-X_2,0),12,1)/SMA(ABS(CLOSE-X_2),12,1)*2;
X_5:=SMA(MAX(CLOSE-X_2,0),24,1)/SMA(ABS(CLOSE-X_2),24,1)*2;
AA1:IF(X_3<X_4 OR X_3<X_5 OR X_4<X_5,X_5,X_3)+X_1,COLORRED;
AA2:IF(X_3<X_4 OR X_3<X_5 OR X_4<X_5,X_5,X_4)+X_1,COLORYELLOW;
AA3:X_5+X_1,COLORBLUE;
DRAWBAND(AA1,RGB(180,0,0),AA3,RGB(0,0,0));
DRAWBAND(AA2,RGB(180,190,0),AA3,RGB(0,0,0));
DRAWTEXT_FIX(1,0.05,0,0,112),COLORCYAN;
DRAWTEXT_FIX(1,0.98,20,1,125),COLOR666666;