MA1:=EMA(CLOSE,12);
MA2:=EMA(CLOSE,50);
CC:=CROSS(MA1,MA2);
BB:=BARSLAST(CC);
CC1:=CROSS(MA1,L) AND C>MA1 AND BB AND MA1>MA2 AND MA2>REF(MA2,1);
CC2:=CROSS(MA2,L) AND C>MA2 AND BB AND MA1>MA2 AND MA2>REF(MA2,1);
选股:CC OR CC1 OR CC2;
九毛八公式解读
MA1赋值:收盘价的12日指数移动平均 MA2赋值:收盘价的50日指数移动平均 CC赋值:MA1上穿MA2 BB赋值:上次CC距今天数 CC1赋值:MA1上穿最低价 AND 收盘价>MA1 AND BB AND MA1>MA2 AND MA2>1日前的MA2 CC2赋值:MA2上穿最低价 AND 收盘价>MA2 AND BB AND MA1>MA2 AND MA2>1日前的MA2 输出选股:CC OR CC1 OR CC2