通达信金山谷主图指标 贴图

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

以下是通达信金山谷主图指标 贴图(无源码的请下载附件导入)

M5:MA(C,5),COLORWHITE;
 M10:MA(C,10),COLORYELLOW;
 M30:MA(C,30),COLORRED;
 M60:MA(C,60),COLORBLUE;
 M120:MA(C,120),LINETHICK2,COLORLIGRAY;
山谷:=MA(C,5)>MA(C,10) AND MA(C,10)>MA(C,30) AND CROSS(MA(C,10),MA(C,30));
 DRAWTEXT(山谷 AND MA(C,5)<MA(C,120),MA(C,30)-0.18,'银山谷'),COLORMAGENTA;
 DRAWICON(FILTER(山谷 AND MA(C,5)<MA(C,120),MA(C,30)),L,9);
 DRAWTEXT(山谷 AND MA(C,30)>MA(C,120),MA(C,30)-0.18,'金山谷'),COLORYELLOW;
 DRAWICON(FILTER(山谷 AND MA(C,30)>MA(C,120),MA(C,30)),L,26);

CM:=REF(C,1);
涨停:=IF((C-CM)*100/CM>=9.9,1,0);
 STICKLINE(涨停,OPEN,CLOSE,3.8,0),COLORMAGENTA;
 STICKLINE(涨停,H,L,0,0),COLORLIRED;
跌停:=IF((C-CM)*100/CM<=-9.9,1,0);
 STICKLINE(跌停,OPEN,CLOSE,3.8,0),COLORGREEN;
 STICKLINE(跌停,H,L,0,0),COLORGREEN;

 

628344745.jpg

628344745.jpg

回复

使用道具 举报

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

本版积分规则