
MA5:MA(CLOSE,5),COLORGREEN,LINETHICK1;
MA10:MA(CLOSE,10),COLORGREEN,LINETHICK2;
MA15:=MA(CLOSE,15),COLORGREEN,LINETHICK1;
MA20:MA(CLOSE,20),COLORGREEN,LINETHICK3;
MA25:=MA(CLOSE,25),COLORGREEN,LINETHICK1;
MA30:MA(CLOSE,30),COLORGREEN,LINETHICK4;
MA45:=MA(CLOSE,45),COLORGREEN,LINETHICK2;
MA60:MA(CLOSE,60),COLORGREEN,LINETHICK5;
MA120:MA(CLOSE,120),COLORGREEN,LINETHICK1;
MA200:=MA(CLOSE,200),COLORGREEN,LINETHICK1;
MA250:MA(CLOSE,250),COLORGREEN,LINETHICK1;
IFF(MA250>REF(MA250,1),MA250,DRAWNULL),COLORRED,LINETHICK2;
IFF(MA120>REF(MA120,1),MA120,DRAWNULL),COLORRED,LINETHICK2;
IFF(MA60>REF(MA60,1),MA60,DRAWNULL),COLORMAGENTA,LINETHICK6;
IFF(MA30>REF(MA30,1),MA30,DRAWNULL),COLORRED,LINETHICK2;
IFF(MA20>REF(MA20,1),MA20,DRAWNULL),COLORYELLOW,LINETHICK4;
IFF(MA10>REF(MA10,1),MA10,DRAWNULL),COLORRED,LINETHICK4;
IFF(MA5>REF(MA5,1),MA5,DRAWNULL),COLORRED,LINETHICK2;
买入: DRAWICON( CROSS(MA10,MA30),L-0.25,7),COLORRED;
DRAWICON(CROSS(MA5,MA15),L-0.10,1);
A74:=MA(CLOSE,20);
A75:=(CLOSE > MA(CLOSE,5));
A76:=(MA(CLOSE,5) > MA(CLOSE,10));
A77:=(CLOSE > MA(CLOSE,10));
A78:=(MA(CLOSE,5) > MA(CLOSE,20));
A79:=(CLOSE > MA(CLOSE,20));
A710:=REF(A74,1);
A711:=(A74 > A710);
AVX:=(((((IF(A75,10,(0 - 10)) + IF(A76,10,(0 - 10))) + IF(A77,10,(0 - 10))) + IF(A78,10,(0 - 10))) + IF(A79,10,(0 - 10))) + IF(A711,10,(0 - 10)));
DSLX:=(CLOSE / INDEXC);
DSLX1:=MA(DSLX,5);
DSLX2:=MA(DSLX,10);
V1:=MA(VOL,5);
V2:=MA(VOL,10);
T := BARSLAST(CURRBARSCOUNT=1)+1;
HHG := HHV(H, T);
DDG := LLV(L, T);
MA1D:=MA(CLOSE,5);
MA2D:=MA(CLOSE,10);
MA3D:=MA(CLOSE,20);
A1:=COUNT(CROSS(MA2D,MA3D),2)=1;
A2:=COUNT(CROSS(MA1D,MA3D),2)=1;
过滤ST:=EXIST((C/REF(C,1)-1)*100>5.6,60);
过滤停牌:=DYNAINFO(8)>0;
过滤高价:=DYNAINFO(7)<15;
过滤大盘股:=CAPITAL<1000000;
过滤:过滤ST AND 过滤停牌 AND 过滤高价 AND 过滤大盘股 AND A1 AND A2,NODRAW;
S1:=IF(CODELIKE('300'),0,1);
{通达信去掉*、S、ST}
S2:=IF(NAMELIKE('S'),0,1);
S3:=IF(NAMELIKE('*'),0,1);
{通达信去掉停牌}
S4:=DYNAINFO(17)>0;
去掉:= S2 AND S3 AND S4;
DIF1:=(EMA(CLOSE,12)-EMA(CLOSE,26))/EMA(CLOSE,26)*100;
DEA1:=EMA(DIF1,9);
AAA1:=(DIF1-DEA1)*100;
买:=45;
入:=AAA1-REF(AAA1,1);
正大:=CROSS(入,买);
DIF:=(EMA(CLOSE,10)-EMA(CLOSE,72))/EMA(CLOSE,72)*100;
DEA:=EMA(DIF,17);
AAA:=(DIF-DEA)*100;
牛股:=CROSS(AAA-REF(AAA,1),45);
正大牛股:=(正大 AND 牛股 );
角线:=(ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*180/3.14115926);
角线MA:=MA(角线,5);
ANA:=PLOYLINE(CROSS(角线,角线MA),角线MA);
ANB:=PLOYLINE(CROSS(角线MA,角线),角线MA);
角买:=CROSS(角线,角线MA) AND ((ANB>REF(ANB,1) AND ANB>ANA AND 角线MA<=0) OR ((角线MA<=-45 OR CROSS(角线MA,-45)) AND (ANB<-60 OR LLV("KDJ.J",3)<=-49) AND ANB>0));
角买点:=角买=1;
AA10:=MA(CLOSE,8);
BB10:=((ATAN((AA10 - REF(AA10,1))) * 3.1416) * 10);
均线30:=MA(CLOSE,30);
均线89:=MA(CLOSE,89);
均线:=MA(CLOSE,16);
天马:=((((((OPEN <= 均线) AND ((均线30 - REF(均线30,1)) > 0))
AND (CLOSE > 均线89)) AND (BB10 > 1)) AND ((CLOSE / OPEN) > 1.04)));
{股价必涨}
AA:=IF(CLOSE/REF(CLOSE,1)>1.050 AND HIGH/CLOSE<1.010 AND IF(CLOSE>REF(CLOSE,1),88,0)>0, 91, 0);
SS:=MA((LOW+HIGH+CLOSE)/3,5)>REF(MA((LOW+HIGH+CLOSE)/3,5),1) AND REF(MA((LOW+HIGH+CLOSE)/3,5),1)<REF(MA((LOW+HIGH+CLOSE)/3,5),2);
SC:=L<HHV(MA((LOW+HIGH+CLOSE)/3,5),13) AND H>HHV(MA((LOW+HIGH+CLOSE)/3,5),13) AND C>REF(C,1) AND C>O;
MR:=SC AND COUNT(SS,2);
BB:=MR AND NOT(REF(MR,1));
股价必涨:=(AA OR BB OR 角买点 OR 天马);
{抄底}
二十日换手率:=BETWEEN(SUM(HSCOL,20),10,200);{意思是 20日换手率介于10---100之间}
DFO:=(C-REF(C,1))/REF(C,1)*100<-5;
AAO:=BARSLAST(DFO);
突破:=CROSS(C,REF(O,AAO));
抄底:=(二十日换手率 AND 突破);
大牛:=(正大牛股 AND 股价必涨);
必涨:=(正大牛股 AND 抄底);
大牛必涨:大牛 OR 必涨 AND 去掉,NODRAW;
DRAWICON(大牛必涨,L,7),COLORRED;
DRAWICON(大牛必涨,L-0.10,1);DRAWTEXT(大牛必涨,L,'▲←大牛必涨'),COLORYELLOW;
ZF:=(C-REF(C,1))/REF(C,1)*100>9.8;
首板5:100*(ZF=1 AND COUNT(ZF,5)=1),NODRAW;
DRAWNUMBER(首板5,L*0.85,1),COLORYELLOW;
DRAWTEXT(首板5,L*0.85,'←首板5'),,COLORRED;
XA1:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
连扳可能:XA1>=9.84 AND REF(XA1<9.84,1) AND REF(XA1<9.84,2),NODRAW;
DRAWNUMBER(连扳可能,L*0.92,1),COLORYELLOW;
STICKLINE(连扳可能,O,H,0.5,0),COLORYELLOW;
DRAWTEXT(连扳可能,L*0.950,' ←连扳可能'),COLORYELLOW;
A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
A4:=SMA(A3,3,1);
A5D:=SMA(A4,3,1);
A6:=3*A4-2*A5D;
A7:=C-REF(C,1);
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
跟庄买进:LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2))
AND EMA(CLOSE,5)>MA30 AND C>EMA(CLOSE,5) ,NODRAW;
DRAWTEXT(FILTER(跟庄买进=1,5),LOW*0.98,'跟庄买进'),COLORYELLOW;
A:=(LOW+HIGH+CLOSE+OPEN)/4;
突破2:HHV((MA(A,6)),15),COLORWHITE,LINETHICK3;三色突破:CROSS(C,突破2),NODRAW;
DRAWTEXT(CROSS(C,突破2),H*1.025,'★三色突破'),COLORMAGENTA;
共振:跟庄买进 OR 大牛必涨 OR (连扳可能 AND 首板5),NODRAW;
DRAWTEXT(FILTER(共振=1,5),LOW*1.05,'共振'),COLORYELLOW;所属板块:=STRCAT('【所属板块】',STRCAT(STRCAT(STRCAT(' [行业]—',HYBLOCK),STRCAT(' [地域]—',DYBLOCK)),STRCAT(' [概念]—',GNBLOCK)));
DRAWTEXT_FIX(ISLASTBAR,0.005,0.02,0,所属板块),COLORMAGENTA;
XZ_1:=ABS(((3.48*CLOSE+HIGH+LOW+OPEN)/5-EMA(CLOSE,20))/EMA(CLOSE,20));
XZ_2:=DMA((2.15*CLOSE+LOW+HIGH+OPEN)/5,XZ_1);
XZ_3:=EMA(XZ_2,200)*1.26;
XZ_4:=EMA(XZ_2,200)*1.18;
XZ_5:=MA((LOW+HIGH+CLOSE)/3,5);
XZ_6:=HHV(XZ_5,60);
XZ_7:=IF(XZ_6>REF(XZ_6,1),XZ_6,DRAWNULL);
XZ_8:=CLOSE*VOL;
XZ_9:=EMA((EXPMA(XZ_8,3)/EXPMA(VOL,3)+EXPMA(XZ_8,6)/EXPMA(VOL,6)+EXPMA(XZ_8,12)/EXPMA(VOL,12) + EXPMA (XZ_8,24)/ EXPMA( VOL,24 ) )/4 , 13 ) ;
XZ_10:=1.03*XZ_9;
XZ_11:=1.13*XZ_9;
XZ_12:=MIN(XZ_7,XZ_3);
XZ_13:=MIN(XZ_10,XZ_3);
XZ_14:=MIN(XZ_7,XZ_4);
XZ_15:=MIN(XZ_10,XZ_4);
XZ_16:=CLOSE/REF(CLOSE,1)>1.03 AND CLOSE=HIGH;
%90吃肉:CROSS(CLOSE,XZ_11) AND XZ_16,NODRAW;
DRAWTEXT(FILTER(%90吃肉=1,5),LOW*0.98,'%90吃肉'),COLORYELLOW;