TT:=(2*CLOSE+OPEN+HIGH+LOW);
主导动能:TT/EMA(TT,4)-1,COLORSTICK;
FF:=主导动能;
STICKLINE(FF>0,0,FF,3,0),COLOR33CFDD;
STICKLINE(FF>0 AND FF>REF(FF,1),0,FF,3,0),COLOR0000CC;
STICKLINE(FF<=0,0,FF,3,0),COLOR00CC00;
STICKLINE(FF<=0 AND FF>REF(FF,1),0,FF,3,0),COLORFF9900;
做多主导: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,COLORFF9900; 作者: 项天宝 时间: 2016-12-20 23:09
TT:=(2*CLOSE+OPEN+HIGH+LOW);
FF:=TT/EMA(TT,4)-1,COLORSTICK;
做多主导:=IFF(FF>0 AND FF>REF(FF,1),FF,0),NODRAW,COLOR0000CC;
空头回补:=IFF(FF<=0 AND FF>REF(FF,1),FF,0),NODRAW,COLORFF9900;
ENTERLONG:ref(空头回补,1)<>0 and 做多主导<>0