Table of Contents

Interface IMarketRuleContainer

Namespace
StockSharp.Algo
Assembly
StockSharp.Algo.dll

The interface, describing the rules container.

public interface IMarketRuleContainer : ILogReceiver, ILogSource, IDisposable
Inherited Members
Extension Methods

Properties

IsRulesSuspended

Is rules execution suspended.

bool IsRulesSuspended { get; }

Property Value

bool

Remarks

Rules suspension is performed through the method SuspendRules().

ProcessState

The operation state.

ProcessStates ProcessState { get; }

Property Value

ProcessStates

Rules

Registered rules.

IMarketRuleList Rules { get; }

Property Value

IMarketRuleList

Methods

ActivateRule(IMarketRule, Func<bool>)

To activate the rule.

void ActivateRule(IMarketRule rule, Func<bool> process)

Parameters

rule IMarketRule

Rule.

process Func<bool>

The processor returning true if the rule has ended its operation, otherwise - false.

ResumeRules()

To restore rules execution, suspended through the method SuspendRules().

void ResumeRules()

SuspendRules()

To suspend rules execution until next restoration through the method ResumeRules().

void SuspendRules()