Package com.strategyquant.tradinglib
Class TradingOption
java.lang.Object
com.strategyquant.tradinglib.debug.Debugger
com.strategyquant.tradinglib.propertygrid.ParametersTableItemProperties
com.strategyquant.tradinglib.propertygrid.ParametersTableItem
com.strategyquant.tradinglib.TradingOption
- All Implemented Interfaces:
com.strategyquant.lib.settings.IXMLAble,com.strategyquant.lib.utils.ISQCloneable<TradingOption>,Serializable
public abstract class TradingOption
extends com.strategyquant.tradinglib.propertygrid.ParametersTableItem
implements com.strategyquant.lib.utils.ISQCloneable<TradingOption>
The Class TradingOption.
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class com.strategyquant.tradinglib.propertygrid.ParametersTableItem
_text, editable, nameFields 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 TypeMethodDescriptiongetClone()Gets the clone.booleanChecks if is inbuild.abstract booleanChecks if is used in trading.abstract booleanOnBarUpdate(StrategyBase Strategy)On bar update.voidOnTick(StrategyBase Strategy, TickEvent tickEvent, boolean includingPendingOrders)On tick.Methods inherited from class com.strategyquant.tradinglib.propertygrid.ParametersTableItem
equals, getDescription, getEngine, getFormatedName, getName, getNote, getXML, isEditable, isUsed, newInstance, printFormatedName, setEditable, setFromParameterEl, setFromXML, setUsedMethods inherited from class com.strategyquant.tradinglib.propertygrid.ParametersTableItemProperties
getParametersList, getParameterValue, getParams, getPGParameterValue, setDefaultValues, setParameterValue, setParamsMethods inherited from class com.strategyquant.tradinglib.debug.Debugger
debug, fdebug
-
Constructor Details
-
TradingOption
public TradingOption()Instantiates a new trading option.
-
-
Method Details
-
isInbuild
public boolean isInbuild()Checks if is inbuild.- Returns:
- true, if is inbuild
-
OnBarUpdate
On bar update.- Parameters:
Strategy- the strategy- Returns:
- true, if successful
- Throws:
Exception- the exception
-
isUsedInTrading
public abstract boolean isUsedInTrading()Checks if is used in trading.- Returns:
- true, if is used in trading
-
OnTick
public void OnTick(StrategyBase Strategy, TickEvent tickEvent, boolean includingPendingOrders) throws ExceptionOn tick.- Parameters:
Strategy- the strategytickEvent- the tick eventincludingPendingOrders- the including pending orders- Throws:
Exception- the exception
-
getClone
Gets the clone.- Specified by:
getClonein interfacecom.strategyquant.lib.utils.ISQCloneable<TradingOption>- Overrides:
getClonein classcom.strategyquant.tradinglib.propertygrid.ParametersTableItem- Returns:
- the clone
- Throws:
CloneNotSupportedException- the clone not supported exception
-