### Question:
ChandeMomentumOscillator extends SingleValueIndicator { @Override public double getValue() { return value; } ChandeMomentumOscillator(TimeInterval interval);  ChandeMomentumOscillator(int length, TimeInterval interval);  ChandeMomentumOscillator(int length, TimeInterval interval, ToDoubleFunction<Candle> valueGetter); @Override double getValue();  }### Answer:
@Test public void cmo() { int i = 0; ChandeMomentumOscillator indicator = new ChandeMomentumOscillator(TimeInterval.MINUTE); indicator.accumulate(CandleHelper.newCandle(i, values[i++])); indicator.accumulate(CandleHelper.newCandle(i, values[i++])); indicator.accumulate(CandleHelper.newCandle(i, values[i++])); indicator.accumulate(CandleHelper.newCandle(i, values[i++])); indicator.accumulate(CandleHelper.newCandle(i, values[i++])); indicator.accumulate(CandleHelper.newCandle(i, values[i++])); assertEquals(85.1351, indicator.getValue(), 0.0001); indicator.accumulate(CandleHelper.newCandle(i, values[i++])); assertEquals(53.9326, indicator.getValue(), 0.0001); indicator.accumulate(CandleHelper.newCandle(i, values[i++])); assertEquals(6.2016, indicator.getValue(), 0.0001); indicator.accumulate(CandleHelper.newCandle(i, values[i++])); assertEquals(-1.083, indicator.getValue(), 0.0001); indicator.accumulate(CandleHelper.newCandle(i, values[i++])); assertEquals(0.7092, indicator.getValue(), 0.0001); indicator.accumulate(CandleHelper.newCandle(i, values[i++])); assertEquals(-1.4493, indicator.getValue(), 0.0001); indicator.accumulate(CandleHelper.newCandle(i, values[i++])); assertEquals(10.7266, indicator.getValue(), 0.0001); indicator.accumulate(CandleHelper.newCandle(i, values[i++])); assertEquals(-3.5857, indicator.getValue(), 0.0001); indicator.accumulate(CandleHelper.newCandle(i, values[i++])); assertEquals(4.7619, indicator.getValue(), 0.0001); indicator.accumulate(CandleHelper.newCandle(i, values[i++])); assertEquals(24.1983, indicator.getValue(), 0.0001); indicator.accumulate(CandleHelper.newCandle(i, values[i++])); assertEquals(47.644, indicator.getValue(), 0.0001); }