指标介绍:
1、红色表示主力做多;
2、绿色表示主力做空;
3、黄色表示获利回吐;
4、粉色表示空头回补;
ABC1:=(EMA(CLOSE,5) - EMA(CLOSE,10));
ABC2:=EMA(ABC1,6);
获利回吐:=((ABC2 >= 0) * ABC2),COLORYELLOW,NODRAW;
空头回补:=((ABC2 < 0) * ABC2),COLORMAGENTA,NODRAW;
坚绝做空:=((ABC1 < 0) * ABC1),COLORGREEN,NODRAW;
买入持股:=((ABC1 >= 0) * ABC1),COLORRED,NODRAW;
STICKLINE((ABC2 >= 0),ABC2,0,2,0)COLORYELLOW;
STICKLINE((ABC2 < 0),ABC2,0,2,0),COLORMAGENTA;
STICKLINE((ABC1 < 0),ABC1,0,2,0),COLORGREEN;
STICKLINE((ABC1 >= 0),ABC1,0,2,0),COLORRED;
DRAWBMP(ABC2/ABC1>=2 AND ABC1< 0 AND REF(ABC2/ABC1< 2,1) AND REF(ABC2/ABC1< 2,2) AND REF(ABC2/ABC1< 2,3),ABC2,''),COLORWHITE;
DRAWBMP(买入持股>0 AND ABC1>0 AND REF(坚绝做空< 0 AND ABC2/ABC1< 2,1) AND REF(坚绝做空< 0 AND ABC2/ABC1< 2 ,2) AND REF(坚绝做空< 0,3),ABC2,''),COLORRED;
DRAWBMP(买入持股>=获利回吐 AND ABC1>0 AND REF(获利回吐>买入持股 AND 获利回吐>0 ,1) AND REF(获利回吐>买入持股 AND 获利回吐>0 ,2) AND REF(获利回吐>买入持股 AND 获利回吐>0,3),ABC2*2.2,''),COLORRED;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);{公式网WWW.GPXIAZAI.COM}
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
开始做多:=MACD>0;
主力做多:=BARSLASTCOUNT((ABC1 >= 0))=1 AND 开始做多;
|