Class Profile

java.lang.Object
com.motivewave.platform.sdk.profile.Profile
All Implemented Interfaces:
TickOperation
Direct Known Subclasses:
TPOProfile, VolumeProfile

public abstract class Profile extends Object implements TickOperation
  • Field Details

    • instrument

      protected Instrument instrument
    • startTime

      protected long startTime
    • endTime

      protected long endTime
    • rangeTicks

      protected int rangeTicks
    • openPrice

      protected float openPrice
    • highPrice

      protected float highPrice
    • lowPrice

      protected float lowPrice
    • lastPrice

      protected float lastPrice
    • totalVolume

      protected double totalVolume
    • firstTick

      protected Tick firstTick
    • lastTick

      protected Tick lastTick
  • Constructor Details

    • Profile

      protected Profile(long startTime, long endTime, Instrument instrument, int rangeTicks)
  • Method Details

    • getInstrument

      public Instrument getInstrument()
    • getStartTime

      public long getStartTime()
    • getEndTime

      public long getEndTime()
    • setEndTime

      public void setEndTime(long time)
    • getRangeTicks

      public int getRangeTicks()
    • getLastPrice

      public float getLastPrice()
    • getOpenPrice

      public float getOpenPrice()
    • getHighPrice

      public float getHighPrice()
    • getLowPrice

      public float getLowPrice()
    • getMidPrice

      public float getMidPrice()
    • getTotalVolume

      public double getTotalVolume()
    • getFirstTime

      public long getFirstTime()
    • getLastTime

      public long getLastTime()
    • getLastTick

      public Tick getLastTick()
    • getFirstTick

      public Tick getFirstTick()
    • onTick

      public abstract void onTick(Tick tick)
      Description copied from interface: TickOperation
      Executes the operation on the given tick
      Specified by:
      onTick in interface TickOperation
      Parameters:
      tick - tick to process