public abstract class EquityControl
extends com.strategyquant.core.gui.components.multiselectPropertyTable.ExtendablePropertyClass
| Modifier and Type | Field and Description |
|---|---|
static float |
VALUE_UNDEFINED
The Constant VALUE_UNDEFINED.
|
| Constructor and Description |
|---|
EquityControl()
Instantiates a new equity control.
|
| Modifier and Type | Method and Description |
|---|---|
void |
applySettings(FlexibleSettings settings)
Apply settings.
|
abstract double[] |
computeBalanceControlLine(Trade[] originalTrades)
computes control line that will be drawn on chart and used to compute new equity.
|
abstract void |
computeNewTradeSizes(Trade[] trades,
double[] balanceControlLine) |
void |
loadSettings(FlexibleSettings settings)
Load settings.
|
getClassName, getName, logToFile, setName, toString, toStringNameWithParamspublic static final float VALUE_UNDEFINED
public abstract double[] computeBalanceControlLine(Trade[] originalTrades) throws java.lang.Exception
originalTrades - - list of original tradesjava.lang.Exception - the exceptionpublic abstract void computeNewTradeSizes(Trade[] trades, double[] balanceControlLine) throws java.lang.Exception
originalTrades - controlLine - java.lang.Exceptionpublic void applySettings(FlexibleSettings settings)
settings - the settingspublic void loadSettings(FlexibleSettings settings)
settings - the settings