VAR1:=REF(H,1)/MAX(REF(C,1),REF(O,1))>1.03 AND MAX(REF(C,1),REF(O,1))/MIN(REF(C,1),REF(O,1))<1.02; VAR2:=C/REF(C,1)>1.09 AND REF(V,1)>REF(V,2) AND REF(V,1)>REF(MA(V,5),1); VAR3:=REF(O,1)<REF(H,2) AND C>O; VAR4:=VAR1 AND VAR2 AND VAR3; ZT:=C/REF(C,1)>1.095 AND C=H; DIF:=EMA(CLOSE,12)-EMA(CLOSE,26); DEA:=EMA(DIF,9);
macd:=(DIF-DEA)*2; VA1:=(HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW); VA2:=REF(C,2)/REF(C,3)>1.05 OR ZT; VAA1:=REF(VA1,1)>0.5 AND VA1 AND C>REF(H,1); VAA2:=COUNT(MACD<0,2)=2; VAA3:=REF(V,2)/REF(C,3)>2; VAA4:=VAR4 OR (VAA1 AND VAA2 AND VAA3); STICKLINE(VAA4,6,0,1,0),COLORYELLOW; DRAWTEXT(VAA4,5,' ★反')COLORRED; DRAWTEXT(VAA4,4,' ★转')COLORBLUE; DRAWTEXT(VAA4,3,' ★之')COLORYELLOW; DRAWTEXT(VAA4,2,' ★路')COLORRED;
VAR1:=REF(H,1)/MAX(REF(C,1),REF(O,1))>1.03
AND MAX(REF(C,1),REF(O,1))/MIN(REF(C,1),REF(O,1))<1.02;
VAR2:=C/REF(C,1)>1.09 AND REF(V,1)>REF(V,2) AND REF(V,1)>REF(MA(V,5),1);
VAR3:=REF(O,1)<REF(H,2) AND C>O;
VAR4:=VAR1 AND VAR2 AND VAR3;
ZT:=C/REF(C,1)>1.095 AND C=H;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
macd:=(DIF-DEA)*2;
VA1:=(HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW);
VA2:=REF(C,2)/REF(C,3)>1.05 OR ZT;
VAA1:=REF(VA1,1)>0.5 AND VA1 AND C>REF(H,1);
VAA2:=COUNT(MACD<0,2)=2;
VAA3:=REF(V,2)/REF(C,3)>2;
VAA4:=VAR4 OR (VAA1 AND VAA2 AND VAA3);
STICKLINE(VAA4,6,0,1,0),COLORYELLOW;
DRAWTEXT(VAA4,5,' ★反')COLORRED;
DRAWTEXT(VAA4,4,' ★转')COLORBLUE;
DRAWTEXT(VAA4,3,' ★之')COLORYELLOW;
DRAWTEXT(VAA4,2,' ★路')COLORRED;