Strategy Methods |
The Strategy type exposes the following members.
Name | Description | |
---|---|---|
![]() | ApplyChanges |
Apply changes.
|
![]() | ApplyCommand |
Apply incoming command.
|
![]() | AttachOrder | Obsolete.
To add the active order to the strategy and process trades by the order.
|
![]() | CanAttach |
Determines the specified order can be owned by the strategy.
|
![]() | CancelActiveOrders |
To cancel all active orders (to stop and regular).
|
![]() | CancelOrder |
Cancel the order.
|
![]() | Clone |
Create a copy of Strategy.
|
![]() | Dispose | (Inherited from Disposable.) |
![]() | DisposeManaged |
Release resources.
(Overrides Disposable.DisposeManaged.) |
![]() | DisposeNative | (Inherited from Disposable.) |
![]() | EditOrder |
Edit the order.
|
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | Finalize | (Inherited from Disposable.) |
![]() | GetFilteredMarketDepth | Obsolete.
Get filtered order book.
|
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetLevel1Fields |
To get a set of available fields Level1Fields, for which there is a market data for the instrument.
|
![]() | GetMarketDepth | Obsolete.
To get the quotes order book.
|
![]() | GetPositionValue |
Get position.
|
![]() | GetSecurityValue |
To get the value of market data for the instrument.
|
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | InitStartValues |
Init.
|
![]() | IsOrderEditable |
Determines the specified order can be edited by EditOrder(Order, Order).
|
![]() | IsOrderReplaceable |
Determines the specified order can be replaced by ReRegisterOrder(Order, Order).
|
![]() | Load |
Load settings.
(Overrides BaseLogSourceLoad(SettingsStorage).) |
![]() | Lookup |
Lookup securities by criteria criteria.
|
![]() | LookupById |
To get the instrument by the identifier.
|
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | OnError |
Processing of error, occurred as result of strategy operation.
|
![]() | OnNewMyTrade |
The method, called at occurrence of new strategy trade.
|
![]() | OnOrderCanceling |
To call the event OrderCanceling.
|
![]() | OnOrderChanged |
The method, called at strategy order change.
|
![]() | OnOrderRegistered |
To call the event OrderRegistered.
|
![]() | OnOrderRegisterFailed |
The method, called at strategy order registration error.
|
![]() | OnOrderRegistering |
To call the event OrderRegistering.
|
![]() | OnOrderReRegistering |
To call the event OrderReRegistering.
|
![]() | OnReseted |
It is called from the Reset method.
|
![]() | OnStarted |
The method is called when the Start method has been called and the ProcessState state has been taken the Started value.
|
![]() | OnStopped |
The method is called when the ProcessState process state has been taken the Stopped value.
|
![]() | OnStopping |
The method is called when the ProcessState process state has been taken the Stopping value.
|
![]() | ProcessCancelActiveOrders |
To cancel all active orders (to stop and regular).
|
![]() | ProcessNewOrders |
To process orders, received for the connection Connector, and find among them those, belonging to the strategy.
|
![]() | RaiseLog |
To call the event Log.
(Overrides BaseLogSourceRaiseLog(LogMessage).) |
![]() | RaiseParametersChanged |
To call events ParametersChanged and PropertyChanged.
|
![]() | RaiseProcessStateChanged |
To call the event ProcessStateChanged.
|
![]() | RegisterOrder |
Register new order.
|
![]() | ReRegisterOrder |
Reregister the order.
|
![]() | Reset |
To re-initialize the trade algorithm. It is called after initialization of the strategy object and loading stored parameters.
|
![]() | SafeGetConnector |
To get the strategy getting Connector. If it is not initialized, the exception will be discarded.
|
![]() | Save |
Save settings.
(Overrides BaseLogSourceSave(SettingsStorage).) |
![]() | Start |
To start the trade algorithm.
|
![]() | Start(CandleSeries, NullableDateTimeOffset, NullableDateTimeOffset) | Obsolete.
To send data request.
|
![]() | Stop |
To stop the trade algorithm.
|
![]() | Stop(CandleSeries) | Obsolete.
To stop data receiving starting through Start(CandleSeries, NullableDateTimeOffset, NullableDateTimeOffset).
|
![]() | Subscribe |
Subscribe.
|
![]() | ThrowIfDisposed | (Inherited from Disposable.) |
![]() | ToInfoMessage |
Convert to StrategyInfoMessage.
|
![]() | ToString | Returns a string that represents the current object. (Inherited from BaseLogSource.) |
![]() | UnSubscribe |
Unsubscribe.
|
Name | Description | |
---|---|---|
![]() | ActiveRule |
To activate the rule.
(Defined by MarketRuleHelper.) |
![]() | AddDebugLog |
To record a debug message to the log.
(Defined by LoggingHelper.) |
![]() | AddErrorLog(FuncString) | Overloaded.
To record an error to the log.
(Defined by LoggingHelper.) |
![]() | AddErrorLog(Exception) | Overloaded.
To record an error to the log.
(Defined by LoggingHelper.) |
![]() | AddErrorLog(Exception, String) | Overloaded.
To record an error to the log.
(Defined by LoggingHelper.) |
![]() | AddErrorLog(String, Object) | Overloaded.
To record an error to the log.
(Defined by LoggingHelper.) |
![]() | AddInfoLog(FuncString) | Overloaded.
To record a message to the log.
(Defined by LoggingHelper.) |
![]() | AddInfoLog(String, Object) | Overloaded.
To record a message to the log.
(Defined by LoggingHelper.) |
![]() | AddLog |
To record a message to the log.
(Defined by LoggingHelper.) |
![]() | AddOrderErrorLog |
Write order error to the log.
(Defined by TraderHelper.) |
![]() | AddOrderInfoLog |
Write order info to the log.
(Defined by TraderHelper.) |
![]() | AddRuleLog |
To write the message from the rule.
(Defined by MarketRuleHelper.) |
![]() | AddVerboseLog |
To record a verbose message to the log.
(Defined by LoggingHelper.) |
![]() | AddWarningLog(FuncString) | Overloaded.
To record a warning to the log.
(Defined by LoggingHelper.) |
![]() | AddWarningLog(String, Object) | Overloaded.
To record a warning to the log.
(Defined by LoggingHelper.) |
![]() | BuyAtLimit |
To create the initialized order object for buy.
(Defined by StrategyHelper.) |
![]() | BuyAtMarket |
To create initialized object of buy order at market price.
(Defined by StrategyHelper.) |
![]() | ClosePosition |
To close open position by market (to register the order of the type Market).
(Defined by StrategyHelper.) |
![]() | ClosePositionByQuoting |
To close the open position via quoting.
(Defined by Extensions.) |
![]() | CreateOrder |
To create the initialized order object.
(Defined by StrategyHelper.) |
![]() | GetAllowTrading |
To get the strategy operation mode (initialization or trade).
(Defined by StrategyHelper.) |
![]() | GetAllSecurity |
Find AllSecurity instance in the specified provider.
(Defined by TraderHelper.) |
![]() | GetCandleTCandle |
To get a candle by the index.
(Defined by CandleHelper.) |
![]() | GetCandleCount |
To get the number of candles.
(Defined by CandleHelper.) |
![]() | GetCandleManager |
To get the candle manager, associated with the passed strategy.
(Defined by StrategyHelper.) |
![]() | GetCandlesTCandle(CandleSeries) | Overloaded.
To get all candles.
(Defined by CandleHelper.) |
![]() | GetCandlesTCandle(CandleSeries, DateTimeOffset) | Overloaded.
To get all candles for the time period.
(Defined by CandleHelper.) |
![]() | GetCandlesTCandle(CandleSeries, RangeDateTimeOffset) | Overloaded.
To get candles by date range.
(Defined by CandleHelper.) |
![]() | GetCandlesTCandle(CandleSeries, Int32) | Overloaded.
To get candles by the total number.
(Defined by CandleHelper.) |
![]() | GetChart |
To get the chart associated with the passed strategy.
(Defined by ChartHelper.) |
![]() | GetCurrentCandleTCandle |
To get the current candle.
(Defined by CandleHelper.) |
![]() | GetIsEmulation |
To get the strategy start-up mode (paper trading or real).
(Defined by StrategyHelper.) |
![]() | GetLogLevel | (Defined by LoggingHelper.) |
![]() | GetSecurityValueT(Level1Fields) | Overloaded.
To get market data value for the strategy instrument.
(Defined by StrategyHelper.) |
![]() | GetSecurityValueT(Security, Level1Fields) | Overloaded.
To get the value of market data for the instrument.
(Defined by TraderHelper.) |
![]() | GetSecurityValues |
To get all market data values for the instrument.
(Defined by TraderHelper.) |
![]() | GetSeriesTCandle |
To get a candles series by the specified parameters.
(Defined by CandleHelper.) |
![]() | GetStrategyProcessStateIconName |
Get icon for ProcessState.
(Defined by Extensions.) |
![]() | GetTimeFrameCandle |
To get a temporary candle on the specific date.
(Defined by CandleHelper.) |
![]() | IsCandlesRegisteredTCandle |
Whether the grouping of candles by the specified attribute is registered.
(Defined by CandleHelper.) |
![]() | LoadState |
To restore the strategy state.
(Defined by StrategyHelper.) |
![]() | Lookup |
Lookup securities by criteria criteria.
(Defined by TraderHelper.) |
![]() | LookupAll |
Get all available instruments.
(Defined by TraderHelper.) |
![]() | LookupBoards(BoardLookupMessage) | Overloaded.
To find boards that match the filter criteria. Found boards will be passed through the event LookupBoardsResult.
(Defined by TraderHelper.) |
![]() | LookupBoards(ExchangeBoard, IMessageAdapter, MessageOfflineModes) | Overloaded.
To find boards that match the filter criteria. Found boards will be passed through the event LookupBoardsResult.
(Defined by TraderHelper.) |
![]() | LookupByCode |
To get the instrument by the instrument code.
(Defined by TraderHelper.) |
![]() | LookupById |
To get the instrument by the identifier.
(Defined by TraderHelper.) |
![]() | LookupByNativeId |
To get the instrument by the system identifier.
(Defined by TraderHelper.) |
![]() | LookupOrders(OrderStatusMessage) | Overloaded.
To find orders that match the filter criteria. Found orders will be passed through the event NewOrder.
(Defined by TraderHelper.) |
![]() | LookupOrders(Order, IMessageAdapter, MessageOfflineModes) | Overloaded.
To find orders that match the filter criteria. Found orders will be passed through the event NewOrder.
(Defined by TraderHelper.) |
![]() | LookupPortfolios(PortfolioLookupMessage) | Overloaded.
To find portfolios that match the filter criteria. Found portfolios will be passed through the event LookupPortfoliosResult.
(Defined by TraderHelper.) |
![]() | LookupPortfolios(Portfolio, IMessageAdapter, MessageOfflineModes) | Overloaded.
To find portfolios that match the filter criteria. Found portfolios will be passed through the event LookupPortfoliosResult.
(Defined by TraderHelper.) |
![]() | LookupSecurities(SecurityLookupMessage) | Overloaded.
To find instruments that match the filter criteria. Found instruments will be passed through the event LookupSecuritiesResult.
(Defined by TraderHelper.) |
![]() | LookupSecurities(Security, IMessageAdapter, MessageOfflineModes) | Overloaded.
To find instruments that match the filter criteria. Found instruments will be passed through the event LookupSecuritiesResult.
(Defined by TraderHelper.) |
![]() | LookupTimeFrames |
To find time-frames that match the filter criteria. Found time-frames will be passed through the event LookupTimeFramesResult.
(Defined by TraderHelper.) |
![]() | OpenPositionByQuoting |
To open the position via quoting.
(Defined by Extensions.) |
![]() | ParamT(String, T) | Overloaded.
Initializes a new instance of the StrategyParamT.
(Defined by StrategyParamHelper.) |
![]() | ParamT(String, String, T) | Overloaded.
Initializes a new instance of the StrategyParamT.
(Defined by StrategyParamHelper.) |
![]() | ReRegisterOrder |
Reregister the order.
(Defined by EntitiesExtensions.) |
![]() | ReRegisterOrderEx |
Reregister the order.
(Defined by EntitiesExtensions.) |
![]() | SellAtLimit |
To create the initialized order object for sell.
(Defined by StrategyHelper.) |
![]() | SellAtMarket |
To create the initialized order object of sell order at market price.
(Defined by StrategyHelper.) |
![]() | SetAllowTrading |
To set the strategy operation mode (initialization or trade).
(Defined by StrategyHelper.) |
![]() | SetCandleManager |
To set the candle manager for the strategy.
(Defined by StrategyHelper.) |
![]() | SetChart |
To set a chart for the strategy.
(Defined by ChartHelper.) |
![]() | SetIsEmulation |
To get the strategy start-up mode (paper trading or real).
(Defined by StrategyHelper.) |
![]() | Start |
To start candles getting.
(Defined by CandleHelper.) |
![]() | SubscribeBoard |
Subscribe on the board changes.
(Defined by TraderHelper.) |
![]() | SubscribeCandles |
Subscribe to receive new candles.
(Defined by TraderHelper.) |
![]() | SubscribeFilteredMarketDepth |
To start getting filtered quotes (order book) by the instrument. Quotes values are available through the event FilteredMarketDepthChanged.
(Defined by TraderHelper.) |
![]() | SubscribeLevel1 | (Defined by TraderHelper.) |
![]() | SubscribeMarketData(MarketDataMessage) | Overloaded.
To subscribe to get market data.
(Defined by TraderHelper.) |
![]() | SubscribeMarketData(Security, MarketDataMessage) | Overloaded.
To subscribe to get market data by the instrument.
(Defined by TraderHelper.) |
![]() | SubscribeMarketDepth |
To start getting quotes (order book) by the instrument. Quotes values are available through the event MarketDepthChanged.
(Defined by TraderHelper.) |
![]() | SubscribeNews |
Subscribe on news.
(Defined by TraderHelper.) |
![]() | SubscribeOrderLog |
Subscribe on order log for the security.
(Defined by TraderHelper.) |
![]() | SubscribeOrders(OrderStatusMessage) | Overloaded.
To find orders that match the filter criteria. Found orders will be passed through the event NewOrder.
(Defined by TraderHelper.) |
![]() | SubscribeOrders(Security, NullableDateTimeOffset, NullableDateTimeOffset, NullableInt64, IEnumerableOrderStates, IMessageAdapter, NullableInt64) | Overloaded.
Subscribe on orders changes.
(Defined by TraderHelper.) |
![]() | SubscribePositions(PortfolioLookupMessage) | Overloaded.
To find portfolios that match the filter criteria. Found portfolios will be passed through the event LookupPortfoliosResult.
(Defined by TraderHelper.) |
![]() | SubscribePositions(Security, Portfolio, NullableDateTimeOffset, NullableDateTimeOffset, NullableInt64, IMessageAdapter, NullableInt64) | Overloaded.
Subscribe on positions changes.
(Defined by TraderHelper.) |
![]() | SubscribeTrades |
To start getting trades (tick data) by the instrument. New trades will come through the event NewTrade.
(Defined by TraderHelper.) |
![]() | SuspendRules |
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.) |
![]() | TryRemoveRule |
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.) |
![]() | TryRemoveWithExclusive |
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.) |
![]() | UnSubscribe |
Unsubscribe.
(Defined by TraderHelper.) |
![]() | UnSubscribeBoard |
Unsubscribe from the board changes.
(Defined by TraderHelper.) |
![]() | UnSubscribeCandles |
To stop the candles receiving subscription, previously created by SubscribeCandles(ISubscriptionProvider, CandleSeries, NullableDateTimeOffset, NullableDateTimeOffset, NullableInt64, NullableInt64, IMessageAdapter, NullableInt64).
(Defined by TraderHelper.) |
![]() | UnSubscribeLevel1 |
To stop getting new information.
(Defined by TraderHelper.) |
![]() | UnSubscribeMarketData(MarketDataMessage) | Overloaded.
To unsubscribe from getting market data.
(Defined by TraderHelper.) |
![]() | UnSubscribeMarketData(Security, MarketDataMessage) | Overloaded.
To unsubscribe from getting market data by the instrument.
(Defined by TraderHelper.) |
![]() | UnSubscribeMarketDepth |
To stop getting quotes by the instrument.
(Defined by TraderHelper.) |
![]() | UnSubscribeNews |
Unsubscribe from news.
(Defined by TraderHelper.) |
![]() | UnSubscribeOrderLog |
Unsubscribe from order log for the security.
(Defined by TraderHelper.) |
![]() | UnSubscribeOrders |
Unsubscribe from orders changes.
(Defined by TraderHelper.) |
![]() | UnSubscribePositions |
Unsubscribe from positions changes.
(Defined by TraderHelper.) |
![]() | UnSubscribeTrades |
To stop getting trades (tick data) by the instrument.
(Defined by TraderHelper.) |
![]() | WhenCandles |
To create a rule for the event of candles occurrence, change and end.
(Defined by MarketRuleHelper.) |
![]() | WhenCandlesChanged |
To create a rule for candle change event.
(Defined by MarketRuleHelper.) |
![]() | WhenCandlesFinished |
To create a rule for candles end event.
(Defined by MarketRuleHelper.) |
![]() | WhenCandlesStarted |
To create a rule for the event of new candles occurrence.
(Defined by MarketRuleHelper.) |
![]() | WhenChanged |
To create a rule for candle change event.
(Defined by MarketRuleHelper.) |
![]() | WhenClosePriceLess |
To create a rule for the event of candle closing price reduction below a specific level.
(Defined by MarketRuleHelper.) |
![]() | WhenClosePriceMore |
To create a rule for the event of candle closing price excess above a specific level.
(Defined by MarketRuleHelper.) |
![]() | WhenCurrentCandleTotalVolumeMore |
To create a rule for the event of candle total volume excess above a specific level.
(Defined by MarketRuleHelper.) |
![]() | WhenError |
To create a rule for event of strategy error (transition of state ErrorState into Error).
(Defined by StrategyHelper.) |
![]() | WhenFinished |
To create a rule for candle end event.
(Defined by MarketRuleHelper.) |
![]() | WhenNewMyTrade | Overloaded.
To create a rule for the event of new trade occurrences.
(Defined by MarketRuleHelper.) |
![]() | WhenNewMyTrade | Overloaded.
To create a rule for the event of occurrence new strategy trade.
(Defined by StrategyHelper.) |
![]() | WhenNewOrder |
To create a rule for the event of new orders occurrences.
(Defined by MarketRuleHelper.) |
![]() | WhenOrderChanged |
To create a rule for event of change of any strategy order.
(Defined by StrategyHelper.) |
![]() | WhenOrderRegistered |
To create a rule for event of occurrence of new strategy order.
(Defined by StrategyHelper.) |
![]() | WhenPartiallyFinished |
To create a rule for the event of candle partial end.
(Defined by MarketRuleHelper.) |
![]() | WhenPartiallyFinishedCandles |
To create a rule for the event of candle partial end.
(Defined by MarketRuleHelper.) |
![]() | WhenPnLChanged |
To create a rule for event of profit change.
(Defined by StrategyHelper.) |
![]() | WhenPnLLess |
To create a rule for event of profit reduction below the specified level.
(Defined by StrategyHelper.) |
![]() | WhenPnLMore |
To create a rule for event of profit increase above the specified level.
(Defined by StrategyHelper.) |
![]() | WhenPositionChanged |
To create a rule for the event of strategy position change.
(Defined by StrategyHelper.) |
![]() | WhenPositionLess |
To create a rule for event of position event reduction below the specified level.
(Defined by StrategyHelper.) |
![]() | WhenPositionMore |
To create a rule for event of position event increase above the specified level.
(Defined by StrategyHelper.) |
![]() | WhenStarted |
To create a rule for event of start of strategy operation.
(Defined by StrategyHelper.) |
![]() | WhenStopped |
To create a rule for event full stop of strategy operation.
(Defined by StrategyHelper.) |
![]() | WhenStopping |
To create a rule for event of beginning of the strategy operation stop.
(Defined by StrategyHelper.) |
![]() | WhenTotalVolumeMore |
To create a rule for the event of candle total volume excess above a specific level.
(Defined by MarketRuleHelper.) |
![]() | WhenWarning |
To create a rule for event of strategy warning (transition of state ErrorState into Warning).
(Defined by StrategyHelper.) |