通达信自用双向MACD 副图源码
2014-10-21 11:07:09点击:
{双向MACD}
股DIF:=EMA(CLOSE,12)-EMA(CLOSE,26),COLORFFFFFF;
BV:=SUM((股DIF-EMA(股DIF,9))*4,0);
BA:=IF(MAX(BV,REF(BV,2))<REF(BV,1) OR MIN(BV,REF(BV,2))>REF(BV,1),1,0);
BC:=BARSLAST(BA)+1;
SMACD:=(BV-REF(BV,BC))/(15*1),COLORSTICK;
{面积MACD顶底背离}
DRAWBAND(SMACD,RGB(88,0,0),0,RGB(100,100,100));
DIF:EMA(CLOSE,12)-EMA(CLOSE,26),COLORFFFFFF;
DEA:EMA(DIF,9),COLOR00FFFF;
MACD:(DIF-DEA)*2,COLORSTICK;
DIFF1:0-DIF,COLORFF00FF,DOTLINE;
DEA1:0-DEA,COLOR00FF00,DOTLINE;
- 上一篇:蜡烛钻石小量(芝麻量 钻石量) 2014/10/21
- 下一篇:通达信超越庄股 副图源码 2014/10/21