{CHANDE MOMENTUM OSCILLATOR (CMO)}

GAIN := SUM(IF(CLOSE > REF(CLOSE, 1), CLOSE - REF(CLOSE, 1), 0), 14);

LOSS := SUM(IF(CLOSE < REF(CLOSE, 1), REF(CLOSE, 1) - CLOSE, 0), 14);

CMO := (GAIN - LOSS) / (GAIN + LOSS) * 100 ;

DRAWTEXT(CMO > 50 AND TIME<=0932, L, '开盘强'), COLORYELLOW;

{DRAWTEXT(CMO < -50, LOW, 'STRONG BEARISH MOMENTUM'), COLORGREEN;}

STICKLINE(CMO > 50 AND TIME<=0932, LOW, L, 2, 0), COLORMAGENTA;

{STICKLINE(CMO < -50, LOW, HIGH, 2, 0), COLORGREEN;};