Package com.strategyquant.tradinglib
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 Summary
Modifier and TypeFieldDescriptionstatic int
The Constant DATA_TYPE_PL.static int
The Constant DATA_TYPE_TRADES. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
computePeriods(OrdersList orders, int period, TimePeriods periods)
Compute periods.getClone()
Gets the clone.int
Gets the data type.getName()
Gets the name.boolean
isCanceledOrder(Order order)
Checks if is canceled order.toString()
To string.Methods inherited from class com.strategyquant.tradinglib.debug.Debugger
debug, fdebug
-
Field Details
-
DATA_TYPE_PL
public static final int DATA_TYPE_PLThe Constant DATA_TYPE_PL.- See Also:
- Constant Field Values
-
DATA_TYPE_TRADES
public static final int DATA_TYPE_TRADESThe Constant DATA_TYPE_TRADES.- See Also:
- Constant Field Values
-
-
Constructor Details
-
CorrelationType
public CorrelationType()
-
-
Method Details
-
getName
Gets the name.- Returns:
- the name
-
getDataType
public int getDataType()Gets the data type.- Returns:
- the data type
-
toString
To string. -
computePeriods
public abstract void computePeriods(OrdersList orders, int period, TimePeriods periods) throws ExceptionCompute periods.- Parameters:
orders
- the ordersperiod
- the periodperiods
- the periods- Throws:
Exception
- the exception
-
isCanceledOrder
Checks if is canceled order.- Parameters:
order
- the order- Returns:
- true, if is canceled order
-
getClone
Gets the clone.- Specified by:
getClone
in interfacecom.strategyquant.lib.utils.ISQCloneable<CorrelationType>
- Returns:
- the clone
-