股资源-股票学习站-学炒股-股票课程-炒股教程-分析选股指标-入门基础知识

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信升势动能主图指标公式源码


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2024-9-6 19:15:47

ABC1:MA(C,5); ABC2:MA(C,10); ABC3:MA(C,20); volUME:=VOL; VAR18:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL); ACB18:=SUM(IF(CLOSE=REF(CLOSE,1),0,VAR18),0); ACB28:=EMA(ACB18,3)-MA(ACB18,9); ACB38:=EMA(IF(ACB28>0,ACB28,0),3); MAC38:=MA(C,3); 升势动能:=ACB38>REF(ACB38,1) AND MAC38>REF(MAC38,1); STICKLINE(升势动能,CLOSE,OPEN,1,0),COLORYELLOW; 钱:=BARSLASTCOUNT(升势动能)=1; 钱1:=BARSLASTCOUNT(升势动能)=2; 钱2:=BARSLASTCOUNT(升势动能)=3; 钱3:=BARSLASTCOUNT(升势动能)=4; 钱4:=BARSLASTCOUNT(升势动能)=5; 钱5:=BARSLASTCOUNT(升势动能)=6; 钱6:=BARSLASTCOUNT(升势动能)=7; 钱7:=BARSLASTCOUNT(升势动能)=8; 钱8:=BARSLASTCOUNT(升势动能)=9; 钱9:=BARSLASTCOUNT(升势动能)=10; DRAWICON(钱,L*0.98,1); DRAWICON(钱1,L,25); DRAWICON(钱2,L,25); DRAWICON(钱3,L,25); DRAWICON(钱4,L,25); DRAWICON(钱5,L,25); DRAWICON(钱6,L,25); DRAWICON(钱7,L,25); DRAWICON(钱8,L,25); DRAWICON(钱9,L,25); DIF1:=EMA(CLOSE,12) - EMA(CLOSE,26); DEA1:=EMA(DIF1,9); macd1:=2*(DIF1-DEA1),STICK; MACD:=MACD1,NODRAW,COLORMAGENTA; RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:=SMA(RSV,3,1); D:=SMA(K,3,1); J:=3*K-2*D; DRAWICON(MACD>REF(MACD,1)ANDcrOSS(J,K),L,9); VAR1:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL); ACB1:=SUM(IF(CLOSE=REF(CLOSE,1),0,VAR1),0); ACB2:=EMA(ACB1,3)-MA(ACB1,9); ACB3:=EMA(IF(ACB2>0,ACB2,0),3); MAC3:=MA(C,3); 量能潮:=ACB3,NODRAW,COLORBROWN; STICKLINE(ACB3>REF(ACB3,1) AND MAC3>REF(MAC3,1),CLOSE,OPEN,1,0),COLORYELLOW; STICKLINE(MACD>REF(MACD,1)AND CROSS(J,K),CLOSE,OPEN,1,0),COLORRED;








回复

举报

QQ|

GMT+8, 2024-11-27 18:49

快速回复 返回顶部 返回列表