通达信黄金分割线主图指标

[复制链接]
查看590 | 回复0 | 2021-8-20 13:33:50 | 显示全部楼层 |阅读模式

以下是通达信黄金分割线主图指标(无源码的请下载附件导入)

N:=150;

高1:=HHV(H,N);
低1:=LLV(L,N);
 H1:=高1-(高1-低1)*0.191;
 H2:=高1-(高1-低1)*0.382;
 H3:=高1-(高1-低1)*0.5;
 H4:=高1-(高1-低1)*0.618;
 H5:=高1-(高1-低1)*0.809;
高:REFDATE(高1,DATE);
低:REFDATE(低1,DATE);
一:REFDATE(H1,DATE);
二:REFDATE(H2,DATE);
三:REFDATE(H3,DATE);
四:REFDATE(H4,DATE),COLORRED;
五:REFDATE(H5,DATE);
 {DRAWTEXT(CURRBARSCOUNT=1.00,一,'一(0.191)'),COLORYELLOW;
 DRAWTEXT(CURRBARSCOUNT=1.00,二,'二(0.382)'),COLORYELLOW;
 DRAWTEXT(CURRBARSCOUNT=1.00,三,'三(0.50)'),COLORYELLOW;
 DRAWTEXT(CURRBARSCOUNT=1.00,四,'四(0.618'),COLORYELLOW;
 DRAWTEXT(CURRBARSCOUNT=1.00,五,'五(0.809)'),COLORYELLOW;
 DRAWTEXT(CURRBARSCOUNT=1.00,高,'高'),COLORYELLOW;
 DRAWTEXT(CURRBARSCOUNT=1.00,低,'低'),COLORYELLOW;
 DRAWKLINE(H,O,L,C);};


涨跌停:=(C-REF(C,1))/REF(C,1)*100;
 STICKLINE(涨跌停>9.8,O,C,3,0),COLORYELLOW;
 STICKLINE(涨跌停<-9.8,O,C,3,0),COLORGREEN;
 STICKLINE(涨跌停>6 AND 涨跌停<9.8,O,C,3,0),COLORRED;


股东权益:FINANCE(36),NODRAW;
每股公积:FINANCE(18),NODRAW;
所属地区:DRAWTEXT_FIX(1,0,0,0,'地区:'),COLORYELLOW;
 DRAWTEXT_FIX(1,0.07,0,0,DYBLOCK),COLORYELLOW;

所属行业:DRAWTEXT_FIX(1,0,0.08,0,'行业:'),COLORYELLOW;
 DRAWTEXT_FIX(1,0.07,0.08,0,HYBLOCK),COLORYELLOW;

所属概念:DRAWTEXT_FIX(1,0,0.16,0,'概念:'),COLORYELLOW;
 DRAWTEXT_FIX(1,0.07,0.16,0,GNBLOCK),COLORYELLOW;

所属风格:DRAWTEXT_FIX(1,0,0.24,0,'风格:'),COLORYELLOW;
 DRAWTEXT_FIX(1,0.07,0.24,0,FGBLOCK),COLORYELLOW;

172833917.jpg

172833917.jpg

回复

使用道具 举报

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

本版积分规则