Click or drag to resize

Strategy Class

The base class for all trade strategies.
Inheritance Hierarchy

Namespace:  StockSharp.Algo.Strategies
Assembly:  StockSharp.Algo (in StockSharp.Algo.dll) Version: 5.0.0.0 (5.0.0)
Syntax
C#
public class Strategy : BaseLogReceiver, INotifyPropertyChangedEx, 
	INotifyPropertyChanged, IMarketRuleContainer, ILogReceiver, ILogSource, IDisposable, 
	ICloneable<Strategy>, ICloneable, IMarketDataProvider, ISubscriptionProvider, 
	ISecurityProvider, ICandleManager, ICandleSource<Candle>, ITransactionProvider, 
	IPortfolioProvider, IPositionProvider, IScheduledTask

The Strategy type exposes the following members.

Constructors
  NameDescription
Public methodStrategy
Initializes a new instance of the Strategy.
Top
Properties
  NameDescription
Public propertyAllowTrading
Allow trading.
Public propertyCancelOrdersWhenStopping
To cancel active orders at stop. Is On by default.
Public propertyChildStrategies
Subsidiary trade strategies.
Public propertyCommentMode
Set Comment by Name or Id.
Public propertyCommentOrders Obsolete.
To add to Comment the name of the strategy Name, registering the order.
Public propertyCommission
Total commission.
Public propertyConnector
Connection to the trading system.
Public propertyCurrentRegisterCount
Current number of order changes.
Public propertyCurrentTime
Current time, which will be passed to the Time.
(Overrides BaseLogSourceCurrentTime.)
Public propertyDisposeOnStop
Automatically to clear resources, used by the strategy, when it stops (state ProcessState becomes equal to Stopped) and delete it from the parent strategy through ChildStrategies.
Public propertyEnvironment
Strategy environment parameters.
Public propertyErrorCount
The current number of errors.
Public propertyErrorState
The state of an error.
Public propertyId
Strategy ID.
(Overrides BaseLogSourceId.)
Public propertyIsDisposed (Inherited from Disposable.)
Public propertyIsRoot
Whether the source is the root (even if Parent is not equal to ).
(Inherited from BaseLogSource.)
Public propertyIsRulesSuspended
Is rules execution suspended.
Public propertyLatency
Total latency.
Public propertyLogLevel
The logging level for the source.
(Overrides BaseLogSourceLogLevel.)
Public propertyMaxErrorCount
The maximal number of errors, which strategy shall receive prior to stop operation.
Public propertyMaxOrderRegisterErrorCount
The maximum number of order registration errors above which the algorithm will be stopped.
Public propertyMaxRegisterCount
The maximum number of orders above which the algorithm will be stopped.
Public propertyMyTrades
Trades, matched during the strategy operation.
Public propertyName
Strategy name.
(Overrides BaseLogSourceName.)
Public propertyNameGenerator
The generator of strategy name.
Public propertyOrderFails
Orders with errors, registered within the strategy.
Public propertyOrderRegisterErrorCount
Current number of order registration errors.
Public propertyOrders
Orders, registered within the strategy framework.
Public propertyOrdersKeepTime
The time for storing Orders and StopOrders orders in memory. By default it equals to 2 days. If value is set in Zero, orders will not be deleted.
Public propertyParameters
Strategy parameters.
Public propertyParent
Parental logs source.
(Inherited from BaseLogSource.)
Public propertyPnL
The aggregate value of profit-loss without accounting commission Commission.
Public propertyPnLManager
The profit-loss manager. It accounts trades of this strategy, as well as of its subsidiary strategies ChildStrategies.
Public propertyPortfolio
Portfolio.
Public propertyPosition
The position aggregate value.
Public propertyPositionManager Obsolete.
The position manager. It accounts trades of this strategy, as well as of its subsidiary strategies ChildStrategies.
Public propertyPositions
Get all positions.
Public propertyProcessState
The operation state.
Public propertyRegisterInterval
The order registration interval above which the new order would not be registered.
Public propertyRestoreChildOrders
Restore orders last time was registered by child strategies.
Public propertyRiskManager
The risks control manager.
Public propertyRules
Registered rules.
Public propertySecurity
Security.
Public propertySlippage
Total slippage.
Public propertyStartedTime
Strategy start time.
Public propertyStatisticManager
The statistics manager.
Public propertyStopOnChildStrategyErrors
Stop strategy when child strategies causes errors.
Public propertyStopOrders Obsolete.
Stop-orders, registered within the strategy framework.
Public propertyTotalWorkingTime
The total time of strategy operation less time periods, when strategy was stopped.
Public propertyUnrealizedPnLInterval
The interval for unrealized profit recalculation. The default value is 1 minute.
Public propertyUnsubscribeOnStop
Unsubscribe all active subscription while strategy become stopping.
Public propertyVolume
Operational volume.
Public propertyWaitAllTrades
Stop strategy only after getting all trades by registered orders.
Public propertyWaitRulesOnStop
Wait Rules to finish before strategy become into Stopped state.
Public propertyWorkingTime
Working schedule.
Top
Methods
  NameDescription
