Class Profile
java.lang.Object
com.motivewave.platform.sdk.profile.Profile
- All Implemented Interfaces:
TickOperation
- Direct Known Subclasses:
TPOProfile
,VolumeProfile
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected long
protected Tick
protected float
protected Instrument
protected float
protected Tick
protected float
protected float
protected int
protected long
protected double
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Profile
(long startTime, long endTime, Instrument instrument, int rangeTicks) -
Method Summary
Modifier and TypeMethodDescriptionlong
long
float
float
long
float
float
float
int
long
double
abstract void
Executes the operation on the given tickvoid
setEndTime
(long time)
-
Field Details
-
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
-
lastTick
-
-
Constructor Details
-
Profile
-
-
Method Details
-
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
-
getFirstTick
-
onTick
Description copied from interface:TickOperation
Executes the operation on the given tick- Specified by:
onTick
in interfaceTickOperation
- Parameters:
tick
- tick to process
-