Click or drag to resize

MarketRuleHelperWhenBestAskPriceMore Method (Security, IConnector, Unit)

To create a rule for the event of excess of the best offer of the specific level.

Namespace:  StockSharp.Algo
Assembly:  StockSharp.Algo (in StockSharp.Algo.dll) Version: 4.4.16.0 (4.4.16)
Syntax
C#
public static MarketRule<Security, Security> WhenBestAskPriceMore(
	this Security security,
	IConnector connector,
	Unit price
)

Parameters

security
Type: StockSharp.BusinessEntitiesSecurity
The instrument to be traced for the event of excess of the best offer of the specific level.
connector
Type: StockSharp.BusinessEntitiesIConnector
Connection to the trading system.
price
Type: StockSharp.MessagesUnit
The level. If the Type type equals to Limit, specified price is set. Otherwise, shift value is specified.

Return Value

Type: MarketRuleSecurity, Security
Rule.

Usage Note

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