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 TPORow
findOrCreate
(float price) float
float
long
int
getLetterIndex
(String letter) long
int
int
long
float
float
getORLow()
getPOC()
float
getRows()
int[]
getTimeValueArea
(double per) int[]
getTimeValueArea
(double per, com.motivewave.platform.common.Enums.VAMethod method) double
float
getVAHigh
(int[] va) float
getVALow
(int[] va) int[]
getVolumeValueArea
(double per) int[]
getVolumeValueArea
(double per, com.motivewave.platform.common.Enums.VAMethod method) void
Executes the operation on the given tickvoid
setLetterStartTime
(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:
getInstrument
in classProfile
-
getMidnight
public long getMidnight() -
getTotalVolume
public double getTotalVolume()- Overrides:
getTotalVolume
in 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:TickOperation
Executes the operation on the given tick- Specified by:
onTick
in interfaceTickOperation
- Specified by:
onTick
in 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
-