VAR1:=(CLOSE-LLV(LOW,32))/(HHV(HIGH,32)-LLV(LOW,32))*1.2*CLOSE;
VAR2:=EMA(VAR1,3);VAR12:=EMA(VAR1,5);VAR13:=EMA(VAR1,7);
T1:=VAR12>=VAR13 AND VAR2<REF(VAR2,1);
T2:=VAR12<VAR13 AND VAR2>REF(VAR2,1);N:=10;
DA:=(EMA(C,1)+EMA(C,2)+EMA(C,3)+EMA(C,4))/4;
DBB:=(EMA(C,10)+EMA(C,20)+EMA(C,40)+EMA(C,80))/4;
XG:crOSS(DA-DBB,0);