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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信脉冲macd 副图指标


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

以下是通达信脉冲macd 副图指标

{MACD脉冲}
0.4,COLORFF0000;
DIF:(EMA(CLOSE,12)-EMA(CLOSE,26));
DEA:EMA(DIF,9);
MACD:((DIF-DEA)*2),COLORSTICK;
A1:=((1.5*((((EXPMEMA(IF((((REF(LOW,1)-LOW)>0) AND ((REF(LOW,1)-LOW)>(HIGH-REF(HIGH,1)))),(REF(LOW,1)-LOW),0),14)*100)/EXPMEMA(MAX(MAX((HIGH-LOW),ABS((HIGH-REF(CLOSE,1)))),ABS((REF(CLOSE,1)-LOW))),14)) + ((EXPMEMA(IF((((HIGH-REF(HIGH,1))>0) AND ((HIGH-REF(HIGH,1))>(REF(LOW,1)-LOW))),(HIGH-REF(HIGH,1)),0),14)*100)/EXPMEMA(MAX(MAX((HIGH-LOW),ABS((HIGH-REF(CLOSE,1)))),ABS((REF(CLOSE,1)-LOW))),14)))-REF((((EXPMEMA(IF((((REF(LOW,1)-LOW)>0) AND ((REF(LOW,1)-LOW)>(HIGH-REF(HIGH,1)))),(REF(LOW,1)-LOW),0),14)*100)/EXPMEMA(MAX(MAX((HIGH-LOW),ABS((HIGH-REF(CLOSE,1)))),ABS((REF(CLOSE,1)-LOW))),14)) + ((EXPMEMA(IF((((HIGH-REF(HIGH,1))>0) AND ((HIGH-REF(HIGH,1))>(REF(LOW,1)-LOW))),(HIGH-REF(HIGH,1)),0),14)*100)/EXPMEMA(MAX(MAX((HIGH-LOW),ABS((HIGH-REF(CLOSE,1)))),ABS((REF(CLOSE,1)-LOW))),14))),1)))/(((EXPMEMA(IF((((REF(LOW,1)-LOW)>0) AND ((REF(LOW,1)-LOW)>(HIGH-REF(HIGH,1)))),(REF(LOW,1)-LOW),0),14)*100)/EXPMEMA(MAX(MAX((HIGH-LOW),ABS((HIGH-REF(CLOSE,1)))),ABS((REF(CLOSE,1)-LOW))),14)) + ((EXPMEMA(IF((((HIGH-REF(HIGH,1))>0) AND ((HIGH-REF(HIGH,1))>(REF(LOW,1)-LOW))),(HIGH-REF(HIGH,1)),0),14)*100)/EXPMEMA(MAX(MAX((HIGH-LOW),ABS((HIGH-REF(CLOSE,1)))),ABS((REF(CLOSE,1)-LOW))),14))));
脉冲:(MA((((A1*(MA(((EXPMEMA(IF((((REF(LOW,1)-LOW)>0) AND ((REF(LOW,1)-LOW)>(HIGH-REF(HIGH,1)))),(REF(LOW,1)-LOW),0),14)*100)/EXPMEMA(MAX(MAX((HIGH-LOW),ABS((HIGH-REF(CLOSE,1)))),ABS((REF(CLOSE,1)-LOW))),14)),1)/((EXPMEMA(IF((((HIGH-REF(HIGH,1))>0) AND ((HIGH-REF(HIGH,1))>(REF(LOW,1)-LOW))),(HIGH-REF(HIGH,1)),0),14)*100)/EXPMEMA(MAX(MAX((HIGH-LOW),ABS((HIGH-REF(CLOSE,1)))),ABS((REF(CLOSE,1)-LOW))),14))))*(((EXPMEMA(IF((((REF(LOW,1)-LOW)>0) AND ((REF(LOW,1)-LOW)>(HIGH-REF(HIGH,1)))),(REF(LOW,1)-LOW),0),14)*100)/EXPMEMA(MAX(MAX((HIGH-LOW),ABS((HIGH-REF(CLOSE,1)))),ABS((REF(CLOSE,1)-LOW))),14))-((EXPMEMA(IF((((HIGH-REF(HIGH,1))>0) AND ((HIGH-REF(HIGH,1))>(REF(LOW,1)-LOW))),(HIGH-REF(HIGH,1)),0),14)*100)/EXPMEMA(MAX(MAX((HIGH-LOW),ABS((HIGH-REF(CLOSE,1)))),ABS((REF(CLOSE,1)-LOW))),14))))/MA((((EXPMEMA(IF((((REF(LOW,1)-LOW)>0) AND ((REF(LOW,1)-LOW)>(HIGH-REF(HIGH,1)))),(REF(LOW,1)-LOW),0),14)*100)/EXPMEMA(MAX(MAX((HIGH-LOW),ABS((HIGH-REF(CLOSE,1)))),ABS((REF(CLOSE,1)-LOW))),14))-((EXPMEMA(IF((((HIGH-REF(HIGH,1))>0) AND ((HIGH-REF(HIGH,1))>(REF(LOW,1)-LOW))),(HIGH-REF(HIGH,1)),0),14)*100)/EXPMEMA(MAX(MAX((HIGH-LOW),ABS((HIGH-REF(CLOSE,1)))),ABS((REF(CLOSE,1)-LOW))),14))),1)),1)*0.5);


{(DMI.PDI+DMI.MDI-REF(DMI.PDI+DMI.MDI,1))/(DMI.PDI+DMI.MDI)*1.5;};






回复

举报

QQ|

GMT+8, 2024-11-18 00:25

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