Table of Contents

Class RiskOrderVolumeRule

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

Risk-rule, tracking order volume.

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

Constructors

RiskOrderVolumeRule()

public RiskOrderVolumeRule()

Properties

Volume

Order volume.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Volume", Description = "OrderVolume", GroupName = "General", Order = 0)]
public decimal Volume { get; set; }

Property Value

decimal

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.

Save(SettingsStorage)

Save settings.

public override void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.