通达信K线+MACD指标公式

DIFF : EMA(CLOSE,12) - EMA(CLOSE,26);
 DEA : EMA(DIFF,9);
MACD : 2*(DIFF-DEA);
 STICKLINE(MACD>0,MACD,0,0.5,1),COLORRED;
 STICKLINE(MACD<0,MACD,0,0.5,1),COLORGREEN;
 STICKLINE(MACD>0 AND MACD<REF(MACD,1),MACD,0,0.5,1),COLORWHITE;
 STICKLINE(MACD<0 AND MACD>REF(MACD,1),MACD,0,0.5,1),COLORFF00FF;
绿柱面积:IF (MACD<0,SUM(MACD,BARSLAST(MACD>0)),0),nodraw,colorgreen;
红柱面积:IF (MACD>0,SUM(MACD,BARSLAST(MACD<0)),0),nodraw,Colorred;
 
 DRAWTEXT(CROSS(diff,80),diff,'强'),COLORRED;
 DRAWTEXT(CROSS(-80,diff),diff,'弱'),COLORGREEN;
 DRAWTEXT(CROSS(diff,-80),diff,'强'),COLORRED;
 DRAWTEXT(CROSS(80,diff),diff,'弱'),COLORGREEN;
 DRAWTEXT(CROSS(diff,30),diff,'强'),COLORRED;
 DRAWTEXT(CROSS(-30,diff),diff,'弱'),COLORGREEN;
 DRAWTEXT(CROSS(diff,-30),diff,'强'),COLORRED;
 DRAWTEXT(CROSS(30,diff),diff,'弱'),COLORGREEN;
 DRAWTEXT(CROSS(diff,50),diff,'强'),COLORRED;
 DRAWTEXT(CROSS(-50,diff),diff,'弱'),COLORGREEN;
 DRAWTEXT(CROSS(diff,-50),diff,'强'),COLORRED;
 DRAWTEXT(CROSS(50,diff),diff,'弱'),COLORGREEN;
 DRAWTEXT(CROSS(diff,80),diff,'强'),COLORRED;
 DRAWTEXT(CROSS(-8,diff),diff,'弱'),COLORGREEN;
 DRAWTEXT(CROSS(diff,-8),diff,'强'),COLORRED;
 DRAWTEXT(CROSS(8,diff),diff,'弱'),COLORGREEN;
 DRAWTEXT(CROSS(diff,5),diff,'强'),COLORRED;
 DRAWTEXT(CROSS(-50,diff),diff,'弱'),COLORGREEN;
 DRAWTEXT(CROSS(diff,-5),diff,'强'),COLORRED;
 DRAWTEXT(CROSS(5,diff),diff,'弱'),COLORGREEN;
 DRAWTEXT(CROSS(diff,3),diff,'强'),COLORRED;
 DRAWTEXT(CROSS(-3,diff),diff,'弱'),COLORGREEN;
 DRAWTEXT(CROSS(diff,-3),diff,'强'),COLORRED;
 DRAWTEXT(CROSS(3,diff),diff,'弱'),COLORGREEN;
 DRAWTEXT(CROSS(diff,10),diff,'强'),COLORRED;
 DRAWTEXT(CROSS(-10,diff),diff,'弱'),COLORGREEN;
 DRAWTEXT(CROSS(diff,-10),diff,'强'),COLORRED;
 DRAWTEXT(CROSS(10,diff),diff,'弱'),COLORGREEN;
 DRAWTEXT(CROSS(diff,1),diff,'强'),COLORRED;
 DRAWTEXT(CROSS(-1,diff),diff,'弱'),COLORGREEN;
 DRAWTEXT(CROSS(diff,-1),diff,'强'),COLORRED;
 DRAWTEXT(CROSS(1,diff),diff,'弱'),COLORGREEN;
 DRAWTEXT(CROSS(diff,2),diff,'强'),COLORRED;
 DRAWTEXT(CROSS(-2,diff),diff,'弱'),COLORGREEN;
 DRAWTEXT(CROSS(diff,-2),diff,'强'),COLORRED;
 DRAWTEXT(CROSS(2,diff),diff,'弱'),COLORGREEN;
 DRAWTEXT(CROSS(diff,20),diff,'强'),COLORRED;
 DRAWTEXT(CROSS(-20,diff),diff,'弱'),COLORGREEN;
 DRAWTEXT(CROSS(diff,-20),diff,'强'),COLORRED;
 DRAWTEXT(CROSS(20,diff),diff,'弱'),COLORGREEN;




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

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

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

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