通达信MACD反推价副图指标 判断和预测股价趋势的走向 源码

SHORT:=9;
LONG:=19;
M:=7;
DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:EMA(DIF,M);
MACD:(DIF-DEA)*2,COLORSTICK;

X_1:=(M-1)/(M+1)*DEA/(1-2/(M+1));
X_2:=(MACD/2+DEA*(M-1)/(M+1))/(1-2/(M+1));
X_3:=(DIF*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(CLOSE,SHORT)+(SHORT+1)*(LONG-1)*EMA(CLOSE,LONG))/(2*(LONG+1-(SHORT+1)));
X_4:=(X_1*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(CLOSE,SHORT)+(SHORT+1)*(LONG-1)*EMA(CLOSE,LONG))/(2*(LONG+1-(SHORT+1)));
X_5:=(X_2*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(CLOSE,SHORT)+(SHORT+1)*(LONG-1)*EMA(CLOSE,LONG))/(2*(LONG+1-(SHORT+1)));

DRAWNUMBER_FIX(1,0.12,0.002,0,CONST(X_3)),COLORLIRED;

DRAWNUMBER_FIX(1,0.26,0.002,0,CONST(X_5)),COLORYELLOW;

DRAWNUMBER_FIX(1,0.4,0.002,0,CONST(X_4)),COLORFFDD44;



来函数检测结果如下:
该公式没有未来函数

解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  指标公式网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 浙ICP备2024071487号-2 指标公式网别名指标网仅为互联网文章,所有指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。指标公式网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图