{短线买点}
RSV2:=(CLOSE-LLV(LOW,89))/(HHV(HIGH,89)-LLV(LOW,89))*100;
N2:=27;
RSV1:=(CLOSE-LLV(LOW,N2))/(HHV(HIGH,N2)-LLV(LOW,N2))*100;
中K:=SMA(RSV1,5,1);
中D:=SMA(中K,10,1);
C_D1:=(3*C+2*O+L+H)/7;
WMA5:=(5*C_D1+4*REF(C_D1 ,1 )+3*REF(C_D1 ,2 )+2*REF(C_D1 ,3 )+REF(C_D1 ,4 ))/15;
C_D2:=REVERSE(C_D1)+2*WMA5;
AAAA:=CROSS(WMA5,C_D2*0.997);
K1:=SMA(RSV1,5,1);
D11:=SMA(K1,5,1);
J1:=3*K1-2*D11;
AA1:=EMA(J1,5);
AA2:=REF(AA1,1);
NN:=中K> 中D;
K2:=SMA(RSV2,3,1);
D2:=SMA(K2,3,1);
J2:=3*K2-2*D2;
BB1:=EMA(J2,5);
BB2:=REF(BB1,1);
短线买点:=AAAA AND AA1>AA2 AND BB1>BB2 AND NN AND (C-REF(C,1))/REF(C,1)> 0.045;
IF(短线买点,54,35),COLORRED;
DRAWTEXT(FILTER(短线买点,36), 36,'短线买点'),COLORRED;
{追击黑马}
TYP:=(HIGH+LOW+CLOSE)/3;
CI15:=(TYP-MA(TYP,15))/(0.015*AVEDEV(TYP,15));
CI10:=(TYP-MA(TYP,10))/(0.015*AVEDEV(TYP,10));
CI5:=(TYP-MA(TYP,5))/(0.015*AVEDEV(TYP,5));
CI3:=(TYP-MA(TYP,3))/(0.015*AVEDEV(TYP,3));
EMAH3:=EMA(H,3);
EMAL3:=EMA(L,3);
EMAH5:=EMA(H,5);
EMAL5:=EMA(L,5);
EMAL10:=EMA(L,10);
EMAZ:=(EMAH3+EMAH5+EMAL3+EMAL5)/4;
EMA3:=(EMAH3-EMAL3)/8+EMAL3;
PBX1:=(EXPMA((C+H+L)/3,4)+MA((C+H+L)/3,4*2)+MA((C+H+L)/3,4*4))/3;
PBX2:=(EXPMA((C+H+L)/3,6)+MA((C+H+L)/3,6*2)+MA((C+H+L)/3,6*4))/3;
追击黑马:=PBX1> PBX2 AND CI15> 0 AND CI10> 0 AND EMAH3> EMAH5 AND EMAL3> EMAL5 AND EMAL5> EMAL10 AND O< EMA3 AND L< EMAL3,LINETHICK2;
IF(追击黑马,75,55),COLORYELLOW,;
DRAWTEXT(FILTER(追击黑马,30), 56,'追击黑马'),COLORYELLOW;
{观察两天与择机卖出}
VAR0:=DYNAINFO(5);
VAR1:=BARSCOUNT(HIGH);
VAR2:=(SMA((HIGH / HHV(CLOSE,120)),3,1) * 100);
CCC:=IF((VAR1 > 20),VAR2,0);
VAR11:=IF((HIGH < VAR0),0,IF((LOW > VAR0),1,(((VAR0 - HIGH) + 0.009) / ((LOW - HIGH) + 0.009))));
AAA:=(DMA(VAR11,(VOL /SUM(VOL,90))) * 60);
BBB:=(DMA(VAR11,(VOL / CAPITAL)) * 60);
VAR12:=IF(C> 1000,AAA,BBB);
VAR3:=IF((((VAR12 > 0) AND (VAR12 > REF(VAR12,1))) AND (CCC >= 88)),VAR2,0);
A:=C*1.1;
B:=C*0.9;
B1:=100*(WINNER(A)-WINNER(B));
CMSD:=100-B1;
C1:=MA(C,13)
D1:=IF(C> 1000,CROSS(VAR3,22),CROSS(VAR3,24));
观察两天:=IF(CROSS(CMSD,90)AND C1,3,0),COLORYELLOW;
IF(观察两天,35,15),COLORFFFFFF;
DRAWTEXT(FILTER(观察两天,30), 16,'观察两天'),COLORFFFFFF;
择机卖出:=IF(D1,VAR3+10,0),;
IF(择机卖出,95,76),COLORGREEN;
DRAWTEXT(FILTER(择机卖出,30), 76,'择机卖出'),COLORGREEN;
RSV2:=(CLOSE-LLV(LOW,89))/(HHV(HIGH,89)-LLV(LOW,89))*100;
N2:=27;
RSV1:=(CLOSE-LLV(LOW,N2))/(HHV(HIGH,N2)-LLV(LOW,N2))*100;
中K:=SMA(RSV1,5,1);
中D:=SMA(中K,10,1);
C_D1:=(3*C+2*O+L+H)/7;
WMA5:=(5*C_D1+4*REF(C_D1 ,1 )+3*REF(C_D1 ,2 )+2*REF(C_D1 ,3 )+REF(C_D1 ,4 ))/15;
C_D2:=REVERSE(C_D1)+2*WMA5;
AAAA:=CROSS(WMA5,C_D2*0.997);
K1:=SMA(RSV1,5,1);
D11:=SMA(K1,5,1);
J1:=3*K1-2*D11;
AA1:=EMA(J1,5);
AA2:=REF(AA1,1);
NN:=中K> 中D;
K2:=SMA(RSV2,3,1);
D2:=SMA(K2,3,1);
J2:=3*K2-2*D2;
BB1:=EMA(J2,5);
BB2:=REF(BB1,1);
短线买点:=AAAA AND AA1>AA2 AND BB1>BB2 AND NN AND (C-REF(C,1))/REF(C,1)> 0.045;
TYP:=(HIGH+LOW+CLOSE)/3;
CI15:=(TYP-MA(TYP,15))/(0.015*AVEDEV(TYP,15));
CI10:=(TYP-MA(TYP,10))/(0.015*AVEDEV(TYP,10));
CI5:=(TYP-MA(TYP,5))/(0.015*AVEDEV(TYP,5));
CI3:=(TYP-MA(TYP,3))/(0.015*AVEDEV(TYP,3));
EMAH3:=EMA(H,3);
EMAL3:=EMA(L,3);
EMAH5:=EMA(H,5);
EMAL5:=EMA(L,5);
EMAL10:=EMA(L,10);
EMAZ:=(EMAH3+EMAH5+EMAL3+EMAL5)/4;
EMA3:=(EMAH3-EMAL3)/8+EMAL3;
PBX1:=(EXPMA((C+H+L)/3,4)+MA((C+H+L)/3,4*2)+MA((C+H+L)/3,4*4))/3;
PBX2:=(EXPMA((C+H+L)/3,6)+MA((C+H+L)/3,6*2)+MA((C+H+L)/3,6*4))/3;
追击黑马:=PBX1> PBX2 AND CI15> 0 AND CI10> 0 AND EMAH3> EMAH5 AND EMAL3> EMAL5 AND EMAL5> EMAL10 AND O< EMA3 AND L< EMAL3,LINETHICK2;
XG:追击黑马 AND 短线买点;