public class Volume extends CachelessIndicator<Num>
See Also:
  • Constructor Details

    • Volume

      protected Volume(BarSeries barSeries)
  • Method Details

    • volume

      public static Volume volume(BarSeries barSeries)
      Gets a Volume.
      Parameters:
      barSeries - the BarSeries
    • calculate

      protected Num calculate(long index)
      Description copied from class: Indicator
      Performs the calculation of this Indicator at the given index.
      Specified by:
      calculate in class Indicator<Num>
      Parameters:
      index - the index
      Returns:
      the result (never null)