K:SMA(RSV,3,1);
D:SMA(K,3,1);
J:=((3 * K) - (2 * D));
KK:=INTPART(SMA(RSV,3,1));
DD:=INTPART(SMA(K,3,1));
JJ:=INTPART(((3 * K) - (2 * D)));
N:=(KK + DD);
X_:=(N < 25);
X_1:=REF(X_,29);
X_2:=(N < 18);
X_3:=REF(X_2,31);
X_4:=(N < 23);
X_5:=REF(X_4,198);
VART:=((X_1 OR X_3) OR X_5);
Y_1:=(((REF(CLOSE,2) / REF(OPEN,2)) < 0.95) AND (REF(CLOSE,2) < REF(CLOSE,3)));
Y_2:=(((REF(OPEN,1) < REF(CLOSE,2)) AND (REF(CLOSE,1) > REF(CLOSE,2))) AND (REF(CLOSE,1) > ((REF(CLOSE,2) + REF(OPEN,2)) / 2)));
Y_3:=(CLOSE > REF(CLOSE,1));
Y_4:=(LLV(LOW,13) = REF(LOW,1));
VAR2:=(COUNT((((Y_1 AND Y_2) AND Y_3) AND Y_4),3) > 0);
VAR3:=CROSS((-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14))),80);
VAR25:=(N < 45);
VAR261:=(((((REF(VAR25,180) OR REF(VAR25,179)) OR REF(VAR25,31)) OR REF(VAR25,29)) OR REF(VAR25,13)) OR REF(VAR25,11));
VAR4:=((VAR2 AND VAR3) AND VAR261);
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
VAR5:=2*(DIFF-DEA);
VAR262:=((((REF(VAR25,180) OR REF(VAR25,261)) OR REF(VAR25,98)) OR REF(VAR25,77)) OR REF(VAR25,1));
VAR6:=((VAR2 AND VAR5) AND VAR262);
VAR7:=(N < 34);
VAR8:=REF(VAR7,11);
VAR9:=(N < 45);
VAR10:=((REF(VAR9,83) AND VAR8) AND VAR2);
VAR11:=(N < 38);
VAR12:=((REF(VAR11,19) AND REF(VAR11,32)) AND VAR2);
VAR13:=((REF(VAR9,28) AND REF(VAR11,101)) AND VAR2);
VAR14:=(N < 43);
VAR15:=((REF(VAR14,28) AND REF(VAR14,189)) AND VAR2);
I:=((((((REF(CLOSE,2) / REF(OPEN,2)) < 0.95) AND (REF(OPEN,1) < REF(CLOSE,2))) AND ((ABS((REF(OPEN,1) - REF(CLOSE,1))) / REF(CLOSE,1)) < 0.03)) AND ((CLOSE / OPEN) > 1.05)) AND (CLOSE > REF(CLOSE,2)));
I1:=2*(DIFF-DEA);
T3:=(N < 40);
T4:=((REF(T3,34) OR REF(T3,28)) OR REF(T3,57));
VAR16:=((I AND I1) AND T4);
逃顶线:90,COLORGREEN;
中轴线:50,COLORRED;
抄底线:10,COLORBLUE;
黑马出击:=IF(VART AND VAR2 OR VAR4 OR VAR6 OR VAR10 OR VAR12 OR VAR13 OR VAR15 OR VAR16,100,0);
STICKLINE(IF(黑马出击=100,1,0),0,80,3,0) COLORYELLOW;
DRAWTEXT(IF(黑马出击=100,1,0),70,' ★黑马出击'),COLORLIRED;