通达信MA黑马主图指标公式

[复制链接]
查看116 | 回复0 | 2021-8-20 20:02:25 | 显示全部楼层 |阅读模式
本文指标含有选股公式如下:

MA黑马主图之突破选股指标公式

M1:=5;
M2:=10;
M3:=20;
M4:=60;
MA1:MA(CLOSE,M1),COLORMAGENTA;
MA2:MA(CLOSE,M2),COLORCYAN;
MA3:MA(CLOSE,M3),COLORRED;
MA4:MA(CLOSE,M4),COLORYELLOW;
IF(MA3>=REF(MA3,1),MA3,DRAWNULL),COLORRED,LINETHICK2;
IF(MA3<REF(MA3,1),MA3,DRAWNULL),COLORGREEN,LINETHICK2;
IF(MA4>=REF(MA4,1),MA4,DRAWNULL),COLORYELLOW,LINETHICK2;
IF(MA4<REF(MA4,1),MA4,DRAWNULL),COLORWHITE,LINETHICK2;
DRAWTEXT(CROSS(MA(CLOSE,5),MA(CLOSE,10)),MA(CLOSE,10),'拐点'),COLORWHITE;
涨停:=IF((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(C,1)),1,0);
STICKLINE(涨停,OPEN,CLOSE,2,0),COLORYELLOW;
STICKLINE(涨停,H,L,0,0),COLORYELLOW;
ZT:=C/REF(C,1)>1.099 AND C=H;
AA:=REF(C,BARSLAST(ZT AND CURRBARSCOUNT<60));
Z1:=STRCAT(HYBLOCK,'----');
Z2:=STRCAT(Z1,FGBLOCK);
Z3:=STRCAT(Z2,DYBLOCK);
Z4:=STRCAT(Z3,'----');
DRAWTEXT_FIX(1,0.00,0.06,0,' 【主概】:')COLORCYAN;
DRAWTEXT_FIX(ISLASTBAR,0.07,0.06,0,STRCAT(Z4,GNBLOCK)),COLORCYAN;
DRAWTEXT_FIX(1,0.07,0.24,0,EXTERNSTR(0,14))COLORYELLOW;
MA250:=EMA(C,905),COLORCYAN,LINETHICK1;
黑马线:EMA(REF(MA250,1),200),COLOR0080FF,LINETHICK2;
DRAWTEXT(CROSS(C,黑马线),黑马线,'突破'),COLORRED;

202108201212.jpg

202108201212.jpg

 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则