Package com.strategyquant.tradinglib
Class CommissionsMethod
java.lang.Object
com.strategyquant.tradinglib.debug.Debugger
com.strategyquant.tradinglib.propertygrid.ParametersTableItemProperties
com.strategyquant.tradinglib.propertygrid.ParametersTableItem
com.strategyquant.tradinglib.CommissionsMethod
- All Implemented Interfaces:
com.strategyquant.lib.settings.IXMLAble
,Serializable
public abstract class CommissionsMethod
extends com.strategyquant.tradinglib.propertygrid.ParametersTableItem
The Class CommissionsMethod.
- See Also:
- Serialized Form
-
Field Summary
FieldsFields inherited from class com.strategyquant.tradinglib.propertygrid.ParametersTableItem
_text, editable
Fields inherited from class com.strategyquant.tradinglib.propertygrid.ParametersTableItemProperties
df, Log, TYPE_BOOLEAN, TYPE_DATE, TYPE_DOUBLE, TYPE_INT, TYPE_INT_LIST, TYPE_STR_LIST, TYPE_STRING, TYPE_TIME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract double
computeCommissionsOnClose(ILiveOrder order, double tickSize, double pointValue)
Compute commissions on close.abstract double
computeCommissionsOnOpen(ILiveOrder order, double tickSize, double pointValue)
Compute commissions on open.getClone()
Gets the clone.org.jdom2.Element
getXML()
Gets the xml.void
setFromXML(org.jdom2.Element mmElem)
Sets the from XML.void
Sets the name.Methods inherited from class com.strategyquant.tradinglib.propertygrid.ParametersTableItem
equals, getDescription, getEngine, getFormatedName, getName, getNote, isEditable, isUsed, newInstance, printFormatedName, setEditable, setFromParameterEl, setUsed
Methods inherited from class com.strategyquant.tradinglib.propertygrid.ParametersTableItemProperties
getParametersList, getParameterValue, getParams, getPGParameterValue, setDefaultValues, setParameterValue, setParams
Methods inherited from class com.strategyquant.tradinglib.debug.Debugger
debug, fdebug
-
Field Details
-
name
The name.
-
-
Constructor Details
-
CommissionsMethod
public CommissionsMethod()
-
-
Method Details
-
setName
Sets the name.- Parameters:
name
- the new name
-
getXML
public org.jdom2.Element getXML()Gets the xml.- Specified by:
getXML
in interfacecom.strategyquant.lib.settings.IXMLAble
- Overrides:
getXML
in classcom.strategyquant.tradinglib.propertygrid.ParametersTableItem
- Returns:
- the xml
-
setFromXML
Sets the from XML.- Specified by:
setFromXML
in interfacecom.strategyquant.lib.settings.IXMLAble
- Overrides:
setFromXML
in classcom.strategyquant.tradinglib.propertygrid.ParametersTableItem
- Parameters:
mmElem
- the new from XML- Throws:
Exception
- the exception
-
getClone
Gets the clone.- Overrides:
getClone
in classcom.strategyquant.tradinglib.propertygrid.ParametersTableItem
- Returns:
- the clone
- Throws:
Exception
- the exception
-
computeCommissionsOnOpen
public abstract double computeCommissionsOnOpen(ILiveOrder order, double tickSize, double pointValue) throws ExceptionCompute commissions on open.- Parameters:
order
- the ordertickSize
- the tick sizepointValue
- the point value- Returns:
- the double
- Throws:
Exception
- the exception
-
computeCommissionsOnClose
public abstract double computeCommissionsOnClose(ILiveOrder order, double tickSize, double pointValue) throws ExceptionCompute commissions on close.- Parameters:
order
- the ordertickSize
- the tick sizepointValue
- the point value- Returns:
- the double
- Throws:
Exception
- the exception
-