Click or drag to resize

RiskRule Class

Base risk-rule.
Inheritance Hierarchy

Namespace:  StockSharp.Algo.Risk
Assembly:  StockSharp.Algo (in StockSharp.Algo.dll) Version: 4.4.16.0 (4.4.16)
Syntax
C#
public abstract class RiskRule : BaseLogReceiver, 
	IRiskRule, ILogSource, IDisposable, IPersistable, INotifyPropertyChanged

The RiskRule type exposes the following members.

Constructors
  NameDescription
Protected methodRiskRule
Initialize RiskRule.
Top
Properties
  NameDescription
Public propertyAction
Action that needs to be taken in case of rule activation.
Public propertyCurrentTime
Current time, which will be passed to the Time.
(Inherited from BaseLogSource.)
Public propertyId
The unique identifier of the source.
(Inherited from BaseLogSource.)
Public propertyIsDisposed (Inherited from Disposable.)
Public propertyIsRoot
Whether the source is the root (even if Parent is not equal to ).
(Inherited from BaseLogSource.)
Public propertyLogLevel
The logging level. The default is set to Inherit.
(Inherited from BaseLogSource.)
Public propertyName
Source name (to distinguish in log files).
(Inherited from BaseLogSource.)
Public propertyParent
Parent.
(Inherited from BaseLogSource.)
Public propertyTitle
Header.
Top
Methods
  NameDescription
Public methodDispose (Inherited from Disposable.)
Protected methodDisposeManaged (Inherited from Disposable.)
Protected methodDisposeNative (Inherited from Disposable.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize (Inherited from Disposable.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLoad
Load settings.
(Overrides BaseLogSourceLoad(SettingsStorage).)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodProcessMessage
To process the trade message.
Protected methodRaiseLog
To call the event Log.
(Inherited from BaseLogSource.)
Public methodReset
To reset the state.
Public methodSave
Save settings.
(Overrides BaseLogSourceSave(SettingsStorage).)
Protected methodThrowIfDisposed (Inherited from Disposable.)
Public methodToString
Returns a string that represents the current object.
(Inherited from BaseLogSource.)
Top
Events
  NameDescription
Public eventLog
New debug message event.
(Inherited from BaseLogSource.)
Top
Extension Methods
  NameDescription
Public Extension MethodGetLogLevel
Get LogLevel for the source. If the value is equal to Inherit, then parental source level is taken.
(Defined by LoggingHelper.)
Top
See Also
Inheritance Hierarchy
SystemObject
  Disposable
    StockSharp.LoggingBaseLogSource
      StockSharp.LoggingBaseLogReceiver
        StockSharp.Algo.RiskRiskRule
          StockSharp.Algo.RiskRiskCommissionRule
          StockSharp.Algo.RiskRiskOrderFreqRule
          StockSharp.Algo.RiskRiskOrderPriceRule
          StockSharp.Algo.RiskRiskOrderVolumeRule
          StockSharp.Algo.RiskRiskPnLRule
          StockSharp.Algo.RiskRiskPositionSizeRule
          StockSharp.Algo.RiskRiskPositionTimeRule
          StockSharp.Algo.RiskRiskSlippageRule
          StockSharp.Algo.RiskRiskTradeFreqRule
          StockSharp.Algo.RiskRiskTradePriceRule
          StockSharp.Algo.RiskRiskTradeVolumeRule