Click or drag to resize

ExtensionsWhenActivated Method

To create the rule for the event Activated.

Namespace:  StockSharp.Algo.Strategies
Assembly:  StockSharp.Algo.Strategies (in StockSharp.Algo.Strategies.dll) Version: 4.4.16.0 (4.4.16)
Syntax
C#
public static IMarketRule WhenActivated(
	this ProtectiveStrategy strategy
)

Parameters

strategy
Type: StockSharp.Algo.Strategies.ProtectiveProtectiveStrategy
The strategy, by which the event will be monitored.

Return Value

Type: IMarketRule
Rule.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ProtectiveStrategy. 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