public abstract class MoneyManagementType
extends com.strategyquant.core.gui.components.multiselectPropertyTable.ExtendableParameterClass
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PREFIX
The Constant PREFIX.
|
| Constructor and Description |
|---|
MoneyManagementType()
Instantiates a new money management type.
|
| Modifier and Type | Method and Description |
|---|---|
void |
applySettings(int simulation,
FlexibleSettings settings)
Apply settings.
|
abstract double |
computeTradeSize(SQOrder order,
double tickSize,
double pointValue)
Compute trade size.
|
abstract void |
init(SQOrderList originalOrderList,
com.strategyquant.futurelib.backtester.SymbolsTable symbolsTable)
Inits the.
|
void |
initOrdersHistory(int decimals,
SQOrderList openOrders,
SQOrderList closedOrders)
Inits the orders history.
|
void |
loadSettings(int simulation,
FlexibleSettings settings)
Load settings.
|
void |
setEquity(double equity)
Sets the equity.
|
getClassName, toStringapplySettings, getFormatedName, getName, getNote, getReplacedFormatedName, isUsed, loadSettings, setEditable, setFormatedName, setName, setNote, setUsedpublic static final java.lang.String PREFIX
public MoneyManagementType()
public void initOrdersHistory(int decimals,
SQOrderList openOrders,
SQOrderList closedOrders)
decimals - the decimalsopenOrders - the open ordersclosedOrders - the closed orderspublic void setEquity(double equity)
equity - the new equitypublic abstract void init(SQOrderList originalOrderList, com.strategyquant.futurelib.backtester.SymbolsTable symbolsTable) throws java.lang.Exception
originalOrderList - the original order listsymbolsTable - the symbols tablejava.lang.Exception - the exceptionpublic abstract double computeTradeSize(SQOrder order, double tickSize, double pointValue) throws java.lang.Exception
order - the ordertickSize - the tick sizepointValue - the point valuejava.lang.Exception - the exceptionpublic void loadSettings(int simulation,
FlexibleSettings settings)
simulation - the simulationsettings - the settingspublic void applySettings(int simulation,
FlexibleSettings settings)
simulation - the simulationsettings - the settings