public class DiscreteTradingTrajectory extends java.lang.Object implements TradingTrajectory
Constructor and Description |
---|
DiscreteTradingTrajectory(double[] adblExecutionTimeNode,
double[] adblHoldings,
double[] adblTradeList)
DiscreteTradingTrajectory Constructor
|
Modifier and Type | Method and Description |
---|---|
double |
executedBlockSize()
Retrieve the Executed Block Size
|
double |
executionTime()
Retrieve the Execution Time
|
double[] |
executionTimeNode()
Retrieve the Array containing the Execution Time Nodes Sequence
|
double[] |
holdings()
Retrieve the Array of the Number of Units Outstanding
|
double[] |
innerHoldings()
Retrieve the Array of the Inner Holdings
|
double |
instantTradeRate()
Retrieve the Instant Trade Rate
|
static DiscreteTradingTrajectory |
Linear(double[] adblExecutionTimeNode,
double dblStartHoldings,
double dblFinishHoldings)
Construct a Linear DiscreteTradingTrajectory Instance
|
int |
numberOfTrades()
Retrieve the Number of Trades
|
static DiscreteTradingTrajectory |
Standard(double[] adblExecutionTimeNode,
double[] adblHoldings)
Construct a Standard DiscreteTradingTrajectory Instance
|
double[] |
tradeList()
Retrieve the Trade List, i.e., the Array of the Number of Units executed
|
double |
tradeSize()
Retrieve the Trade Size
|
public DiscreteTradingTrajectory(double[] adblExecutionTimeNode, double[] adblHoldings, double[] adblTradeList) throws java.lang.Exception
adblExecutionTimeNode
- Array containing the Trajectory Time NodesadblHoldings
- Array containing the HoldingsadblTradeList
- Array containing the Trade Listjava.lang.Exception
- Thrown if the Inputs are Invalidpublic static DiscreteTradingTrajectory Standard(double[] adblExecutionTimeNode, double[] adblHoldings)
adblExecutionTimeNode
- Array containing the Trajectory Time NodesadblHoldings
- Array containing the Holdingspublic static final DiscreteTradingTrajectory Linear(double[] adblExecutionTimeNode, double dblStartHoldings, double dblFinishHoldings)
adblExecutionTimeNode
- Array of the Execution Time NodesdblStartHoldings
- Trajectory Start HoldingsdblFinishHoldings
- Trajectory Finish Holdingspublic double tradeSize()
TradingTrajectory
tradeSize
in interface TradingTrajectory
public double executedBlockSize()
TradingTrajectory
executedBlockSize
in interface TradingTrajectory
public double executionTime()
TradingTrajectory
executionTime
in interface TradingTrajectory
public double instantTradeRate()
TradingTrajectory
instantTradeRate
in interface TradingTrajectory
public double[] executionTimeNode()
public double[] holdings()
public double[] tradeList()
public int numberOfTrades()
public double[] innerHoldings()