AlertRule
StockSharp.Alerts
Rule.
Implements: IAsyncPersistable
Constructors
Properties
Field
public AlertRuleField Field { get; set; }
value = alertRule.Field
alertRule.Field = value
Message property, which will be made a comparison with the value of Value based on the criterion Operator.
Operator
public ComparisonOperator Operator { get; set; }
value = alertRule.Operator
alertRule.Operator = value
The criterion of comparison values Value.
Value
public object Value { get; set; }
value = alertRule.Value
alertRule.Value = value
Comparison value, in the form a message carries it: an instrument is kept as its SecurityId, a portfolio as its name.
Methods
LoadAsync
public Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = alertRule.LoadAsync(storage, cancellationToken)
Load settings.
- storage
- Settings storage.
- cancellationToken
- CancellationToken
Returns: Task
SaveAsync
public Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = alertRule.SaveAsync(storage, cancellationToken)
Save settings.
- storage
- Settings storage.
- cancellationToken
- CancellationToken
Returns: Task