135战法用法详见宁俊明老师相关书籍
135线全部选股源码
公式中“关注”指标线可用于选出出现所列技术形态之一的股票。
{135战法-主图}
EMA13:EMA(CLOSE,13),PRECIS2,colorred;
EMA34:EMA(CLOSE,34),PRECIS2,coloryellow;
EMA55:EMA(CLOSE,55),PRECIS2,colorblue;
{135线全部选股源码}
{红杏出墙选股}
AR1:=EMA55>EMA34 AND EMA34>EMA13;
AR2:=BARSLAST((C-EMA13)/EMA13*100<-6);
AR3:=EMA13>=REF(EMA13,2);
AR4:=COUNT(CROSS(C,EMA13),AR2)=1;
AR5:=AR1 AND AR2 AND AR3 AND AR4;
红杏出墙:=AR5 AND FILTER(AR5,10);
DRAWTEXT(红杏出墙,L*0.96,'红杏出墙'),align1,ColorFF00ff;
DRAWTEXT(红杏出墙,L*0.99,'▲'),align1,ColorFF00ff;
{蚂蚁上树选股}
BR1:=COUNT(BETWEEN((C-REF(C,1))/REF(C,1)*100,0,5) ,5)=5;
BR2:=ABS((EMA13-EMA34)+(EMA34-EMA55))/C<0.2;
BR3:=C>EMA55 AND (REF(C,1)<REF(EMA55,1) OR REF(C,2)<REF(EMA55,2) OR REF(C,3)<REF(EMA55,3) OR REF
(C,4)<REF(EMA55,4) OR REF(C,5)<REF(EMA55,5));
蚂蚁上树:=BR1 AND BR2 AND BR3;
DRAWTEXT(蚂蚁上树,L*0.96,'蚂蚁上树'),align1,ColorFF00ff;
DRAWTEXT(蚂蚁上树,L*0.99,'▲'),align1,ColorFF00ff;
{红衣侠女选股}
EMA120:=EMA(C,120);
CR1:=(C-REF(C,1))/REF(C,1)*100>0.5;
CR2:=V>MA(V,5)*0.6;
CR3:=COUNT(CROSS(EMA13,EMA55),3)=1;
CR4:=ABS(EMA34-EMA55)/EMA55<0.03;
CR5:=EMA55<=EMA120 AND EMA55>=REF(EMA55,1);
红衣侠女:=FILTER(CR1 AND CR2 AND CR3 AND CR4 AND CR5,2);
DRAWTEXT(红衣侠女,L*0.96,'红衣侠女'),align1,ColorFF00ff;
DRAWTEXT(红衣侠女,L*0.99,'▲'),align1,ColorFF00ff;
{黑客》》 选股}
DR1:=EMA13>EMA34 AND EMA34<EMA55;
DR2:=BARSLAST(CROSS(C,EMA55) );
DR3:=H=HHV(H,DR2);
DR4:=BARSLAST(DR3);
DR5:=COUNT(O>C AND C<REF(C,1) AND C>EMA55 AND BETWEEN((C-EMA55)/EMA55,0,0.02),DR4)=1;
DR6:=C>REF(C,1) ;
DR7:=DR1 AND DR5 AND DR6 ;
黑客》》 :=FILTER(DR7,10) AND DR7;
DRAWTEXT(黑客》》 ,L*0.96,'黑客》》 '),align1,ColorFF00ff;
DRAWTEXT(黑客》》 ,L*0.99,'▲'),align1,ColorFF00ff;
{均线互换选股}
均线互换:=BARSLAST(REF(CROSS(EMA55,EMA34),1)) AND CROSS(EMA34,EMA55);
DRAWTEXT(均线互换,L*0.96,'均线互换'),align1,ColorFF00ff;
DRAWTEXT(均线互换,L*0.99,'▲'),align1,ColorFF00ff;
{梅开二度选股}
梅开二度:=BARSLAST(REF(CROSS(EMA34,EMA13),1)) AND CROSS(EMA13,EMA34);
DRAWTEXT(梅开二度,L*0.96,'梅开二度'),align1,ColorFF00ff;
DRAWTEXT(梅开二度,L*0.99,'▲'),align1,ColorFF00ff;
{三线推进选股}
HR2:=EMA13>=REF(EMA13,3) AND EMA34>=REF(EMA34,1) AND EMA55>=REF(EMA55,1) AND CROSS(C,EMA13) AND
CROSS(C,EMA34) AND CROSS(C,EMA55);
三线推进:=(HR2 AND FILTER(HR2,10));
DRAWTEXT(三线推进,L*0.96,'三线推进'),align1,ColorFF00ff;
DRAWTEXT(三线推进,L*0.99,'▲'),align1,ColorFF00ff;
{在光标所在分时线处显示价咯及涨幅}
DRAWFLAGTEXT(1,c,'【最高】'+NUMTOSTRN(H,2)),COLORGREEN,LINETHICK4;
M:1.02*HHVALL(H),colorblack;
关注:红杏出墙 + 蚂蚁上树 + 红衣侠女 + 黑客》》 + 均线互换 + 梅开二度,PRECIS0,LINETHICK0; |