Public methodApplyChanges
Apply changes.
Public methodApplyCommand
Apply incoming command.
Public methodAttachOrder Obsolete.
To add the active order to the strategy and process trades by the order.
Protected methodCanAttach
Determines the specified order can be owned by the strategy.
Public methodCancelActiveOrders
To cancel all active orders (to stop and regular).
Public methodCancelOrder
Cancel the order.
Public methodClone
Create a copy of Strategy.
Public methodDispose (Inherited from Disposable.)
Protected methodDisposeManaged
Release resources.
(Overrides Disposable.DisposeManaged.)
Protected methodDisposeNative (Inherited from Disposable.)
Public methodEditOrder
Edit the order.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize (Inherited from Disposable.)
Public methodGetFilteredMarketDepth Obsolete.
Get filtered order book.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetLevel1Fields
To get a set of available fields Level1Fields, for which there is a market data for the instrument.
Public methodGetMarketDepth Obsolete.
To get the quotes order book.
Protected methodGetPositionValue
Get position.
Public methodGetSecurityValue
To get the value of market data for the instrument.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodInitStartValues
Init.
Public methodIsOrderEditable
Determines the specified order can be edited by EditOrder(Order, Order).
Public methodIsOrderReplaceable
Determines the specified order can be replaced by ReRegisterOrder(Order, Order).
Public methodLoad
Load settings.
(Overrides BaseLogSourceLoad(SettingsStorage).)
Public methodLookup
Lookup securities by criteria criteria.
Public methodLookupById
To get the instrument by the identifier.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnError
Processing of error, occurred as result of strategy operation.
Protected methodOnNewMyTrade
The method, called at occurrence of new strategy trade.
Protected methodOnOrderCanceling
To call the event OrderCanceling.
Protected methodOnOrderChanged
The method, called at strategy order change.
Protected methodOnOrderRegistered
To call the event OrderRegistered.
Protected methodOnOrderRegisterFailed
The method, called at strategy order registration error.
Protected methodOnOrderRegistering
To call the event OrderRegistering.
Protected methodOnOrderReRegistering
To call the event OrderReRegistering.
Protected methodOnReseted
Protected methodOnStarted
The method is called when the Start method has been called and the ProcessState state has been taken the Started value.
Protected methodOnStopped
The method is called when the ProcessState process state has been taken the Stopped value.
Protected methodOnStopping
The method is called when the ProcessState process state has been taken the Stopping value.
Protected methodProcessCancelActiveOrders
To cancel all active orders (to stop and regular).
Protected methodProcessNewOrders
To process orders, received for the connection Connector, and find among them those, belonging to the strategy.
Protected methodRaiseLog
To call the event Log.
(Overrides BaseLogSourceRaiseLog(LogMessage).)
Protected methodRaiseParametersChanged
To call events ParametersChanged and PropertyChanged.
Protected methodRaiseProcessStateChanged
To call the event ProcessStateChanged.
Public methodRegisterOrder
Register new order.
Public methodReRegisterOrder
Reregister the order.
Public methodReset
To re-initialize the trade algorithm. It is called after initialization of the strategy object and loading stored parameters.
Public methodSafeGetConnector
To get the strategy getting Connector. If it is not initialized, the exception will be discarded.
Public methodSave
Save settings.
(Overrides BaseLogSourceSave(SettingsStorage).)
Public methodStart
To start the trade algorithm.
Public methodStart(CandleSeries, NullableDateTimeOffset, NullableDateTimeOffset) Obsolete.
To send data request.
Public methodStop
To stop the trade algorithm.
Public methodStop(CandleSeries) Obsolete.
Public methodSubscribe
Subscribe.
Protected methodThrowIfDisposed (Inherited from Disposable.)
Public methodToInfoMessage
Convert to StrategyInfoMessage.
Public methodToString
Returns a string that represents the current object.
(Inherited from BaseLogSource.)
Public methodUnSubscribe
Unsubscribe.
Top
Events
  NameDescription
