阳春量价(MACD)二
2011-02-17 09:12:00来源:本站整理浏览:64
阳春量价(MACD)2
DIFF1:=(EMA(CLOSE,6)-EMA(CLOSE,13))*1000;
DEA1:=EMA(DIFF1,5);
MACD1:=2*(DIFF1-DEA1);
DIFF2:=(EMA(VOL,6)-EMA(VOL,13))/100;
DEA2:=EMA(DIFF2,5);
MACD2:=2*(DIFF2-DEA2);
STICKLINE(MACD2>0,0,MACD2,8,0),colorFF00FF;
STICKLINE(MACD2<0,0,MACD2,8,0),colorFFFF00;
STICKLINE(MACD1>0,0,MACD1,8,0),colorFF;
STICKLINE(MACD1<0,0,MACD1,8,0),colorFF00;
DEAA:DEA1;
DEAB:DEA2;
一式:=DEA1>REF(DEA1,1);
三式:=DEA1>REF(DEA1,1) AND DEA2<REF(DEA2,1);
五式:=DEA1<REF(DEA1,1) AND DEA2<REF(DEA2,1);
七式:=DEA2>REF(DEA2,1) AND DEA1<REF(DEA1,1);
EXPLAIN(一式=1,'量增价涨,建仓买入'),colorFF;
EXPLAIN(三式=1,'量减价涨,持股待涨'),colorFF00FF;
EXPLAIN(五式=1,'量减价减,卖出空仓'),colorFF00;
EXPLAIN(七式=1,'量增价减,持币等待'),colorFFFF00;
- 上一篇公式:无敌趋势(副图源码)
- 下一篇公式:相位雷达(副图 源码 研判原理)