- UID
- 2
- 积分
- 2874674
- 威望
- 1387366 布
- 龙e币
- 1487308 刀
- 在线时间
- 13156 小时
- 注册时间
- 2009-12-3
- 最后登录
- 2024-11-24
|
源码如下:
- DIFF:EMA(CLOSE,12)-EMA(CLOSE,26);
- DEA:EMA(DIFF,9);
- MACD:2*(DIFF-DEA),NODRAW;
- MACDHS:=IF(MACD>0 AND MACD>REF(MACD,1),MACD,0);
- MACDHX:=IF(MACD>0 AND MACD<REF(MACD,1),MACD,0);
- MACDLX:=IF(MACD<0 AND MACD<REF(MACD,1),MACD,0);
- MACDLS:=IF(MACD<0 AND MACD>REF(MACD,1),MACD,0);
- STICKLINE(MACDHS>0,0,MACD,2,0),colorred;
- STICKLINE(MACDHX>0,0,MACD,2,0),coloryellow;
- STICKLINE(MACDLX<0,MACD,0,2,0),colorcyan;
- STICKLINE(MACDLS<0,MACD,0,2,0),colorligreen;
- 绿柱面积:10*IF (MACD<0,SUM(MACD,BARSLAST(MACD>0)),0),NODRAW,colorcyan;
- 红柱面积:10*IF (MACD>0,SUM(MACD,BARSLAST(MACD<0)),0),NODRAW,colorred;
- DRAWNUMBER(REF(MACD,1)>0 AND MACD<=0 ,HHV(MACD,8),REF(红柱面积,1)),colorred;
- DRAWNUMBER(REF(MACD,1)<0 AND MACD>=0 ,LLV(MACD,4),REF(ABS(绿柱面积),1)),colorcyan;
- DRAWNUMBER(ISLASTBAR AND MACD<0,LLV(MACD,8),ABS(绿柱面积)),colorcyan;
- DRAWNUMBER(ISLASTBAR AND MACD>0,HHV(MACD,4),ABS(红柱面积)),colorred;
复制代码 |
论坛官方微信、群(期货热点、量化探讨、开户与绑定实盘)
|