抓牛黑马指标:EMA(CLOSE,12)-EMA(CLOSE,26);
选股公式:EMA(抓牛黑马指标,9);
MACD:(抓牛黑马指标-选股公式)*2,COLORSTICK;
eeeddd1:=CROSS(抓牛黑马指标,选股公式) AND 抓牛黑马指标<(-0.1);
STICKLINE(eeeddd1,0,(-0.18),1,0),COLORYELLOW;
DRAWTEXT(eeeddd1,(-0.15),17),COLORRED;{炒股公式-炒股指标www.gs6699.com}
eeeddd2:=COUNT(CROSS(抓牛黑马指标,选股公式),BARSLAST(选股公式>=0));
eeeddd3:=CROSS(抓牛黑马指标,选股公式) AND 选股公式<0 AND COUNT(eeeddd2=2,21)=1;
STICKLINE(eeeddd3,0,(-0.18),1,0),COLORMAGENTA;
DRAWTEXT(eeeddd3,(-0.3),18),COLORMAGENTA;
eeeddd4:=BARSLAST(REF(CROSS(抓牛黑马指标,选股公式),1));
eeeddd5:=REF(CLOSE,eeeddd4+1)>CLOSE AND 抓牛黑马指标>REF(抓牛黑马指标,eeeddd4+1) AND CROSS(抓牛黑马指标,选股公式);
STICKLINE(eeeddd5,0,0.13,1,0),COLORGREEN;
DRAWTEXT(eeeddd5,0.18,19),COLORGREEN;
eeeddd6:=BARSLAST(REF(CROSS(选股公式,抓牛黑马指标),1));
eeeddd7:=REF(CLOSE,eeeddd6+1)<CLOSE AND REF(抓牛黑马指标,eeeddd6+1)>抓牛黑马指标 AND CROSS(选股公式,抓牛黑马指标);
DRAWTEXT(eeeddd1 AND eeeddd3 AND eeeddd5,0.51,20),COLORYELLOW,LINETHICK2;
DRAWTEXT(eeeddd1 AND eeeddd5,0.31,21),COLORLIBLUE,LINETHICK2;
上翘:IF(抓牛黑马指标>REF(抓牛黑马指标,1),抓牛黑马指标,DRAWNULL),COLORRED,LINETHICK2;
下拐:IF(抓牛黑马指标<REF(抓牛黑马指标,1),抓牛黑马指标,DRAWNULL),COLORLIBLUE,LINETHICK2;
eeeddd8:=BARSLAST(REF(CROSS(RSI.RSI1,RSI.RSI2),1));
eeeddd9:=REF(CLOSE,eeeddd8+1)>CLOSE AND REF(RSI.RSI1,eeeddd8+1)<RSI.RSI1 AND CROSS(RSI.RSI1,RSI.RSI2);
DRAWTEXT(eeeddd9>0,(-0.3),22),COLORCYAN;
eeeddd10:=BARSLAST(REF(CROSS(RSI.RSI2,RSI.RSI1),1));
eeeddd11:=REF(CLOSE,eeeddd10+1)<CLOSE AND REF(RSI.RSI1,eeeddd10+1)>RSI.RSI1 AND CROSS(RSI.RSI2,RSI.RSI1);
DRAWTEXT(eeeddd11>0,0.8,23),COLORGREEN;