/** Resets "today volume" and sets yesterday volume and last price */ public void collectDayStatistics() { averagePrice.addObservation(lastPrice); yesterdayLastPrice = lastPrice; yesterdaySumOfClosingPrices = todaySumOfClosingPrices; yesterdayVolume = todayVolume; todayVolume = 0; todaySumOfClosingPrices = 0; }
public float getLastDaysAveragePrice() { return averagePrice.getSmoothedObservation(); }