同花顺MACD加强指标公式

SHORT:=12;
LONG:=26;
MID:=9;
DIFF := EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);
DEA :=EMA(DIFF,M);
macd := 2*(DIFF-DEA);
Zero : 0;
kdIFF:= DIFF-REF(DIFF,1);
KDEA:= DEA-REF(DEA,1);
KMacD:= MACD-REF(MACD,1);
KDI:MA(KDIFF,2)*100;
KDE:MA(KDEA,2)*100;
KMA:MA(KMACD,2)*100;
CKDI:=Abs(ABS(KDI)-ABS(REF(KDI,1)));
CCKDI:=ABS(ABS(CKDI)-ABS(REF(CKDI,1)));
CKMA:=ABS(ABS(KMA)-ABS(REF(KMA,1)));
CCKMA:=ABS(ABS(CKMA)-ABS(REF(CKMA,1)));
CMA:=ABS(ABS(KMA)-ABS(KDI));
MA5:=MA(CLOSE,5);
CMA5:=ABS(ABS(MA5)-ABS(REF(MA5,1)));
KDITDE:KDI-KDE;
SALE:=KDI>0 AND KMA>0 AND (CKDI<REF(CKDI,1) OR CKMA<REF(CKMA,1)) AND CMA<REF(CMA,1);
BUY1:=IF( (DIFF<DEA AND DIFF>MACD) OR (KMACD<REF(KMACD,1) AND REF(KMACD,1)<0),0,KDI<15 AND KMA<15 AND (CKDI<REF(CKDI,1) OR CKMA<REF(CKMA,1) OR (KDITDE>0 AND REF(KDITDE,1)<0 OR CMA<REF(CMA,1))) );
DRAWTEXT(SALE,KMA*1.20,'走'),colorwhite;
DRAWTEXT(BUY1,KMA*1.20,'入'),colorred;




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

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

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

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