public KSTIndicator(Indicator<Num> indicator) {
        super(indicator);
        this.RCMA1 = new SMAIndicator(new ROCIndicator(indicator, 10), 10);
        this.RCMA2 = new SMAIndicator(new ROCIndicator(indicator, 15), 10);
        this.RCMA3 = new SMAIndicator(new ROCIndicator(indicator, 20), 10);
        this.RCMA4 = new SMAIndicator(new ROCIndicator(indicator, 30), 15);
    }
@Test
    public void KSTIndicator() {
        ClosePriceIndicator closePriceIndicator = new ClosePriceIndicator(data);
        KSTIndicator kstIndicator = new KSTIndicator(closePriceIndicator);
        assertNumEquals(36.597637, kstIndicator.getValue(44));
        assertNumEquals(37.228478, kstIndicator.getValue(45));
        assertNumEquals(38.381911, kstIndicator.getValue(46));
        assertNumEquals(38.783888, kstIndicator.getValue(47));
        assertNumEquals(37.543147, kstIndicator.getValue(48));
        assertNumEquals(36.253502, kstIndicator.getValue(49));
    }