VAR1:=(3*CLOSE+HIGH+LOW+OPEN)/6;
VAR2:=EMA(VAR1,35);
VAR3:=(HHV(VAR2,10)+HHV(VAR2,30)+HHV(VAR2,90))/3;
VAR4:=(LLV(VAR2,10)+LLV(VAR2,30)+LLV(VAR2,90))/3;
VAR5:=(HHV(VAR3,5)+HHV(VAR3,15)+HHV(VAR3,30))/3;
VAR6:=(LLV(VAR4,5)+LLV(VAR4,15)+LLV(VAR4,30))/3;
VAR7:=expma(CLOSE,6);
VAR8:=EXPMA(CLOSE,18);
超级趋势:=500*(VAR7-VAR8)/VAR8+2,COLORYELLOW,LINETHICK2;
XG:BARSLASTCOUNT(超级趋势>2 AND EMA(EMA(VAR1,2),2)>VAR6 AND EMA(EMA(VAR1,2),2)>VAR6)=1;
VAR1:=1;
VAR2:=1;
VAR3:=2;
VAR4:=2;
VAR5:=IF(H< REF(H,VAR1)&&REF(H,VAR2)< REF(H,VAR3),REF(H,VAR4),0);
VAR6:=IF(L>REF(L,VAR1)&&REF(L,VAR2)>REF(L,VAR3),REF(L,VAR4),0);
VAR7:=VALUEWHEN(VAR5>0,VAR5);
VAR8:=VALUEWHEN(VAR6>0,VAR6);
VAR9:=IF(CLOSE>VAR7,-3,IF(CLOSE< VAR8,1,0));
VAR10:=VALUEWHEN(VAR9!=0,VAR9);
VAR11:=IF(VAR10=1,VAR7,VAR8);
VAR12:=VAR10,LINETHICK2;
XG:crOSS(0,VAR12);

