Ejemplo n.º 1
0
  /** 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;
  }
Ejemplo n.º 2
0
 public float getLastDaysAveragePrice() {
   return averagePrice.getSmoothedObservation();
 }