通达信短中长主力线副图指标源码

[复制链接]
查看99 | 回复0 | 2021-8-26 21:34:27 | 显示全部楼层 |阅读模式

以下是通达信短中长主力线副图指标源码(无源码的请下载附件导入)

短期RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
短期K:=SMA(短期RSV,4.5,1);
短期D:=SMA(短期K,3,1);
短期主力线:3*短期K-2*短期D,COLORCYAN,DOTLINE;
中期RSV:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
中期K:=SMA(中期RSV,9,1);
中期D:=SMA(中期K,3,1);
中期主力线:3*中期K-2*中期D,COLORGREEN,DOTLINE;
长期RSV:=(CLOSE-LLV(LOW,40))/(HHV(HIGH,40)-LLV(LOW,40))*100;
长期K:=SMA(长期RSV,18,1);
长期D:=SMA(长期K,3,1);
长期主力线:3*长期K-2*长期D,COLORBLUE;
RSI自设:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100;
操作线条件1:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
操作线条件2:=SMA(操作线条件1,13,8);
操作线:CEILING(SMA(操作线条件2,13,8)),COLORRED,LINETHICK2;
红绿柱条件1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;
红绿柱条件2:=SMA(红绿柱条件1,9,1)+100;
红绿柱条件3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
红绿柱条件4:=SMA(红绿柱条件3,3,1);
红绿柱条件5:=SMA(红绿柱条件4,3,1)+100;
红绿柱条件6:=红绿柱条件5-红绿柱条件2;
红绿柱条件7:=IF(红绿柱条件6>100,红绿柱条件6-100,0);
STICKLINE(REF(红绿柱条件7,1)<红绿柱条件7,红绿柱条件7,REF(红绿柱条件7,1),0.5,0),COLORRED;
STICKLINE(REF(红绿柱条件7,1)>红绿柱条件7,红绿柱条件7,REF(红绿柱条件7,1),0.5,0),COLORGREEN;DRAWTEXT_FIX(C>O,0.01,0.01,0,'
-10,COLORLICYAN;
DRAWTEXT(CURRBARSCOUNT=1,-10,' -10.00'),COLORLICYAN;
0,COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=1,0,'     0.00'),COLORGREEN;
20,COLORGREEN,DOTLINE;
DRAWTEXT(CURRBARSCOUNT=1,20,'   20.00'),COLORGREEN;
50,COLORYELLOW,DOTLINE;
DRAWTEXT(CURRBARSCOUNT=1,50,'   50.00'),COLORYELLOW;
80,COLORRED,DOTLINE;
DRAWTEXT(CURRBARSCOUNT=1,80,'   80.00'),COLORRED;
100,COLORRED;
DRAWTEXT(CURRBARSCOUNT=1,100,'  100.00'),COLORRED;

2230311161.png

2230311161.png

回复

使用道具 举报

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

本版积分规则