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;
STICKLINE(EMA(EMA(VAR1,2),2)>VAR6,(-2),2,12,0),COLORRED;
STICKLINE(EMA(EMA(VAR1,2),2)<=VAR6,(-2),2,12,0),COLORGREEN;
VAR7:=EXPMA(CLOSE,6);
VAR8:=EXPMA(CLOSE,18);
M1:500*(VAR7-VAR8)/VAR8+2,COLORYELLOW,LINETHICK2;
M2:EMA(M1,3),COLORBLUE,LINETHICK2;
STICKLINE(M1>2,2,M1,2,1),COLORMAGENTA;
STICKLINE(M1>2 AND EMA(EMA(VAR1,2),2)>VAR6,2,M1,2,0),COLORMAGENTA;
可以关注:IF(M1>=0 AND REF(M1,1)<0 AND REF(M1,2)<0 AND M2>REF(M2,1) OR (M1>REF(M1,1) AND REF(M1,1)<REF(M1,2) AND REF(M1,2)>0) OR (M1>REF(M1,1) AND REF(M1,1)>REF(M1,2) AND REF(M1,2)<REF(M1,3) AND M2>REF(M2,1) AND REF(M2,1)<=REF(M2,2)) OR (M1>REF(M1,1) AND M2>REF(M2,1) AND REF(M2,1)<=REF(M2,2) AND M1>0 AND M2>0),666,0),NODRAW,COLORYELLOW;
Z2:IF(M1>REF(M1,1) AND REF(M1,1)<REF(M1,2) AND M1>=M2 AND REF(M1,1)<REF(M2,1),1,0),NODRAW,COLORYELLOW;
DRAWTEXT(Z2=1,M1*1.5,'出击'),COLORRED;