Table of Contents

Class RiskOrderFreqRule

Namespace
StockSharp.Algo.Risk
Assembly
StockSharp.Algo.dll

Risk-rule, tracking orders placing frequency.

[Display(ResourceType = typeof(LocalizedStrings), Name = "OrderFreq", Description = "RiskOrderFreq", GroupName = "Orders")]
public class RiskOrderFreqRule : RiskRule, ILogReceiver, IRiskRule, ILogSource, IDisposable, IPersistable, INotifyPropertyChanged
Inheritance
RiskOrderFreqRule
Implements
IPersistable
Inherited Members
Extension Methods

Constructors

RiskOrderFreqRule()

public RiskOrderFreqRule()

Properties

Count

Order count.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Count", Description = "OrdersCount", GroupName = "General", Order = 0)]
public int Count { get; set; }

Property Value

int

Interval

Interval, during which orders quantity will be monitored.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Interval", Description = "RiskIntervalDesc", GroupName = "General", Order = 1)]
public TimeSpan Interval { get; set; }

Property Value

TimeSpan

Methods

GetTitle()

Get title.

protected override string GetTitle()

Returns

string

Load(SettingsStorage)

Load settings.

public override void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

ProcessMessage(Message)

To process the trade message.

public override bool ProcessMessage(Message message)

Parameters

message Message

The trade message.

Returns

bool

true, if the rule is activated, otherwise, false.

Reset()

To reset the state.

public override void Reset()

Save(SettingsStorage)

Save settings.

public override void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.