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

    Constructors
    Constructor
    Description
    Instantiates a new trading option.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the clone.
    boolean
    Checks if is inbuild.
    abstract boolean
    Checks if is used in trading.
    abstract boolean
    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

    Methods inherited from class java.lang.Object

    getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public abstract boolean OnBarUpdate(StrategyBase Strategy) throws Exception
      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 Exception
      On tick.
      Parameters:
      Strategy - the strategy
      tickEvent - the tick event
      includingPendingOrders - the including pending orders
      Throws:
      Exception - the exception
    • getClone

      public TradingOption getClone() throws CloneNotSupportedException
      Gets the clone.
      Specified by:
      getClone in interface com.strategyquant.lib.utils.ISQCloneable<TradingOption>
      Overrides:
      getClone in class com.strategyquant.tradinglib.propertygrid.ParametersTableItem
      Returns:
      the clone
      Throws:
      CloneNotSupportedException - the clone not supported exception