Public eventBoardReceived
Board received.
Public eventCandleReceived
Candle received.
Public eventCommissionChanged
Commission change event.
Public eventConnectorChanged
The event of strategy connection change.
Public eventError
The event of error occurrence in the strategy.
Public eventFilteredMarketDepthChanged Obsolete.
Order book changed.
Public eventLatencyChanged
Latency change event.
Public eventLevel1Received
Level1 received.
Public eventLog
New debug message event.
(Inherited from BaseLogSource.)
Public eventLookupBoardsResult
Lookup result BoardLookupMessage received.
Public eventLookupBoardsResult2
Lookup result BoardLookupMessage received.
Public eventLookupSecuritiesResult
Lookup result SecurityLookupMessage received.
Public eventLookupSecuritiesResult2
Lookup result SecurityLookupMessage received.
Public eventLookupTimeFramesResult
Lookup result TimeFrameLookupMessage received.
Public eventLookupTimeFramesResult2
Lookup result TimeFrameLookupMessage received.
Public eventMarketDataSubscriptionFailed
Error subscription market-data.
Public eventMarketDataSubscriptionFailed2
Error subscription market-data.
Public eventMarketDataSubscriptionFinished
Subscription market-data finished.
Public eventMarketDataSubscriptionOnline
Subscription is online.
Public eventMarketDataSubscriptionSucceeded
Successful subscription market-data.
Public eventMarketDataUnexpectedCancelled
Market-data subscription unexpected cancelled.
Public eventMarketDataUnSubscriptionFailed
Error unsubscription market-data.
Public eventMarketDataUnSubscriptionFailed2
Error unsubscription market-data.
Public eventMarketDataUnSubscriptionSucceeded
Successful unsubscription market-data.
Public eventMarketDepthChanged Obsolete.
Order book changed.
Public eventMarketDepthReceived
Order book received.
Public eventNewMarketDepth Obsolete.
Order book received.
Public eventNewMyTrade
Own trade received.
Public eventNewNews Obsolete.
News received.
Public eventNewOrderLogItem Obsolete.
Order log received.
Public eventNewsChanged Obsolete.
News updated (news body received Story).
Public eventNewSecurity Obsolete.
Security received.
Public eventNewsReceived
News received.
Public eventNewStateMessage
New StrategyStateMessage occurred event.
Public eventNewTrade Obsolete.
Tick trade received.
Public eventOrderBookReceived
Order book received.
Public eventOrderCancelFailed
Order cancellation error event.
Public eventOrderCancelFailReceived
Order cancellation error event.
Public eventOrderCanceling
The event of sending order for cancelling.
Public eventOrderChanged
Order changed (cancelled, matched).
Public eventOrderEdited
EditOrder(Order, Order) success result event.
Public eventOrderEditFailed
EditOrder(Order, Order) error result event.
Public eventOrderEditFailReceived
Order edition error event.
Public eventOrderLogItemReceived
Order log received.
Public eventOrderReceived
Order received.
Public eventOrderRegistered
The event of order successful registration.
Public eventOrderRegisterFailed
Order registration error event.
Public eventOrderRegisterFailReceived
Order registration error event.
Public eventOrderRegistering
The event of sending order for registration.
Public eventOrderReRegistering
The event of sending order for re-registration.
Public eventOwnTradeReceived
Own trade received.
Public eventParametersChanged
Parameters change event.
Public eventParentRemoved
Parent removed.
(Inherited from BaseLogSource.)
Public eventPnLChanged
PnL change event.
Public eventPnLReceived
PnL change event.
Public eventPortfolioReceived
Portfolio received.
Public eventPositionChanged
Position change event.
Public eventPositionReceived
Position received.
Public eventProcessStateChanged
ProcessState change event.
Public eventPropertyChanged
Occurs when a property value changes.
Public eventReseted
The event of the strategy re-initialization.
Public eventSecurityChanged Obsolete.
Security changed.
Public eventSecurityReceived
Security received.
Public eventSlippageChanged
Slippage change event.
Public eventStopOrderCancelFailed Obsolete.
Stop-order cancellation error event.
Public eventStopOrderCanceling Obsolete.
The event of sending stop-order for cancelling.
Public eventStopOrderChanged Obsolete.
Stop order state change event.
Public eventStopOrderRegistered Obsolete.
The event of stop-order successful registration.
Public eventStopOrderRegisterFailed Obsolete.
Stop-order registration error event.
Public eventStopOrderRegistering Obsolete.
The event of sending stop-order for registration.
Public eventStopOrderReRegistering Obsolete.
The event of sending stop-order for re-registration.
Public eventSubscriptionFailed
Subscription is failed.
Public eventSubscriptionOnline
Subscription is online.
Public eventSubscriptionReceived
Message received.
Public eventSubscriptionStarted
Subscription is started.
Public eventSubscriptionStopped
Subscription is stopped.
Public eventTickTradeReceived
Tick trade received.
Public eventValuesChanged
Security changed.
Top
Extension Methods
  NameDescription
