Click or drag to resize

IMarketRule Interface

The interface of the rule, activating action at occurrence of market condition.

Namespace:  StockSharp.Algo
Assembly:  StockSharp.Algo (in StockSharp.Algo.dll) Version: 4.4.16.0 (4.4.16)
Syntax
C#
public interface IMarketRule : IDisposable

The IMarketRule type exposes the following members.

Properties
  NameDescription
Public propertyContainer
The rules container.
Public propertyExclusiveRules
Rules, opposite to given rule. They are deleted automatically at activation of this rule.
Public propertyIsActive
Is the rule currently activated.
Public propertyIsReady
Is the rule formed.
Public propertyIsSuspended
Is the rule suspended.
Public propertyLogLevel
The level to perform this rule logging.
Public propertyName
The name of the rule.
Public propertyToken
Token-rules, it is associated with (for example, for rule WhenRegistered(Order, IConnector) the order will be a token). If rule is not associated with anything, will be returned.
Top
Methods
  NameDescription
Public methodCanFinish
Can the rule be ended.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodDo(Action)
To add the action, activated at occurrence of condition.
Public methodDo(ActionObject)
To add the action, activated at occurrence of condition.
Public methodDoTResult(FuncTResult)
To add the action, returning result, activated at occurrence of condition.
Public methodUntil
To make the rule periodical (will be called until canFinish returns ).
Top
Extension Methods
  NameDescription
Public Extension MethodAnd
To combine rules by AND condition.
(Defined by MarketRuleHelper.)
Public Extension MethodApplyOverloaded.
To form a rule (include IsReady).
(Defined by MarketRuleHelper.)
Public Extension MethodApply(IMarketRuleContainer)Overloaded.
To form a rule (include IsReady).
(Defined by MarketRuleHelper.)
Public Extension MethodCancel
To create an action, cancelling the order.
(Defined by StrategyHelper.)
Public Extension MethodExclusive
To make rules mutually exclusive.
(Defined by MarketRuleHelper.)
Public Extension MethodOr
To combine rules by OR condition.
(Defined by MarketRuleHelper.)
Public Extension MethodRegister
To create an action, registering the order.
(Defined by StrategyHelper.)
Public Extension MethodReRegister
To create an action, re-registering the order.
(Defined by StrategyHelper.)
Top
See Also