Interface IMarketRuleContainer
The interface, describing the rules container.
Inherited Members
Namespace: StockSharp.Algo
Assembly: StockSharp.Algo.dll
Syntax
public interface IMarketRuleContainer : ILogReceiver, ILogSource, IDisposable
Properties
IsRulesSuspended
Is rules execution suspended.
Declaration
bool IsRulesSuspended { get; }
Property Value
Type | Description |
---|---|
Boolean |
Remarks
Rules suspension is performed through the method SuspendRules().
ProcessState
The operation state.
Declaration
ProcessStates ProcessState { get; }
Property Value
Type | Description |
---|---|
ProcessStates |
Rules
Registered rules.
Declaration
IMarketRuleList Rules { get; }
Property Value
Type | Description |
---|---|
IMarketRuleList |
Methods
ActivateRule(IMarketRule, Func<Boolean>)
To activate the rule.
Declaration
void ActivateRule(IMarketRule rule, Func<bool> process)
Parameters
Type | Name | Description |
---|---|---|
IMarketRule | rule | Rule. |
Func<Boolean> | process | The processor returning true if the rule has ended its operation, otherwise - false. |
ResumeRules()
To restore rules execution, suspended through the method SuspendRules().
Declaration
void ResumeRules()
SuspendRules()
To suspend rules execution until next restoration through the method ResumeRules().
Declaration
void SuspendRules()