MA240:=EMA(C,240);
AA:= C>EMA(C,240) AND MA240>REF(MA240,1) AND REF(MA240,1)>REF(MA240,2);
VAR1:=SMA(AMOUNT/10,10,1)/10000;
VAR2:=REF(VAR1,1);
VAR3:=SMA(AMOUNT/10,10,1)/10000;
BB:= MA(VAR1,10),COLORYELLOW;
XG:crOSS(BB,VAR3) AND AA ,COLORRED,LINETHICK2;