Class TPOProfile
java.lang.Object
com.motivewave.platform.sdk.profile.Profile
com.motivewave.platform.sdk.profile.TPOProfile
- All Implemented Interfaces:
TickOperation
-
Field Summary
FieldsFields inherited from class com.motivewave.platform.sdk.profile.Profile
endTime, firstTick, highPrice, instrument, lastPrice, lastTick, lowPrice, openPrice, rangeTicks, startTime, totalVolume -
Constructor Summary
ConstructorsConstructorDescriptionTPOProfile(long startTime, long endTime, long interval, Instrument instr, int rangeTicks, int ibrRange, int openRange, boolean pocVolume) -
Method Summary
Modifier and TypeMethodDescriptionfind(float price) protected TPORowfindOrCreate(float price) floatfloatlongintgetLetterIndex(String letter) longintintlongfloatfloatgetORLow()getPOC()floatgetRows()int[]getTimeValueArea(double per) int[]getTimeValueArea(double per, com.motivewave.platform.common.Enums.VAMethod method) doublefloatgetVAHigh(int[] va) floatgetVALow(int[] va) int[]getVolumeValueArea(double per) int[]getVolumeValueArea(double per, com.motivewave.platform.common.Enums.VAMethod method) voidExecutes the operation on the given tickvoidsetLetterStartTime(long t) Methods inherited from class com.motivewave.platform.sdk.profile.Profile
getEndTime, getFirstTick, getFirstTime, getHighPrice, getLastPrice, getLastTick, getLastTime, getLowPrice, getMidPrice, getOpenPrice, getRangeTicks, getStartTime, setEndTime
-
Field Details
-
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
- Overrides:
getInstrumentin classProfile
-
getMidnight
public long getMidnight() -
getTotalVolume
public double getTotalVolume()- Overrides:
getTotalVolumein classProfile
-
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
Description copied from interface:TickOperationExecutes the operation on the given tick- Specified by:
onTickin interfaceTickOperation- Specified by:
onTickin classProfile- Parameters:
tick- tick to process
-
getRows
-
find
-
findOrCreate
-
getMaxCells
public int getMaxCells() -
getMaxCellIndex
public int getMaxCellIndex() -
getPOC
-
getPOCMidpoint
public float getPOCMidpoint() -
getVALow
public float getVALow(int[] va) -
getVAHigh
public float getVAHigh(int[] va) -
getLetterIndex
-