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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信金牛趋势指标公式源码副图


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

{指标介绍: (一)、绿横线出现是股价“下降”趋势出现,绿“加速”是继续下降信号,卖出为主,绿横线下方小绿柱是股价下降过程中的卖出信号。 (二)、红横线出现是股价“上升”趋势出现,红“加速”是继续上升信号,买入为主,红横线下方小红柱是股价上升过程中的买入信号。}

{DRAWGBK(CLOSE>0,RGB(0,10,10),RGB(88,0,0),0,2,0);} Q0:=1; X_111:=EMA((CLOSE-REF(CLOSE,1))/REF(CLOSE,3),10)*100; X_222:=EMA(EMA(EMA(EMA(X_111,2),2),2),3); X_333:=(CLOSE-MA(CLOSE,26))/MA(CLOSE,26)*100; X_444:=1; A555:=IF(MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),3)*100>0 AND MA(CLOSE,5)>MA(CLOSE,10) AND X_333>EMA(MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),3)*100,5) AND X_222>REF(X_222,1),MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),3)*100,0); 持股线:=(MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),3)*100>0 AND MA(CLOSE,5)>MA(CLOSE,10) AND X_333>EMA(MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),3)*100,5) AND DYNAINFO(17)>0)*A555/3.5,COLORRED; X_555:=MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),3)*100; X_666:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4; X_777:=X_666+3*STD(X_666,10); X_888:=MA(CLOSE,26)+2*STD(CLOSE,26); X_999:=(vol>0 AND A555>0 AND X_222>REF(X_222,1))*EMA(A555,5); X_1010:=(VOL>0 AND BARSLASTCOUNT(A555>0)=1 ANDcrOSS(EMA(CLOSE,2),HHV(EMA(CLOSE,5),26)))*EMA(A555,2); X_1111:=(VOL>0 AND BARSLASTCOUNT(A555>0)=1 AND CROSS(EMA(CLOSE,2),HHV(EMA(CLOSE,5),26)))*(-3); X_1212:=(VOL>0 AND EMA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),2)>MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),4) AND MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),4)>REF(MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),4),1) AND SMA(MAX(CLOSE-REF(CLOSE,1),0),14,1)/SMA(Abs(CLOSE-REF(CLOSE,1)),14,1)*100>64.5 AND EMA(CLOSE,1)>(X_777 OR X_888))*EMA(A555,5)/2.5,COLORCYAN; 负数现—防下跌:=(持股线-X_1212),COLORWHITE;{,NODRAW不画该线}; 设置线:=(EMA(CLOSE,5)*7+EMA(CLOSE,10)*3)/10,COLORWHITE,LINETHICK2; X_4:=(HIGH+LOW+OPEN+CLOSE)/4; X_5:=EMA(X_4,13)-EMA(X_4,34);

源码未粘贴完...下载附件全源码








回复

举报

GMT+8, 2025-1-19 23:19

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