Click or drag to resize

AutoProtectiveStrategySort Method

To sort protective strategies to define the worst and the best ones by market prices (when position is partially closed the worst ones are cancelled firstly).

Namespace:  StockSharp.Algo.Strategies.Protective
Assembly:  StockSharp.Algo.Strategies (in StockSharp.Algo.Strategies.dll) Version: 4.4.16.0 (4.4.16)
Syntax
C#
protected virtual IEnumerable<IGrouping<Tuple<Sides, decimal>, IProtectiveStrategy>> Sort(
	IEnumerable<IGrouping<Tuple<Sides, decimal>, IProtectiveStrategy>> strategies
)

Parameters

strategies
Type: System.Collections.GenericIEnumerableIGroupingTupleSides, Decimal, IProtectiveStrategy
Protective strategies in unsorted order.

Return Value

Type: IEnumerableIGroupingTupleSides, Decimal, IProtectiveStrategy
Protective strategies in sorted order.
See Also