VAR1:=(H+L)/2;
AO:=MA(VAR1, 5) -MA(VAR1, 34) ;NOTEXT:MA(AO,5),COLORBLACK;STICKLINE(AO>REF(AO, 1) , 0, AO, 1, 1) , COLORRED;STICKLINE(AO<=REF(AO, 1) , 0, AO, 1, 1) , COLORLIGREEN;S1:=CROSS(0,AO);STICKLINE(S1, 0, AO, 1, 0) , COLORLIGREEN;S2:=AO< 0 AND REF(AO,1)>REF(AO,2) AND AO< REF(AO,1);STICKLINE(S2 , 0, AO, 1, 0) , COLORLIGREEN;SCOUNT:=BARSLAST(AO< 0);SD:=HHV(AO,SCOUNT);SCOUNTD:=HHVBARS(AO,SCOUNT);S3:=AO>0 AND REF(AO,1)>REF(AO,2) AND AO< REF(AO,1);S31:=COUNT(S3,SCOUNTD);STICKLINE(S31>=2 AND S3 , 0, AO, 1, 0) , COLORLIGREEN;B1:=CROSS(AO,0);STICKLINE(B1 , 0, AO, 1, 0) , COLORRED;B2:=AO>0 AND REF(AO,1)< REF(AO,2) AND AO>REF(AO,1) ;STICKLINE(B2, 0, AO, 1, 0) , COLORRED;BCOUNT:=BARSLAST(AO>0);BD:=LLV(AO,BCOUNT);BCOUNTD:=LLVBARS(AO,BCOUNT);B3:=AO< 0 AND REF(AO,1)< REF(AO,2) AND AO>REF(AO,1);B31:=COUNT(B3,BCOUNTD);STICKLINE(B31>=2 AND B3 , 0, AO, 1, 0) , COLORRED;