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, name
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
-
Method Summary
Modifier and TypeMethodDescriptiongetClone()
Gets the clone.boolean
Checks if is inbuild.abstract boolean
Checks if is used in trading.abstract boolean
OnBarUpdate(StrategyBase Strategy)
On bar update.void
OnTick(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, 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
-
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:
getClone
in interfacecom.strategyquant.lib.utils.ISQCloneable<TradingOption>
- Overrides:
getClone
in classcom.strategyquant.tradinglib.propertygrid.ParametersTableItem
- Returns:
- the clone
- Throws:
CloneNotSupportedException
- the clone not supported exception
-