Uses of Class
com.strategyquant.tradinglib.StrategyBase
-
Uses of StrategyBase in com.strategyquant.tradinglib
Modifier and TypeMethodDescriptionStrategyBase.clone()
Clone.static StrategyBase
StrategyBase.createXmlStrategy(org.jdom2.Element elStrategy)
Creates the xml strategy.static StrategyBase
StrategyBase.createXmlStrategy(org.jdom2.Element elStrategy, String strategyName)
Creates the xml strategy.ExitMethod.getStrategy()
Gets the strategy.IBlock.getStrategy()
Gets the strategy.Result.getStrategy()
Gets the strategy.static StrategyBase
StrategyBase.getStrategy(SettingsMap settings)
Gets the strategy.Trader.getStrategy()
Gets the strategy.static StrategyBase
TradingUtils.getStrategy(SettingsMap settings)
Gets the strategy.StrategyBase.newInstance()
New instance.Modifier and TypeMethodDescriptionvoid
Databank.add(StrategyBase strategy)
create a ResultsGroup, add strategy into it and add it to the databank.void
Result.addStrategy(StrategyBase strategy)
Adds the strategy.ExitMethod.clone(boolean includingParameters, StrategyBase strategy)
Clone.IBlock.clone(boolean includingParameters, StrategyBase strategy)
Clone.double
MoneyManagementMethod.computeTradeSize(StrategyBase strategy, String symbol, byte orderType, double price, double sl, double tickSize, double pointValue, double sizeStep)
Compute trade size.double
MoneyManagementMethod.computeTradeSize(StrategyBase strategy, String symbol, byte orderType, double price, double sl, double tickSize, double pointValue, double sizeStep, double maxPos)
Compute trade size.abstract double
ExitMethod.computeValue(byte orderType, StrategyBase strategy, String symbol, double price)
Compute value.static com.strategyquant.tradinglib.optimization.StrategyParamData
StrategyBase.createStrategyVariation(StrategyBase strategy, com.strategyquant.tradinglib.optimization.OptimizationSettings optimizationSettings, short[] indexes)
Creates the strategy variation.void
Trader.evaluateActionListeners(int updateEventType, StrategyBase strategyBase)
Evaluate action listeners.double
IFormula.evaluateFormula(StrategyBase strategy, String symbol, double price, int direction)
Evaluate formula.static IBlock
Blocks.getBlockObject(String snippetName, StrategyBase strategy, org.jdom2.Element elBlock)
Gets the block object.boolean
ATM.isApplicable(StrategyBase strategy, double size, double sl, byte orderType)
returns true if ATM is enabled and applicable to this orderabstract IBlock
Negater.negate(NegatersList negatersList, IBlock block, int blockType, int returnType, StrategyBase strategy)
Negate.NegatersList.negate(IBlock block, StrategyBase strategy)
Negate.static void
ParametersHelper.negateParametersInClonedBlock(IBlock block, IBlock oppositeBlock, NegatersList negatersList, StrategyBase strategy)
Negate parameters in cloned block.IFormula.newFormulaInstance(StrategyBase strategy, org.jdom2.Element elFormulaBlock)
New formula instance.ExitMethod.newInstance(StrategyBase strategy, ArrayList<org.jdom2.Element> params)
New instance.ExitMethod.newInstance(StrategyBase strategy, org.jdom2.Element elBlock)
New instance.IBlock.newInstance(StrategyBase strategy, org.jdom2.Element elBlock)
New instance.void
IActionEventListener.OnActionEvent(StrategyBase Strategy)
On action event.abstract boolean
TradingOption.OnBarUpdate(StrategyBase Strategy)
On bar update.void
TradingOption.OnTick(StrategyBase Strategy, TickEvent tickEvent, boolean includingPendingOrders)
On tick.boolean
ExitMethod.setExit(ILiveOrder order, StrategyBase strategy)
Sets the exit.static void
ATM.setForOrder(ILiveOrder order, StrategyBase strategy)
void
ATMExit.setForOrder(ILiveOrder order, StrategyBase strategy, double originalSL, double originalPT)
abstract void
ExitMethod.setForOrder(ILiveOrder order, StrategyBase strategy)
Sets the for order.void
Trader.setStrategy(StrategyBase strategy)
Sets the strategy.