通达信多均线涨停突破选股公式
发布日期: 2025-08-02 | 阅读量:38
M1:=MA(C,5)COLORWHITE;
M2:=MA(C,10)COLORYELLOW;
M3:=MA(C,20)COLORRED;
M4:=MA(C,60);
SH:=CODELIKE('00') OR CODELIKE('60');
SZ:=CODELIKE('30') OR CODELIKE('68');
SS:=CODELIKE('4') OR CODELIKE('8');
X1:=IF(SH,0.1,IF(SZ,0.2,IF(SS,0.3,100)));
ZT:=C=H AND C>=ZTPRICE(REF(C,1),X1);
DT:=C=L AND C<=DTPRICE(REF(C,1),X1);
ZB:=C<H AND H>=ZTPRICE(REF(C,1),X1);
SYX:=100*(H-MAX(C,O))/REF(C,1);
ST:=100*ABS(C-O)/REF(C,1);
XYX:=100*(MIN(C,O)-L)/REF(C,1);
ZF:=100*(C/REF(C,1)-1);
JZF:=100*(O/REF(C,1)-1);
LBTS:=BARSLASTCOUNT(ZT);
CXHA:=COUNT(LBTS=3,20)=0 AND COUNT(ZT,40)<5 AND COUNT(LBTS=4,40)=0;
CXHB:=IF(CODELIKE('68'),COUNT(LBTS=2,40)=0,1);
CXHC:=O<=M3 AND C>M3 AND C>O AND ZF>3 AND REF(C<M2,1) AND C>M1 AND C>M2 AND C>M3;
CXHD:=(C-M2>M2-O OR C-M3>M3-O) AND ST>4 AND HHV(H/M4,60)<2.1 AND SS=0 AND INBLOCK('ST板块')=0;
涨停突破:CXHA AND CXHB AND CXHC AND CXHD;
M2:=MA(C,10)COLORYELLOW;
M3:=MA(C,20)COLORRED;
M4:=MA(C,60);
SH:=CODELIKE('00') OR CODELIKE('60');
SZ:=CODELIKE('30') OR CODELIKE('68');
SS:=CODELIKE('4') OR CODELIKE('8');
X1:=IF(SH,0.1,IF(SZ,0.2,IF(SS,0.3,100)));
ZT:=C=H AND C>=ZTPRICE(REF(C,1),X1);
DT:=C=L AND C<=DTPRICE(REF(C,1),X1);
ZB:=C<H AND H>=ZTPRICE(REF(C,1),X1);
SYX:=100*(H-MAX(C,O))/REF(C,1);
ST:=100*ABS(C-O)/REF(C,1);
XYX:=100*(MIN(C,O)-L)/REF(C,1);
ZF:=100*(C/REF(C,1)-1);
JZF:=100*(O/REF(C,1)-1);
LBTS:=BARSLASTCOUNT(ZT);
CXHA:=COUNT(LBTS=3,20)=0 AND COUNT(ZT,40)<5 AND COUNT(LBTS=4,40)=0;
CXHB:=IF(CODELIKE('68'),COUNT(LBTS=2,40)=0,1);
CXHC:=O<=M3 AND C>M3 AND C>O AND ZF>3 AND REF(C<M2,1) AND C>M1 AND C>M2 AND C>M3;
CXHD:=(C-M2>M2-O OR C-M3>M3-O) AND ST>4 AND HHV(H/M4,60)<2.1 AND SS=0 AND INBLOCK('ST板块')=0;
涨停突破:CXHA AND CXHB AND CXHC AND CXHD;

指标公式逻辑介绍
核心指标体系
1.1 均线系统
M1:5日均线(白色)
M2:10日均线(黄色)
M3:20日均线(红色)
M4:60日均线(默认色)
1.2 涨停板识别系统
涨停识别:精确识别各板块涨停规则(10%/20%/30%)
涨停计数:LBTS统计连续涨停天数
涨停过滤:T1A/T1B排除异常连板
1.3 突破确认系统
突破条件:
T1C:阳线突破三线(5/10/20日)
T1D:实体强度验证(ST>4%)
排除ST股和高位股(H/M4<2.1)