AlertSchemaTemplates
StockSharp.Alerts
Factory for creating pre-configured AlertSchema from common templates.
Methods
AskBelow
public static AlertSchema AskBelow(SecurityId securityId, decimal price, AlertNotifications alertType)
result = AlertSchemaTemplates.AskBelow(securityId, price, alertType)
Create alert: best ask price below threshold.
- securityId
- Security identifier.
- price
- Price threshold.
- alertType
- Notification type.
Returns: Configured AlertSchema.
BidAbove
public static AlertSchema BidAbove(SecurityId securityId, decimal price, AlertNotifications alertType)
result = AlertSchemaTemplates.BidAbove(securityId, price, alertType)
Create alert: best bid price above threshold.
- securityId
- Security identifier.
- price
- Price threshold.
- alertType
- Notification type.
Returns: Configured AlertSchema.
Level1
public static AlertSchema Level1(SecurityId securityId, Level1Fields field, ComparisonOperator op, decimal value, AlertNotifications alertType)
result = AlertSchemaTemplates.Level1(securityId, field, op, value, alertType)
Create alert for any Level1Fields field.
- securityId
- Security identifier.
- field
- Level1 field to monitor.
- op
- Comparison operator.
- value
- Threshold value.
- alertType
- Notification type.
Returns: Configured AlertSchema.
PriceAbove
public static AlertSchema PriceAbove(SecurityId securityId, decimal price, AlertNotifications alertType)
result = AlertSchemaTemplates.PriceAbove(securityId, price, alertType)
Create alert: price above threshold.
- securityId
- Security identifier.
- price
- Price threshold.
- alertType
- Notification type.
Returns: Configured AlertSchema.
PriceBelow
public static AlertSchema PriceBelow(SecurityId securityId, decimal price, AlertNotifications alertType)
result = AlertSchemaTemplates.PriceBelow(securityId, price, alertType)
Create alert: price below threshold.
- securityId
- Security identifier.
- price
- Price threshold.
- alertType
- Notification type.
Returns: Configured AlertSchema.
VolumeAbove
public static AlertSchema VolumeAbove(SecurityId securityId, decimal volume, AlertNotifications alertType)
result = AlertSchemaTemplates.VolumeAbove(securityId, volume, alertType)
Create alert: volume above threshold.
- securityId
- Security identifier.
- volume
- Volume threshold.
- alertType
- Notification type.
Returns: Configured AlertSchema.