使用说明:该指标为主图指标,使用时请叠加在K线主图上。红色为多头市场,绿色为空头市场。
突破:=REF(EMA(C,14),1);
A1X:=(EMA(C,10)-突破)/突破*100;
多方:=IF(A1X>=0,REF(EMA(C,10),BARSLAST(CROSS(A1X,0))+1),DRAWNULL);
空方:=IF(A1X<0,REF(EMA(C,10),BARSLAST(CROSS(0,A1X))+1),DRAWNULL);
STICKLINE(A1X>=0,多方,突破,6,0),colormagenta;
STICKLINE(A1X<0,空方,突破,6,0),colorwhite;
BBI:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,,POINTDOT,linethick2,coloryellow;