@Override public void calculate() { balances.add(marketBook.getSnapshot().getBalance()); if (balances.isFull()) { value = balances.getStdev() / 10; } }
@Override public void reset() { value = 0; balances.clear(); }