Click or drag to resize

StrategyHelperEmulateOrders Method

To emulate orders on history.

Namespace:  StockSharp.Algo.Strategies
Assembly:  StockSharp.Algo (in StockSharp.Algo.dll) Version: 4.4.16.0 (4.4.16)
Syntax
C#
public static Strategy EmulateOrders(
	this IEnumerable<Order> orders,
	IStorageRegistry storageRegistry,
	IDictionary<Security, decimal> openedPositions
)

Parameters

orders
Type: System.Collections.GenericIEnumerableOrder
Orders to be emulated on history.
storageRegistry
Type: StockSharp.Algo.StoragesIStorageRegistry
The external storage for access to history data.
openedPositions
Type: System.Collections.GenericIDictionarySecurity, Decimal
Trades, describing initial open positions.

Return Value

Type: Strategy
The virtual strategy, containing progress of paper trades.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableOrder. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also