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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信【无大神普通的】副图指标源码


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

以下是通达信【无大神普通的】副图指标源码

DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:"MACD.MACD",NODRAW;
W1:STICKLINE(MACD>0,MACD,0,3,1),COLORRED;
W2:STICKLINE(MACD<0,MACD,0,3,1),COLORCYAN;
YD:STICKLINE(MACD>REF(MACD,1)AND C>REF(C,1)AND MACD<0 ,MACD,0,2.2,0)COLOR00EEEE;
XG1:=IF(DIF>REF(DIF,1) AND DIF>=DEA AND REF(DIF,1)<=REF(DIF,2) AND REF(DIF,1)>=REF(DEA,1) ,1,0),NODRAW;
DRAWICON(XG1=1,0,23);
DRAWTEXT(XG1=1,-0.1,'★空中加油★'),COLORYELLOW;
XG:=CROSS(DIF,DEA) AND DIF<-0.1;
DRAWICON(XG,0,9);
DRAWTEXT(XG,-0.15,'★低位金叉'),COLORFFFFFF;
AA:=COUNT(CROSS(DIF,DEA),BARSLAST(DEA>=0));
XG2:=CROSS(DIF,DEA) AND DEA<0 AND COUNT(AA=2,21)=1;
DRAWICON(XG2,0,13);
DRAWTEXT(XG,-0.5,'★二次金叉'),COLORFF00FF;
X1:=MAX(MAX((HHV(DIF,13)-LLV(DIF,13)),ABS(REF(DIF,1)-HHV(DIF,13))),ABS(REF(DIF,1)-LLV(DIF,13)));
X2:=EMA(X1,13);
X3:=REF(DIF,1)-REF(X2,1);
BB:HHV(X3,13),COLORFFFFFF;





回复

举报

QQ|

GMT+8, 2024-11-17 15:59

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