Class VolumeProfile
java.lang.Object
com.motivewave.platform.sdk.profile.Profile
com.motivewave.platform.sdk.profile.VolumeProfile
- All Implemented Interfaces:
TickOperation
- Direct Known Subclasses:
SummaryProfile
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleFields inherited from class com.motivewave.platform.sdk.profile.Profile
endTime, firstTick, highPrice, instrument, lastPrice, lastTick, lowPrice, openPrice, rangeTicks, startTime, totalVolume -
Constructor Summary
ConstructorsConstructorDescriptionVolumeProfile(long startTime, long endTime, Instrument instr, int rangeTicks) -
Method Summary
Modifier and TypeMethodDescriptionprotected int[]calcHVNs(int sensitivity) protected int[]calcLVNs(int sensitivity) find(float price) protected VolumeRowfindOrCreate(float price) doublegetAVAP()doubledoubleint[]getHVNs(int sensitivity) int[]getLVNs(int sensitivity) doubledoubledoubledoubledoubledoubledoublefloatdoublegetNext()getPOC()floatgetPrev()getRows()intgetTicks()doubledoubledoublefloatgetVAHigh(int[] va) floatgetVALow(int[] va) int[]getValueArea(double per) int[]getValueArea(double per, com.motivewave.platform.common.Enums.VAMethod method) doublebooleanbooleanbooleanbooleanvoidExecutes the operation on the given tickvoidsetComplete(boolean b) voidsetFilterTrades(boolean b) voidsetMinTradeSize(float s) voidsetNext(VolumeProfile vp) voidsetPrev(VolumeProfile vp) protected voidMethods inherited from class com.motivewave.platform.sdk.profile.Profile
getEndTime, getFirstTick, getFirstTime, getHighPrice, getInstrument, getLastPrice, getLastTick, getLastTime, getLowPrice, getMidPrice, getOpenPrice, getRangeTicks, getStartTime, getTotalVolume, setEndTime
-
Field Details
-
maxDelta
protected double maxDelta -
minDelta
protected double minDelta -
totalDelta
protected double totalDelta -
maxBidVolume
protected double maxBidVolume -
maxAskVolume
protected double maxAskVolume -
maxVolume
protected double maxVolume -
minVolume
protected double minVolume -
maxRowDelta
protected double maxRowDelta -
minRowDelta
protected double minRowDelta -
totalBidVolume
protected double totalBidVolume -
totalAskVolume
protected double totalAskVolume
-
-
Constructor Details
-
VolumeProfile
-
-
Method Details
-
isSummary
public boolean isSummary() -
getPrev
-
setPrev
-
getNext
-
setNext
-
getAVAP
public double getAVAP() -
getDeltaPer
public double getDeltaPer() -
getDeltaChange
public double getDeltaChange() -
getMaxDelta
public double getMaxDelta() -
isMaxDeltaSet
public boolean isMaxDeltaSet() -
getMinDelta
public double getMinDelta() -
getMaxRowDelta
public double getMaxRowDelta() -
getMinRowDelta
public double getMinRowDelta() -
getMaxAskVolume
public double getMaxAskVolume() -
getMaxVolume
public double getMaxVolume() -
getMinVolume
public double getMinVolume() -
getMaxBidVolume
public double getMaxBidVolume() -
getTotalDelta
public double getTotalDelta() -
getVolumePerSecond
public double getVolumePerSecond() -
getTotalBidVolume
public double getTotalBidVolume() -
getTotalAskVolume
public double getTotalAskVolume() -
getVALow
public float getVALow(int[] va) -
getVAHigh
public float getVAHigh(int[] va) -
getValueArea
public int[] getValueArea(double per) -
getLVNs
public int[] getLVNs(int sensitivity) -
getHVNs
public int[] getHVNs(int sensitivity) -
getValueArea
public int[] getValueArea(double per, com.motivewave.platform.common.Enums.VAMethod method) -
setFilterTrades
public void setFilterTrades(boolean b) -
isFilterTrades
public boolean isFilterTrades() -
setMinTradeSize
public void setMinTradeSize(float s) -
getMinTradeSize
public float getMinTradeSize() -
getTicks
public int getTicks() -
isComplete
public boolean isComplete() -
setComplete
public void setComplete(boolean b) -
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
-
getPOC
-
getPOCMidpoint
public float getPOCMidpoint() -
updatePOC
protected void updatePOC() -
calcLVNs
protected int[] calcLVNs(int sensitivity) -
calcHVNs
protected int[] calcHVNs(int sensitivity)
-