dgsfBC3:=REF(C,1);
涨停:=(C-BC3)*100/BC3>=(10-0.01*100/BC3);
TS:=15;{高量两边的周期,自行调节,最好设为参数TS(5,50,10)}
HV:=FILTER(BACKSET(FILTER(REF(V,TS)=HHV(V,2*TS+1),TS),TS+1),TS);
T1:=BARSLAST(HV);{高量T}
高量底:=REF(L,T1);
高量底线:= IF(LLV(C,T1)>=高量底,高量底,DRAWNULL),COLORRED,LINETHICK2;
TS2:=25;
HV2:=FILTER(BACKSET(FILTER(REF(V,TS2)=HHV(V,2*TS2+1),TS2),TS2+1),TS2);
T12:=BARSLAST(HV2);
高量底2:=REF(L,T12);
高量底线2:= IF(LLV(C,T12)>=高量底2,高量底2,DRAWNULL),COLORRED,LINETHICK2;
高量不破A:=LLV(C,T1)>=高量底 AND C<高量底*1.05
AND (EXIST(COUNT(涨停,15)>=1,30) OR
EXIST(COUNT(涨停,30)>=2,30) OR EXIST(COUNT(涨停,60)>=3,30))
AND COUNT( MA(C,20)>MA(C,30),15)>=15
AND COUNT( MA(C,30)>MA(C,60),15)>=15
AND COUNT(MA(C,30)>REF(MA(C,30),1),20)>=20
AND COUNT(MA(C,60)>REF(MA(C,60),1),20)>=20 AND C<MA(C,30)*1.065
AND C<MA(C,10) AND C<REF(C,1)*1.025 AND C<MA(C,5) AND COUNT(C=HHV(C,40),40)>=1
AND EXIST(V=HHV(V,20),10)!=1
AND (COUNT(C=HHV(C,20),10)<=1
OR (COUNT(C=HHV(C,20),15)<=2 AND C<MA(C,60)*1.025))
AND H=HHV(H,20)!=1 AND BARSCOUNT(C)>150;
高量不破B:=LLV(C,T12)>=高量底2 AND C<高量底2*1.05
AND (EXIST(COUNT(涨停,15)>=1,30) OR
EXIST(COUNT(涨停,30)>=2,30) OR EXIST(COUNT(涨停,60)>=3,30))
AND COUNT( MA(C,30)>MA(C,60),15)>=15
AND COUNT(MA(C,30)>REF(MA(C,30),1),20)>=20
AND COUNT(MA(C,60)>REF(MA(C,60),1),20)>=20 AND C<MA(C,30)*0.965
AND C<MA(C,60)*1.065
AND C<MA(C,10) AND C<REF(C,1)*1.025 AND C<MA(C,5) AND COUNT(C=HHV(C,40),40)>=1
AND EXIST(V=HHV(V,20),8)!=1
AND COUNT(C=HHV(C,20),10)<=1 AND H=HHV(H,20)!=1 AND BARSCOUNT(C)>150;
高量不破C:=LLV(C,T12)>=高量底2
AND EXIST(COUNT(涨停,20)>=5,30)
AND COUNT( MA(C,30)>MA(C,60),15)>=15
AND COUNT(MA(C,30)>REF(MA(C,30),1),20)>=12
AND COUNT(MA(C,60)>REF(MA(C,60),1),20)>=20 AND C<MA(C,30)*0.905
AND C<MA(C,60)*1.075
AND C<MA(C,10) AND C<REF(C,1)*1.025 AND C<MA(C,5) AND COUNT(C=HHV(C,40),40)>=1
AND EXIST(V=HHV(V,20),8)!=1
AND COUNT(C=HHV(C,20),10)<=1 AND H=HHV(H,20)!=1 AND BARSCOUNT(C)>150;
高量不破D:=COUNT(LLV(C,T1)>=高量底,10)=10 AND C<高量底*1.035
AND EXIST(COUNT(涨停,15)>=1,30)!=1
AND COUNT( MA(C,20)>MA(C,30),15)>=15
AND COUNT( MA(C,30)>MA(C,60),15)>=15
AND COUNT(MA(C,30)>REF(MA(C,30),1),20)>=20
AND COUNT(MA(C,60)>REF(MA(C,60),1),20)>=20 AND C<MA(C,30)*1.035
AND C<MA(C,10) AND C<REF(C,1)*1.025 AND C<MA(C,5) AND COUNT(C=HHV(C,40),40)>=1
AND EXIST(V=HHV(V,20),10)!=1
AND (COUNT(C=HHV(C,20),10)<=1
OR (COUNT(C=HHV(C,20),15)<=2 AND C<MA(C,60)*1.025))
AND H=HHV(H,20)!=1 AND BARSCOUNT(C)>150;
高量不破:高量不破A OR 高量不破B OR 高量不破C OR 高量不破D; |