快好知 kuaihz

分时MACD(通达信公式 副图 源码 测试图)

分时MACD(涨幅 振幅 成交额  半分位  均价)自用自编 带源码 也可为新手学习提供借鉴

明停:DYNAINFO(7)*1.1,COLORYELLOW,NODRAW;

昨收:DYNAINFO(3),COLORWHITE,NODRAW;

开盘:DYNAINFO(4),COLORLICYAN,NODRAW;

最高:DYNAINFO(5),COLORRED,NODRAW;

最低:DYNAINFO(6),COLORGREEN,NODRAW;

半分:(最高+最低)/2,COLORMAGENTA,NODRAW;

涨幅:DYNAINFO(14)*100,COLORRED,NODRAW;

振幅:DYNAINFO(13)*100,COLORGREEN,NODRAW;

总金额:DYNAINFO(10)/100000000,COLORLIMAGENTA,NODRAW;

分时均价:DYNAINFO(11),COLORYELLOW,NODRAW;

信号:=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(MACDREF(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;

本站资源来自互联网,仅供学习,如有侵权,请通知删除,敬请谅解!
搜索建议:分时MACD  分时  分时词条  通达  通达词条  公式  公式词条  源码  源码词条  测试  测试词条  分时MACD词条  
股票

 七十四、说说BOLL指标三线开口...

说起BOLL指标相信很多人都不陌生,同样说起BOLL指标的用法相信大家也会随口而谈,上轨为压力,下轨为支撑,但是这些用法仅仅是判断压力和支撑的,但是作为短线操作...(展开)