Click or drag to resize

StrategyAttachOrder Method

To add the active order to the strategy and process trades by the order.

Namespace:  StockSharp.Algo.Strategies
Assembly:  StockSharp.Algo (in StockSharp.Algo.dll) Version: 4.4.16.0 (4.4.16)
Syntax
C#
public virtual void AttachOrder(
	Order order,
	IEnumerable<MyTrade> myTrades
)

Parameters

order
Type: StockSharp.BusinessEntitiesOrder
Order.
myTrades
Type: System.Collections.GenericIEnumerableMyTrade
Trades for order.
Remarks
It is used to restore a state of the strategy, when it is necessary to subscribe for getting data on orders, registered earlier.
See Also