Class CorrelationType

java.lang.Object
com.strategyquant.tradinglib.debug.Debugger
com.strategyquant.tradinglib.CorrelationType
All Implemented Interfaces:
com.strategyquant.lib.utils.ISQCloneable<CorrelationType>

public abstract class CorrelationType extends com.strategyquant.tradinglib.debug.Debugger implements com.strategyquant.lib.utils.ISQCloneable<CorrelationType>
The Class CorrelationType.
  • Field Details

    • DATA_TYPE_PL

      public static final int DATA_TYPE_PL
      The Constant DATA_TYPE_PL.
      See Also:
      Constant Field Values
    • DATA_TYPE_TRADES

      public static final int DATA_TYPE_TRADES
      The Constant DATA_TYPE_TRADES.
      See Also:
      Constant Field Values
  • Constructor Details

    • CorrelationType

      public CorrelationType()
  • Method Details

    • getName

      public String getName()
      Gets the name.
      Returns:
      the name
    • getDataType

      public int getDataType()
      Gets the data type.
      Returns:
      the data type
    • toString

      public String toString()
      To string.
      Overrides:
      toString in class Object
      Returns:
      the string
    • computePeriods

      public abstract void computePeriods(OrdersList orders, int period, TimePeriods periods) throws Exception
      Compute periods.
      Parameters:
      orders - the orders
      period - the period
      periods - the periods
      Throws:
      Exception - the exception
    • isCanceledOrder

      public boolean isCanceledOrder(Order order)
      Checks if is canceled order.
      Parameters:
      order - the order
      Returns:
      true, if is canceled order
    • getClone

      public CorrelationType getClone()
      Gets the clone.
      Specified by:
      getClone in interface com.strategyquant.lib.utils.ISQCloneable<CorrelationType>
      Returns:
      the clone