N1:=5;
N2:=20;
N3:=6;
MA$1=(MA(CLOSE, N1)-MA(REF(CLOSE,1), N1))*10;
SA$1=MA(CLOSE, N1);
MA$2=(MA(CLOSE, N2)-MA(REF(CLOSE,1), N2))*10;
SA$2=MA(CLOSE, N2);
IF (SA$1>SA$2)
MA$3:SA$1-SA$2;
IF (SA$1>SA$2)
MA$4:0.1;
IF ((MA$3-REF(MA$3,1))>0)
MA$5:0.2;
IF (NOT((REF(MA$4,1)==0.1) ) AND (SA$1>SA$2))
MA$5:0.3;
IF (SA$1