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);
M1:=500*(VAR7-VAR8)/VAR8+2,COLORYELLOW,LINETHICK2;
M2:=EMA(M1,3),COLORBLUE,LINETHICK2;
钻2:=IF(M1>REF(M1,1) AND REF(M1,1)=M2 AND REF(M1,1)追涨:钻2=1;