涨的选股公式
DRAWTEXT((RANGE(ABS(MACD.DIF-MACD.DEA),0,0.01)AND MACD.DIF>REF(MACD.DIF,1) AND
MACD.DEA>-0.15 AND MACD.DEA<0.25),L*0.98,'涨');
牛的选股公式
YC_加仓:=((CLOSE-REF(MA(CLOSE,18),1))/18+MA(CLOSE,18))*1.004;
加仓条件:=CROSS(CLOSE,YC_加仓) AND YC_加仓>REF(YC_加仓,1),LINETHICK0;
DRAWTEXT(加仓条件,LOW,'牛'),COLORRED;
TJ1:=RANGE(ABS(MACD.DIF-MACD.DEA),0,0.01) AND
MACD.DIF>REF(MACD.DIF,1) AND
MACD.DEA>-0.15 AND MACD.DEA<0.25;
{原代码中'涨'的标识条件}
YC_加仓:=((CLOSE-REF(MA(CLOSE,18),1))/18+MA(CLOSE,18))*1.004;
TJ2:=CROSS(CLOSE,YC_加仓) AND YC_加仓>REF(YC_加仓,1);
{原代码中'牛'的标识条件}
TJ1 OR TJ2;