云龙风电通达信副图,云龙相得起,风电一时来
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26),LINETHICK2;
DEA:=EMA(DIF,6),LINETHICK2;
MACD:(DIF-DEA)*2,COLORSTICK;
DRAWBAND(DIF,RGB(255,255,0),DEA,RGB(0,255,0));
STICKLINE(MACD>REF(MACD,1),MACD,REF(MACD,1),2,0),COLOR000080;
STICKLINE(MACD>REF(MACD,1),MACD,REF(MACD,1),0.1,0),COLOR0000FF;
STICKLINE(MACD>REF(MACD,1) AND MACD<0,MACD,REF(MACD,1),2,0),COLOR8C008C;
STICKLINE(MACD>REF(MACD,1) AND MACD<0,MACD,REF(MACD,1),0.1,0),COLORFF00FF;
STICKLINE(MACD<REF(MACD,1) AND MACD>0,MACD,REF(MACD,1),2,0),COLOR009D9D;
STICKLINE(MACD<REF(MACD,1) AND MACD>0,MACD,REF(MACD,1),0.1,0),COLOR00FFFF;
STICKLINE(MACD<REF(MACD,1) AND MACD<0,MACD,REF(MACD,1),2,0),COLOR008000;
STICKLINE(MACD<REF(MACD,1) AND MACD<0,MACD,REF(MACD,1),0.1,0),COLOR00FF00;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
DIF赋值:收盘价的12日指数移动平均-收盘价的26日指数移动平均, 线宽为2
DEA赋值:DIF的6日指数移动平均, 线宽为2
输出MACD:(DIF-DEA)*2,COLORSTICK
DRAWBAND(DIF,RGB(255,255,0),DEA,RGB(0,255,0))
STICKLINE(MACD>1日前的MACD,MACD,1日前的MACD,2,0),COLOR000080
STICKLINE(MACD>1日前的MACD,MACD,1日前的MACD,0.1,0),COLOR0000FF
STICKLINE(MACD>1日前的MACD AND MACD<0,MACD,1日前的MACD,2,0),COLOR8C008C
STICKLINE(MACD>1日前的MACD AND MACD<0,MACD,1日前的MACD,0.1,0),COLORFF00FF
STICKLINE(MACD<1日前的MACD AND MACD>0,MACD,1日前的MACD,2,0),COLOR009D9D
STICKLINE(MACD<1日前的MACD AND MACD>0,MACD,1日前的MACD,0.1,0),COLOR00FFFF
STICKLINE(MACD<1日前的MACD AND MACD<0,MACD,1日前的MACD,2,0),COLOR008000
STICKLINE(MACD<1日前的MACD AND MACD<0,MACD,1日前的MACD,0.1,0),COLOR00FF00