KP:=SMA(AMOUNT,10,1)/10000;
VAR1:=REF(KP,1);
VAR2:=REF(KP,2);
VAR3:=REF(KP,3);
COUNT(KP>VAR1,1) AND VAR1>VAR2 AND VAR2>VAR3;
KP:=SMA(AMOUNT,10,1)/10000;
VAR1:=REF(KP,1);
VAR2:=REF(KP,2);
VAR3:=REF(KP,3);
COUNT(KP>VAR1,1) AND VAR1>VAR2 AND VAR2>VAR3;