联系方式 Contact

云指标公式网

淘宝:iyungs.taobao.com

电话:18020657357

微信:396950280

Q Q:332879389

点击这里给我发消息

网址:www.yzhibiao.com

搜索 Search

通达信优化MACD副图源码

2016-8-5 16:25:49点击:
DIF1:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA1:=EMA(DIF1,9);
MACD1:=2*(DIF1-DEA1),STICK;
MACD2:EMA(MACD1,5),NODRAW; 
蓝:STICKLINE(MACD1<MACD2 AND MACD1<0,0,MACD1,1,0),COLORBLUE;
粉:STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,1,1),COLORMAGENTA;
红:STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,1,1),COLORRED;
绿:STICKLINE(MACD1<MACD2 AND MACD1>0,0,MACD1,1,0),COLORGREEN;
A:DRAWTEXT(CROSS(粉,蓝),MACD1 -0.1,'买')COLORGREEN;
B:DRAWTEXT(CROSS(绿,红),MACD2 -0.01,'卖')COLORYELLOW;