Class TradeSize

java.lang.Object
trade.invision.indicators.indicators.Indicator<Num>
trade.invision.indicators.indicators.bar.TradeSize

public class TradeSize extends Indicator<Num>
TradeSize is a Num Indicator to provide the average trade size within a Bar. The formula used is: volume / tradeCount.
See Also:
  • Constructor Details

    • TradeSize

      protected TradeSize(BarSeries barSeries)
  • Method Details

    • tradeSize

      public static TradeSize tradeSize(BarSeries barSeries)
      Gets a TradeSize.
      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)