VAR1:=(CLOSE+LOW+HIGH)/3;
VAR2:=SUM(((VAR1-REF(LOW,1))-(HIGH-VAR1))*vol/100000/(HIGH-LOW),0);
VAR3:=EMA(VAR2,1);
短线:=VAR3;
中线:=MA(VAR3,12);
长线:=MA(VAR3,26);
VAR8:=crOSS(短线,中线) AND CROSS(短线,长线);
VAR9:=VAR8 AND 短线>REF(短线,1) AND 中线>REF(中线,1) AND 长线>REF(长线,1);
XG:VAR9;