VAR1:=(EMA(C,14)-REF(EMA(C,14),1))/REF(EMA(C,14),1)*100;
VAR2:=REF(EMA(C,14),1);
VAR3:=(C-VAR2)/VAR2*100;
VAR4:=IF(VAR1>=0,REF(EMA(C,14),BARSLAST(crOSS(VAR1,0))+1),DRAWNULL);
VAR5:=IF(VAR1<0,REF(EMA(C,14),BARSLAST(CROSS(0,VAR1))+1),DRAWNULL);
VAR6:=IF(VAR1>=0,(C-VAR4)/VAR4*100,DRAWNULL);
VAR7:=IF(VAR1<0,(C-VAR5)/VAR5*100,DRAWNULL);
VAR8:=IF(H>=VAR4*1.1,VAR4*1.1,DRAWNULL);
VAR9:=IF(H>=VAR4*1.2,VAR4*1.2,DRAWNULL);
VAR10:=IF(H>=VAR4*1.3,VAR4*1.3,DRAWNULL);
VAR11:=IF(L<VAR5*0.9,VAR5*0.9,DRAWNULL);
VAR12:=IF(L<VAR5*0.8,VAR5*0.8,DRAWNULL);
VAR13:=EMA(C,14)-REF(EMA(C,14),1);
VAR18:=IF(L<VAR5*0.7,VAR5*0.7,DRAWNULL);
VAR19:=(VAR13)/REF(EMA(C,14),1)*100;
XG:CROSS(VAR19,0);