分时MACD通达信公式 副图 源码附图

信号:=1;
DIFF:EMA(CLOSE,11)-EMA(CLOSE,24),COLORBLUE;
DEA:EMA(DIFF,9),COLORWHITE;
MACD:=(DIFF-DEA)*2,COLORSTICK;
{股票指标网 }
STICKLINE(MACD>0 AND MACD>REF(MACD,1),MACD,0,1,0),COLORRED;
STICKLINE(MACD>0 AND MACD<REF(MACD,1),MACD,0,1,0),COLORWHITE;
STICKLINE(MACD<REF(MACD,1) AND REF(MACD,1)>REF(MACD,2) AND  MACD>0,MACD,0,1,0),COLORLIGREEN;
STICKLINE(MACD<0 AND MACD<REF(MACD,1),MACD,0,1,0),COLORFF9900;
STICKLINE(MACD<0 AND MACD>REF(MACD,1),MACD,0,1,0),COLORBROWN;
STICKLINE(MACD>REF(MACD,1) AND REF(MACD,1)<REF(MACD,2) AND MACD<=0,MACD,0,2,0),COLORYELLOW;
STICKLINE(CROSS(DIFF,DEA),0,DEA,1,0),COLORLIMAGENTA;
STICKLINE(CROSS(DEA,DIFF),0,DIFF,1,0),COLORBLUE;
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0))*信号;
二次金叉:=(CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1)*信号;
STICKLINE(二次金叉,0,MACD,0.1,0)*信号,COLORGREEN;
DRAWTEXT(二次金叉,DEA,' 二次金叉')*信号,COLORYELLOW;
DRAWICON(二次金叉,MACD,1)*信号;
IF(DIFF<0,DIFF,DRAWNULL),COLORBLUE,LINETHICK3;
IF(DEA>0,DEA,DRAWNULL),COLORCYAN,LINETHICK3;
IF(DEA<0,DEA,DRAWNULL),COLORWHITE,LINETHICK3;
IF(DIFF>DEA,DIFF,DRAWNULL),COLORRED,LINETHICK3;
IF(DEA<DIFF,DEA,DRAWNULL),COLORMAGENTA,LINETHICK3;
IF(DIFF>0,DIFF,DRAWNULL),COLORYELLOW,LINETHICK3;
0,LINETHICK3,COLORWHITE;
分水岭:0.07,LINETHICK2,COLORGREEN;
 
 


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

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

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

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