Class TPOProfile

java.lang.Object
com.motivewave.platform.sdk.profile.Profile
com.motivewave.platform.sdk.profile.TPOProfile
All Implemented Interfaces:
TickOperation

public class TPOProfile extends Profile
  • Field Details

    • letters

      public static final String[] letters
  • Constructor Details

    • TPOProfile

      public TPOProfile(long startTime, long endTime, long interval, Instrument instr, int rangeTicks, int ibrRange, int openRange, boolean pocVolume)
  • Method Details

    • getInstrument

      public Instrument getInstrument()
      Overrides:
      getInstrument in class Profile
    • getMidnight

      public long getMidnight()
    • getTotalVolume

      public double getTotalVolume()
      Overrides:
      getTotalVolume in class Profile
    • getVolumeValueArea

      public int[] getVolumeValueArea(double per)
    • getVolumeValueArea

      public int[] getVolumeValueArea(double per, com.motivewave.platform.common.Enums.VAMethod method)
    • getTimeValueArea

      public int[] getTimeValueArea(double per)
    • getTimeValueArea

      public int[] getTimeValueArea(double per, com.motivewave.platform.common.Enums.VAMethod method)
    • getIBRLow

      public float getIBRLow()
    • getIBRHigh

      public float getIBRHigh()
    • getORLow

      public float getORLow()
    • getORHigh

      public float getORHigh()
    • getInterval

      public long getInterval()
    • getLetterStartTime

      public long getLetterStartTime()
    • setLetterStartTime

      public void setLetterStartTime(long t)
    • onTick

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

      public List<TPORow> getRows()
    • find

      public TPORow find(float price)
    • findOrCreate

      protected TPORow findOrCreate(float price)
    • getMaxCells

      public int getMaxCells()
    • getMaxCellIndex

      public int getMaxCellIndex()
    • getPOC

      public TPORow getPOC()
    • getPOCMidpoint

      public float getPOCMidpoint()
    • getVALow

      public float getVALow(int[] va)
    • getVAHigh

      public float getVAHigh(int[] va)
    • getLetterIndex

      public int getLetterIndex(String letter)