Click or drag to resize

StrategyHelperWhenError Method

To create a rule for event of strategy error (transition of state ErrorState into Error).

Namespace:  StockSharp.Algo.Strategies
Assembly:  StockSharp.Algo (in StockSharp.Algo.dll) Version: (4.4.16)
public static MarketRule<Strategy, Exception> WhenError(
	this Strategy strategy,
	bool processChildStrategyErrors = false


Type: StockSharp.Algo.StrategiesStrategy
The strategy, based on which error will be expected.
processChildStrategyErrors (Optional)
Type: SystemBoolean
Process the child strategies errors.

Return Value

Type: MarketRuleStrategy, Exception

Usage Note

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