Public Extension MethodActiveRule
To activate the rule.
(Defined by MarketRuleHelper.)
Public Extension MethodAddDebugLog
To record a debug message to the log.
(Defined by LoggingHelper.)
Public Extension MethodAddErrorLog(FuncString)Overloaded.
To record an error to the log.
(Defined by LoggingHelper.)
Public Extension MethodAddErrorLog(Exception)Overloaded.
To record an error to the log.
(Defined by LoggingHelper.)
Public Extension MethodAddErrorLog(Exception, String)Overloaded.
To record an error to the log.
(Defined by LoggingHelper.)
Public Extension MethodAddErrorLog(String, Object)Overloaded.
To record an error to the log.
(Defined by LoggingHelper.)
Public Extension MethodAddInfoLog(FuncString)Overloaded.
To record a message to the log.
(Defined by LoggingHelper.)
Public Extension MethodAddInfoLog(String, Object)Overloaded.
To record a message to the log.
(Defined by LoggingHelper.)
Public Extension MethodAddLog
To record a message to the log.
(Defined by LoggingHelper.)
Public Extension MethodAddOrderErrorLog
Write order error to the log.
(Defined by TraderHelper.)
Public Extension MethodAddOrderInfoLog
Write order info to the log.
(Defined by TraderHelper.)
Public Extension MethodAddRuleLog
To write the message from the rule.
(Defined by MarketRuleHelper.)
Public Extension MethodAddVerboseLog
To record a verbose message to the log.
(Defined by LoggingHelper.)
Public Extension MethodAddWarningLog(FuncString)Overloaded.
To record a warning to the log.
(Defined by LoggingHelper.)
Public Extension MethodAddWarningLog(String, Object)Overloaded.
To record a warning to the log.
(Defined by LoggingHelper.)
Public Extension MethodBuyAtLimit
To create the initialized order object for buy.
(Defined by StrategyHelper.)
Public Extension MethodBuyAtMarket
To create initialized object of buy order at market price.
(Defined by StrategyHelper.)
Public Extension MethodClosePosition
To close open position by market (to register the order of the type Market).
(Defined by StrategyHelper.)
Public Extension MethodClosePositionByQuoting
To close the open position via quoting.
(Defined by Extensions.)
Public Extension MethodCreateOrder
To create the initialized order object.
(Defined by StrategyHelper.)
Public Extension MethodGetAllowTrading
To get the strategy operation mode (initialization or trade).
(Defined by StrategyHelper.)
Public Extension MethodGetAllSecurity
Find AllSecurity instance in the specified provider.
(Defined by TraderHelper.)
Public Extension MethodGetCandleTCandle
To get a candle by the index.
(Defined by CandleHelper.)
Public Extension MethodGetCandleCount
To get the number of candles.
(Defined by CandleHelper.)
Public Extension MethodGetCandleManager
To get the candle manager, associated with the passed strategy.
(Defined by StrategyHelper.)
Public Extension MethodGetCandlesTCandle(CandleSeries)Overloaded.
To get all candles.
(Defined by CandleHelper.)
Public Extension MethodGetCandlesTCandle(CandleSeries, DateTimeOffset)Overloaded.
To get all candles for the time period.
(Defined by CandleHelper.)
Public Extension MethodGetCandlesTCandle(CandleSeries, RangeDateTimeOffset)Overloaded.
To get candles by date range.
(Defined by CandleHelper.)
Public Extension MethodGetCandlesTCandle(CandleSeries, Int32)Overloaded.
To get candles by the total number.
(Defined by CandleHelper.)
Public Extension MethodGetChart
To get the chart associated with the passed strategy.
(Defined by ChartHelper.)
Public Extension MethodGetCurrentCandleTCandle
To get the current candle.
(Defined by CandleHelper.)
Public Extension MethodGetIsEmulation
To get the strategy start-up mode (paper trading or real).
(Defined by StrategyHelper.)
Public Extension MethodGetLogLevel
Get LogLevel for the source. If the value is equal to Inherit, then parental source level is taken.
(Defined by LoggingHelper.)
Public Extension MethodGetSecurityValueT(Level1Fields)Overloaded.
To get market data value for the strategy instrument.
(Defined by StrategyHelper.)
Public Extension MethodGetSecurityValueT(Security, Level1Fields)Overloaded.
To get the value of market data for the instrument.
(Defined by TraderHelper.)
Public Extension MethodGetSecurityValues
To get all market data values for the instrument.
(Defined by TraderHelper.)
Public Extension MethodGetSeriesTCandle
To get a candles series by the specified parameters.
(Defined by CandleHelper.)
Public Extension MethodGetStrategyProcessStateIconName
Get icon for ProcessState.
(Defined by Extensions.)
Public Extension MethodGetTimeFrameCandle
To get a temporary candle on the specific date.
(Defined by CandleHelper.)
Public Extension MethodIsCandlesRegisteredTCandle
Whether the grouping of candles by the specified attribute is registered.
(Defined by CandleHelper.)
Public Extension MethodLoadState
To restore the strategy state.
(Defined by StrategyHelper.)
Public Extension MethodLookup
Lookup securities by criteria criteria.
(Defined by TraderHelper.)
Public Extension MethodLookupAll
Get all available instruments.
(Defined by TraderHelper.)
Public Extension MethodLookupBoards(BoardLookupMessage)Overloaded.
To find boards that match the filter criteria. Found boards will be passed through the event LookupBoardsResult.
(Defined by TraderHelper.)
Public Extension MethodLookupBoards(ExchangeBoard, IMessageAdapter, MessageOfflineModes)Overloaded.
To find boards that match the filter criteria. Found boards will be passed through the event LookupBoardsResult.
(Defined by TraderHelper.)
Public Extension MethodLookupByCode
To get the instrument by the instrument code.
(Defined by TraderHelper.)
Public Extension MethodLookupById
To get the instrument by the identifier.
(Defined by TraderHelper.)
Public Extension MethodLookupByNativeId
To get the instrument by the system identifier.
(Defined by TraderHelper.)
Public Extension MethodLookupOrders(OrderStatusMessage)Overloaded.
To find orders that match the filter criteria. Found orders will be passed through the event NewOrder.
(Defined by TraderHelper.)
Public Extension MethodLookupOrders(Order, IMessageAdapter, MessageOfflineModes)Overloaded.
To find orders that match the filter criteria. Found orders will be passed through the event NewOrder.
(Defined by TraderHelper.)
Public Extension MethodLookupPortfolios(PortfolioLookupMessage)Overloaded.
To find portfolios that match the filter criteria. Found portfolios will be passed through the event LookupPortfoliosResult.
(Defined by TraderHelper.)
Public Extension MethodLookupPortfolios(Portfolio, IMessageAdapter, MessageOfflineModes)Overloaded.
To find portfolios that match the filter criteria. Found portfolios will be passed through the event LookupPortfoliosResult.
(Defined by TraderHelper.)
Public Extension MethodLookupSecurities(SecurityLookupMessage)Overloaded.
To find instruments that match the filter criteria. Found instruments will be passed through the event LookupSecuritiesResult.
(Defined by TraderHelper.)
Public Extension MethodLookupSecurities(Security, IMessageAdapter, MessageOfflineModes)Overloaded.
To find instruments that match the filter criteria. Found instruments will be passed through the event LookupSecuritiesResult.
(Defined by TraderHelper.)
Public Extension MethodLookupTimeFrames
To find time-frames that match the filter criteria. Found time-frames will be passed through the event LookupTimeFramesResult.
(Defined by TraderHelper.)
Public Extension MethodOpenPositionByQuoting
To open the position via quoting.
(Defined by Extensions.)
Public Extension MethodParamT(String, T)Overloaded. (Defined by StrategyParamHelper.)
Public Extension MethodParamT(String, String, T)Overloaded. (Defined by StrategyParamHelper.)
Public Extension MethodReRegisterOrder
Reregister the order.
(Defined by EntitiesExtensions.)
Public Extension MethodReRegisterOrderEx
Reregister the order.
(Defined by EntitiesExtensions.)
Public Extension MethodSellAtLimit
To create the initialized order object for sell.
(Defined by StrategyHelper.)
Public Extension MethodSellAtMarket
To create the initialized order object of sell order at market price.
(Defined by StrategyHelper.)
Public Extension MethodSetAllowTrading
To set the strategy operation mode (initialization or trade).
(Defined by StrategyHelper.)
Public Extension MethodSetCandleManager
To set the candle manager for the strategy.
(Defined by StrategyHelper.)
Public Extension MethodSetChart
To set a chart for the strategy.
(Defined by ChartHelper.)
Public Extension MethodSetIsEmulation
To get the strategy start-up mode (paper trading or real).
(Defined by StrategyHelper.)
Public Extension MethodStart
To start candles getting.
(Defined by CandleHelper.)
Public Extension MethodSubscribeBoard
Subscribe on the board changes.
(Defined by TraderHelper.)
Public Extension MethodSubscribeCandles
Subscribe to receive new candles.
(Defined by TraderHelper.)
Public Extension MethodSubscribeFilteredMarketDepth
To start getting filtered quotes (order book) by the instrument. Quotes values are available through the event FilteredMarketDepthChanged.
(Defined by TraderHelper.)
Public Extension MethodSubscribeLevel1
To start getting new information (for example, LastTrade or BestBid) by the instrument.
(Defined by TraderHelper.)
Public Extension MethodSubscribeMarketData(MarketDataMessage)Overloaded.
To subscribe to get market data.
(Defined by TraderHelper.)
Public Extension MethodSubscribeMarketData(Security, MarketDataMessage)Overloaded.
To subscribe to get market data by the instrument.
(Defined by TraderHelper.)
Public Extension MethodSubscribeMarketDepth
To start getting quotes (order book) by the instrument. Quotes values are available through the event MarketDepthChanged.
(Defined by TraderHelper.)
Public Extension MethodSubscribeNews
Subscribe on news.
(Defined by TraderHelper.)
Public Extension MethodSubscribeOrderLog
Subscribe on order log for the security.
(Defined by TraderHelper.)
Public Extension MethodSubscribeOrders(OrderStatusMessage)Overloaded.
To find orders that match the filter criteria. Found orders will be passed through the event NewOrder.
(Defined by TraderHelper.)
Public Extension MethodSubscribeOrders(Security, NullableDateTimeOffset, NullableDateTimeOffset, NullableInt64, IEnumerableOrderStates, IMessageAdapter, NullableInt64)Overloaded.
Subscribe on orders changes.
(Defined by TraderHelper.)
Public Extension MethodSubscribePositions(PortfolioLookupMessage)Overloaded.
To find portfolios that match the filter criteria. Found portfolios will be passed through the event LookupPortfoliosResult.
(Defined by TraderHelper.)
Public Extension MethodSubscribePositions(Security, Portfolio, NullableDateTimeOffset, NullableDateTimeOffset, NullableInt64, IMessageAdapter, NullableInt64)Overloaded.
Subscribe on positions changes.
(Defined by TraderHelper.)
Public Extension MethodSubscribeTrades
To start getting trades (tick data) by the instrument. New trades will come through the event NewTrade.
(Defined by TraderHelper.)
Public Extension MethodSuspendRules
To process rules in suspended mode (for example, create several rules and start them up simultaneously). After completion of method operation all rules, attached to the container resume their activity.
(Defined by MarketRuleHelper.)
Public Extension MethodTryRemoveRule
To delete a rule. If a rule is executed at the time when this method is called, it will not be deleted.
(Defined by MarketRuleHelper.)
Public Extension MethodTryRemoveWithExclusive
To delete the rule and all opposite rules. If the rule is executed at the time when this method is called, it will not be deleted.
(Defined by MarketRuleHelper.)
Public Extension MethodUnSubscribe
Unsubscribe.
(Defined by TraderHelper.)
Public Extension MethodUnSubscribeBoard
Unsubscribe from the board changes.
(Defined by TraderHelper.)
Public Extension MethodUnSubscribeCandles (Defined by TraderHelper.)
Public Extension MethodUnSubscribeLevel1
To stop getting new information.
(Defined by TraderHelper.)
Public Extension MethodUnSubscribeMarketData(MarketDataMessage)Overloaded.
To unsubscribe from getting market data.
(Defined by TraderHelper.)
Public Extension MethodUnSubscribeMarketData(Security, MarketDataMessage)Overloaded.
To unsubscribe from getting market data by the instrument.
(Defined by TraderHelper.)
Public Extension MethodUnSubscribeMarketDepth
To stop getting quotes by the instrument.
(Defined by TraderHelper.)
Public Extension MethodUnSubscribeNews
Unsubscribe from news.
(Defined by TraderHelper.)
Public Extension MethodUnSubscribeOrderLog
Unsubscribe from order log for the security.
(Defined by TraderHelper.)
Public Extension MethodUnSubscribeOrders
Unsubscribe from orders changes.
(Defined by TraderHelper.)
Public Extension MethodUnSubscribePositions
Unsubscribe from positions changes.
(Defined by TraderHelper.)
Public Extension MethodUnSubscribeTrades
To stop getting trades (tick data) by the instrument.
(Defined by TraderHelper.)
Public Extension MethodWhenCandles
To create a rule for the event of candles occurrence, change and end.
(Defined by MarketRuleHelper.)
Public Extension MethodWhenCandlesChanged
To create a rule for candle change event.
(Defined by MarketRuleHelper.)
Public Extension MethodWhenCandlesFinished
To create a rule for candles end event.
(Defined by MarketRuleHelper.)
Public Extension MethodWhenCandlesStarted
To create a rule for the event of new candles occurrence.
(Defined by MarketRuleHelper.)
Public Extension MethodWhenChanged
To create a rule for candle change event.
(Defined by MarketRuleHelper.)
Public Extension MethodWhenClosePriceLess
To create a rule for the event of candle closing price reduction below a specific level.
(Defined by MarketRuleHelper.)
Public Extension MethodWhenClosePriceMore
To create a rule for the event of candle closing price excess above a specific level.
(Defined by MarketRuleHelper.)
Public Extension MethodWhenCurrentCandleTotalVolumeMore
To create a rule for the event of candle total volume excess above a specific level.
(Defined by MarketRuleHelper.)
Public Extension MethodWhenError
To create a rule for event of strategy error (transition of state ErrorState into Error).
(Defined by StrategyHelper.)
Public Extension MethodWhenFinished
To create a rule for candle end event.
(Defined by MarketRuleHelper.)
Public Extension MethodWhenNewMyTradeOverloaded.
To create a rule for the event of new trade occurrences.
(Defined by MarketRuleHelper.)
Public Extension MethodWhenNewMyTradeOverloaded.
To create a rule for the event of occurrence new strategy trade.
(Defined by StrategyHelper.)
Public Extension MethodWhenNewOrder
To create a rule for the event of new orders occurrences.
(Defined by MarketRuleHelper.)
Public Extension MethodWhenOrderChanged
To create a rule for event of change of any strategy order.
(Defined by StrategyHelper.)
Public Extension MethodWhenOrderRegistered
To create a rule for event of occurrence of new strategy order.
(Defined by StrategyHelper.)
Public Extension MethodWhenPartiallyFinished
To create a rule for the event of candle partial end.
(Defined by MarketRuleHelper.)
Public Extension MethodWhenPartiallyFinishedCandles
To create a rule for the event of candle partial end.
(Defined by MarketRuleHelper.)
Public Extension MethodWhenPnLChanged
To create a rule for event of profit change.
(Defined by StrategyHelper.)
Public Extension MethodWhenPnLLess
To create a rule for event of profit reduction below the specified level.
(Defined by StrategyHelper.)
Public Extension MethodWhenPnLMore
To create a rule for event of profit increase above the specified level.
(Defined by StrategyHelper.)
Public Extension MethodWhenPositionChanged
To create a rule for the event of strategy position change.
(Defined by StrategyHelper.)
Public Extension MethodWhenPositionLess
To create a rule for event of position event reduction below the specified level.
(Defined by StrategyHelper.)
Public Extension MethodWhenPositionMore
To create a rule for event of position event increase above the specified level.
(Defined by StrategyHelper.)
Public Extension MethodWhenStarted
To create a rule for event of start of strategy operation.
(Defined by StrategyHelper.)
Public Extension MethodWhenStopped
To create a rule for event full stop of strategy operation.
(Defined by StrategyHelper.)
Public Extension MethodWhenStopping
To create a rule for event of beginning of the strategy operation stop.
(Defined by StrategyHelper.)
Public Extension MethodWhenTotalVolumeMore
To create a rule for the event of candle total volume excess above a specific level.
(Defined by MarketRuleHelper.)
Public Extension MethodWhenWarning
To create a rule for event of strategy warning (transition of state ErrorState into Warning).
(Defined by StrategyHelper.)
Top
See Also
Inheritance Hierarchy
SystemObject
  Disposable
    StockSharp.LoggingBaseLogSource
      StockSharp.LoggingBaseLogReceiver
        StockSharp.Algo.StrategiesStrategy
          StockSharp.Algo.Strategies.AnalyticsBaseAnalyticsStrategy
          StockSharp.Algo.StrategiesBasketStrategy
          StockSharp.Algo.Strategies.DerivativesHedgeStrategy
          StockSharp.Algo.Strategies.ProtectiveAutoProtectiveStrategy
          StockSharp.Algo.Strategies.ProtectiveTakeProfitStopLossStrategy
          StockSharp.Algo.Strategies.QuotingQuotingStrategy
          StockSharp.Algo.StrategiesTimeFrameStrategy
          StockSharp.Xaml.DiagramDiagramStrategy