动能指标
2016-6-17 19:48:00点击:
DIFF : EMA(CLOSE,12) - EMA(CLOSE,26);
DEA : EMA(DIFF,9);
DRAWICON(CROSS(DIFF,DEA),DIFF,1);
DRAWICON(CROSS(DEA,DIFF),DEA,2);
Jdxs:=HHV(DIFF,0)*10;
TT:=(2*CLOSE+OPEN+HIGH+LOW);
主导动能:=TT/EMA(TT,4)-1,COLORSTICK;
FF:=主导动能*Jdxs;
STICKLINE(FF>0,0,FF,8,0),COLOR33CFDD;//黄色:获利回吐
STICKLINE(FF>0 AND FF>REF(FF,1),0,FF,8,0),COLOR0000CC;//红色:做多主导
STICKLINE(FF<=0,0,FF,8,0),colorgreen;//绿色:做空主导
STICKLINE(FF<=0 AND FF>REF(FF,1),0,FF,8,0),COLORFF3300;//蓝色:空头回补
做多主导:IFF(FF>0 AND FF>REF(FF,1),FF,0),NODRAW,COLOR0000CC;
获利回吐:IFF(FF>0 AND FF<=REF(FF,1),FF,0),NODRAW,COLOR33CFDD;
做空主导:IFF(FF<=0 AND FF<=REF(FF,1),FF,0),NODRAW,COLOR00CC00;
空头回补:IFF(FF<=0 AND FF>REF(FF,1),FF,0),NODRAW,COLORFF6600;
//零线:0;