@Override
    public Num getValue(int index) {
        return getBarSeries().getBar(index).getHighPrice();
    }
@Test
    public void indicatorShouldRetrieveBarHighPrice() {
        for (int i = 0; i < 10; i++) {
            assertEquals(highPriceIndicator.getValue(i), barSeries.getBar(i).getHighPrice());
        }
    }