魔法K线主图指标 通达信公式(附图)

[复制链接]
查看75 | 回复0 | 2021-8-20 15:31:59 | 显示全部楼层 |阅读模式

M1:=5;
M2:=10;
M3:=20;
M4:=60;
MA1:MA(CLOSE,M1);
MA2:MA(CLOSE,M2);
MA3:MA(CLOSE,M3);
MA4:MA(CLOSE,M4);
C2:=REF(C,1);
涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);
STICKLINE(涨停,OPEN,CLOSE,2,0),COLORYELLOW;
STICKLINE(涨停,H,L,0,0),,COLORYELLOW;
跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);
STICKLINE(跌停,OPEN,CLOSE,3,0),COLORGREEN;
STICKLINE(跌停,H,L,0,1),COLORGREEN;N:=10;
UP:=(C/REF(C,1)>1.05 AND NOT(C/REF(C,1)>1.095));
STICKLINE(UP,OPEN,CLOSE,2,0),,COLORLIRED;
STICKLINE(UP,H,L,0,0),COLORLIRED;
DOWN:=(C/REF(C,1)<0.95 AND NOT(C/REF(C,1)<0.907));
STICKLINE(DOWN,OPEN,CLOSE,3,0),COLORFF6600;
STICKLINE(DOWN,H,L,0,1),COLORFF6600;
向下跳空:=HIGH<REF(LOW,1);
STICKLINE(向下跳空,HIGH,REF(LOW,1),4,0),COLOR888888;
向上跳空:=LOW>REF(HIGH,1);
STICKLINE(向上跳空,LOW,REF(HIGH,1),4,0),COLOR888888;
DRAWTEXT_FIX(ISLASTBAR,0.1,0,0,HYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.2,0,0,DYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.3,0,0,GNBLOCK),COLORYELLOW;

154151W4450-32626.jpg

154151W4450-32626.jpg

 

回复

使用道具 举报

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

本版积分规则