Click or drag to resize

StrategyHelper Methods

The StrategyHelper type exposes the following members.

Methods
  NameDescription
Public methodStatic memberBuyAtLimit
To create the initialized order object for buy.
Public methodStatic memberBuyAtMarket
To create initialized object of buy order at market price.
Public methodStatic memberCancel
To create an action, cancelling the order.
Public methodStatic memberClosePosition
To close open position by market (to register the order of the type Market).
Public methodStatic memberCreateOrder
To create the initialized order object.
Public methodStatic memberEmulateOrders
To emulate orders on history.
Public methodStatic memberGetAllowTrading
To get the strategy operation mode (initialization or trade).
Public methodStatic memberGetCandleManager
To get the candle manager, associated with the passed strategy.
Public methodStatic memberGetIsEmulation
To get the strategy start-up mode (paper trading or real).
Public methodStatic memberGetMessageSender
To get the message sender, associated with the passed strategy.
Public methodStatic memberGetSecurityValueT
To get market data value for the strategy instrument.
Public methodStatic memberGetTraceId
To get the tracing-based order identifier.
Public methodStatic memberLoadState
To restore the strategy state.
Public methodStatic memberRegister
To create an action, registering the order.
Public methodStatic memberReRegister
To create an action, re-registering the order.
Public methodStatic memberSellAtLimit
To create the initialized order object for sell.
Public methodStatic memberSellAtMarket
To create the initialized order object of sell order at market price.
Public methodStatic memberSetAllowTrading
To set the strategy operation mode (initialization or trade).
Public methodStatic memberSetCandleManager
To set the candle manager for the strategy.
Public methodStatic memberSetIsEmulation
To get the strategy start-up mode (paper trading or real).
Public methodStatic memberSetMessageSender
To set the message sender for the strategy.
Public methodStatic memberToTypeMessage
Public methodStatic memberWhenError
To create a rule for event of strategy error (transition of state ErrorState into Error).
Public methodStatic memberWhenNewMyTrade
To create a rule for the event of occurrence new strategy trade.
Public methodStatic memberWhenOrderChanged
To create a rule for event of change of any strategy order.
Public methodStatic memberWhenOrderRegistered
To create a rule for event of occurrence of new strategy order.
Public methodStatic memberWhenPnLChanged
To create a rule for event of profit change.
Public methodStatic memberWhenPnLLess
To create a rule for event of profit reduction below the specified level.
Public methodStatic memberWhenPnLMore
To create a rule for event of profit increase above the specified level.
Public methodStatic memberWhenPositionChanged
To create a rule for the event of strategy position change.
Public methodStatic memberWhenPositionLess
To create a rule for event of position event reduction below the specified level.
Public methodStatic memberWhenPositionMore
To create a rule for event of position event increase above the specified level.
Public methodStatic memberWhenStarted
To create a rule for event of start of strategy operation.
Public methodStatic memberWhenStopped
To create a rule for event full stop of strategy operation.
Public methodStatic memberWhenStopping
To create a rule for event of beginning of the strategy operation stop.
Public methodStatic memberWhenWarning
To create a rule for event of strategy warning (transition of state ErrorState into Warning).
Top
See Also