@Override
    public boolean isSatisfied(int index, TradingRecord tradingRecord) {
        final boolean satisfied = cross.getValue(index);
        traceIsSatisfied(index, satisfied);
        return satisfied;
    }
@Test
    public void onlyThresholdBetweenFirstBarAndLastBar() {
        Indicator<Num> evaluatedIndicator = new FixedDecimalIndicator(series, 11, 10, 10, 9);
        CrossedDownIndicatorRule rule = new CrossedDownIndicatorRule(evaluatedIndicator, 10);

        assertFalse(rule.isSatisfied(0));
        assertFalse(rule.isSatisfied(1));
        assertFalse(rule.isSatisfied(2));
        assertTrue(rule.isSatisfied(3));
    }