把MACD变一下

2011-02-19 11:07:00来源:本站整理浏览:68

DRAWGBKLAST(C>0,STRIP(RGB(5,0,10),RGB(0,0,0),0));
T:=DATE<10121230;
DIFF:EMA((EMA(CLOSE,10)-EMA(CLOSE,20)),5)*10;
DEA:EMA(DIFF,7)*T;
MACD:2*(DIFF-DEA)*T,COLORSTICK;
STICKLINE(MACD>0 AND MACD>REF(MACD,1),0,MACD,4,0),COLORRED;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1),0,MACD,4,0),COLORYELLOW;
STICKLINE(MACD<=0 AND MACD<REF(MACD,1),0,MACD,4,0),COLORCYAN;
STICKLINE(MACD<=0 AND MACD>=REF(MACD,1),0,MACD,4,0),COLORMAGENTA;
停牌:=NOT(STRFIND(STKNAME,'ST',1))>0 AND (DYNAINFO(4)=0)<1;
XG:=LLV(L,5)<LLV(REF(L,5),25);
后知:IF((XG OR REF(XG,1)) AND LLV(MACD,1)>LLV(REF(MACD,2),2) AND
DIFF>REF(DIFF,1) AND REF(DIFF,1)<REF(DIFF,2) AND 停牌,6,0),COLORGREEN;
 

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式