IMarketRule

StockSharp.Algo

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

Implementa: IDisposable

Propiedades

Container : IMarketRuleContainer

The rules container.

ExclusiveRules : ISynchronizedCollection<IMarketRule>

Rules, opposite to given rule. They are deleted automatically at activation of this rule.

IsActive : bool

Is the rule currently activated.

IsReady : bool

Is the rule formed.

IsSuspended : bool

Is the rule suspended.

LogLevel : LogLevels

The level to perform this rule logging.

Name : string

The name of the rule.

Token : object

Token-rules, it is associated with (for example, for rule ISubscriptionProvider) the order will be a token). If rule is not associated with anything, will be returned.

Métodos

CanFinish() : bool

Can the rule be ended.

Devuelve: , if rule is not required any more. Otherwise, .

Do(Action) : IMarketRule

To add the action, activated at occurrence of condition.

action
Action.

Devuelve: Rule.

Do(Action<object>) : IMarketRule

To add the action, activated at occurrence of condition.

action
The action, taking a value.

Devuelve: Rule.

Do``1(Func<T>)

To add the action, returning result, activated at occurrence of condition.

action
The action, returning a result.

Devuelve: Rule.

Until(Func<bool>) : IMarketRule

To make the rule periodical (will be called until returns ).

canFinish
The criteria for end of periodicity.

Devuelve: Rule.