Class Ema

java.lang.Object
com.illumon.numerics.movingaverages.AbstractMa
com.illumon.numerics.movingaverages.Ema
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
TradingHoursEma

public class Ema
extends AbstractMa
implements Serializable
An EMA.
See Also:
Serialized Form
  • Constructor Details

    • Ema

      public Ema​(AbstractMa.Type type, AbstractMa.Mode mode, double timeScale)
      Constructs a new EMA which use the given timescale.
      Parameters:
      type - type of EMA
      mode - compute the ema by tick or time
      timeScale - timescale for the EMAs.
  • Method Details