### Question:
MACD extends SingleValueIndicator { @Override public double getValue() { return getMacdLine(); } MACD(TimeInterval interval);  MACD(int shortCount, int longCount, int macdCount, TimeInterval interval);  MACD(int shortCount, int longCount, int macdCount, TimeInterval interval, ToDoubleFunction<Candle> valueGetter); double getHistogram(); double getMacdSignal(); double getMacdLine(); @Override double getValue(); String toString();  }### Answer:
@Test public void getValue() { MACD t = new MACD(3, 7, 2, minutes(1)); for (int i = 0; i < prices.length; i++) { t.accumulate(newCandle(i, prices[i][2], prices[i][2], prices[i][0], prices[i][1])); } assertEquals(0.3231803444657828, t.getHistogram(), 0.0000001); assertEquals(9.643743725795236, t.getMacdSignal(), 0.0000001); assertEquals(9.966924070217999, t.getMacdLine(), 0.0000001); }