联系方式 Contact

云指标公式网

淘宝:iyungs.taobao.com

电话:18020657357

微信:396950280

Q Q:332879389

点击这里给我发消息

网址:www.yzhibiao.com

搜索 Search

通达信中期方向线(macd的dif)副图指标

2016-9-24 9:51:32点击:

SHORT:=9;
LONG:=26;
MID:=12;
DIF日:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG),LINETHICK4;
DEA日:=EMA(DIF日,MID),LINETHICK4;
MACD日:=(DIF日-DEA日)*2,COLORCYAN,{COLORSTICK};

DRAWBAND(DIF日,RGB(450,0,0),0,RGB(0,200,0));
{DRAWBAND(DIF日,RGB(150,0,0),DEA日,RGB(0,150,0));}


STICKLINE(MACD日>0 AND MACD日>=REF(MACD日,1),0,MACD日,1,0),COLOR0000FF;
STICKLINE(MACD日>0 AND MACD日<REF(MACD日,1),0,MACD日,0,0),COLOR000066;
STICKLINE(MACD日<0 AND MACD日<REF(MACD日,1),0,MACD日,0,0),COLOR00CC33,COLORCYAN;
STICKLINE(MACD日<0 AND MACD日>=REF(MACD日,1),0,MACD日,1,0),COLOR006633,COLORCYAN;

DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG),LINETHICK1;
DEA:=EMA(DIF日,MID),COLOR00FFFF,LINETHICK1;
MACD日1:(DIF-DEA)*2,COLORLIRED,LINETHICK1;
 MB:=EXPMA(DIF日,20),COLORWHITE;

超买线B:MB+1.65*STD(DIF日,10)COLORLIRED,LINETHICK3;
超卖线B:MB-1.65*STD(DIF日,10) COLORLIGREEN,LINETHICK3;

DEA日1:EMA(DIF日,MID),POINTDOT,COLORMAGENTA,LINETHICK5;

DIF3:MA(DIF日,3);