万物公式网是一个专注于股票软件、股票公式资源分享的平台
微信公众号:万物狙击

网站首页 > 大智慧公式 正文

大智慧反向推算MACD指标公式

admin 2023-10-16 03:41:35 大智慧公式 236 ℃

大智慧反向推算MACD指标公式

input: short (5,1,20), long(26,1,60),M(9,1,30);

DIFF: EMA(CLOSE, short)-EMA(CLOSE, long ),color0066ff,LINETHICK0,LAYER0;

partline(DIFF,DIFF>=ref(DIFF,1),rgb(255,0,0),DIFF

DEA:EMA(DIFF,M),COLOR00BB00,LINETHICK1,LAYER0;

MACD: (DIFF-DEA)*2,COLORSTICK;

partline(DIFF,DIFF>=ref(DIFF,1),rgb(255,0,0),DIFF

FILLRGN(DIFF,DEA,DIFF>DEA,rgb(255,0,0),DIFF

中轴:0,LAYER0,Coloreeeeee,LINETHICK1;

jcsc:=(M-1)/(M+1)*dea/(1-2/(m+1));{计算出金叉死叉时的Diff值}

dd:=(macd/2+(dea*(m-1)/(M+1)))/(1-2/(m+1));{计算出明日macd=macd时的Diff值}

xx:=(diff*(short+1)*(long+1)-(long+1)*(short-1)*ema(c,short)+(short+1)*(long-1)*ema(c,long))/(2*((long+1)-(short+1)));{计算今日Diff=diff的对应股价}

js:=(jcsc*(short+1)*(long+1)-(long+1)*(short-1)*ema(c,short)+(short+1)*(long-1)*ema(c,long))/(2*((long+1)-(short+1)));{计算金叉死叉的对应股价}

ddd:=(dd*(short+1)*(long+1)-(long+1)*(short-1)*ema(c,short)+(short+1)*(long-1)*ema(c,long))/(2*((long+1)-(short+1)));{计算macd柱体变向时的对应股价};

DRAWTEXTABS(3,0,DIFF拐头股价:+numtostrn(xx,2)),ColorFFFFFF,LINETHICK3;

DRAWTEXTABS(175,0,MACD柱体变向对应股价:+numtostrn(ddd,2)),Color00A5FF,LINETHICK3;

DRAWTEXTABS(410,0,金叉死叉对应股价:+numtostrn(js,2)),COLOR00BB00,LINETHICK3;

PARTLINE(DIFF,CROSS(DIFF,DEA) AND DIFF<-0.2,RGB(255,245,12)),CROSSDOT,LINETHICK5;

PARTLINE(DIFF,CROSS(DIFF,DEA) AND DIFF>0,RGB(252,24,212)),CROSSDOT,LINETHICK5;

PARTLINE(DIFF,CROSS(DIFF,DEA) AND DIFF>-0.2 AND DIFF<0,RGB(200,80,20)),CROSSDOT,LINETHICK7;

PARTLINE(DIFF,CROSS(DEA,DIFF) AND DIFF>0,RGB(125,245,252)),CIRCLEDOT,LINETHICK5;

大智慧反向推算MACD指标公式选股公式如下:

>股票指标网

更多精彩内容,请关注公众号:实盘操手

其他说明

1、在下载过程遇到问题,请您 联系客服:QQ:2180737354  或  微信:xxs008000(常用)     备用微信:bsqj88886(常用号不能用的情况再加),我们会在第一时间修复和反馈。


2、本站所提供的股票指标等资源请细看说明,适合自己再购买下载,指标不包安装,不懂的人切勿购买,新手勿扰。所有指标仅供参考学习交流,没稳赚的指标,赢亏自负,如果觉着指标好用请支持正版,否则产生的一切后果将由下载用户自行承担,有部分股票指标资源为网上收集或仿制而来,若模板侵犯了您的合法权益,请来联系我们,我们会及时删除,给您带来的不便,我们深表歉意!


⇒⇒⇒点击加入通达信指标公式交流群QQ群