AlertSchemaTemplates
StockSharp.Alerts
用于从常用模板创建预配置的 AlertSchema 的工厂 。
方法
AskBelow
public static AlertSchema AskBelow(SecurityId securityId, decimal price, AlertNotifications alertType)
result = AlertSchemaTemplates.AskBelow(securityId, price, alertType)
创建提醒: 最好在阈值以下询问价格 。
- securityId
- 金融工具标识符。
- price
- 价格门槛。
- alertType
- 通知类型。
返回值: Configured AlertSchema.
BidAbove
public static AlertSchema BidAbove(SecurityId securityId, decimal price, AlertNotifications alertType)
result = AlertSchemaTemplates.BidAbove(securityId, price, alertType)
创建提醒: 最高出价高于门槛 。
- securityId
- 金融工具标识符。
- price
- 价格门槛。
- alertType
- 通知类型。
返回值: 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)
为任何一级字段创建提醒 。
- securityId
- 金融工具标识符。
- field
- 一级字段需要监视 。
- op
- 比较操作员.
- value
- 下限值.
- alertType
- 通知类型。
返回值: Configured AlertSchema.
PriceAbove
public static AlertSchema PriceAbove(SecurityId securityId, decimal price, AlertNotifications alertType)
result = AlertSchemaTemplates.PriceAbove(securityId, price, alertType)
创建提醒: 价格高于门槛值 。
- securityId
- 金融工具标识符。
- price
- 价格门槛。
- alertType
- 通知类型。
返回值: Configured AlertSchema.
PriceBelow
public static AlertSchema PriceBelow(SecurityId securityId, decimal price, AlertNotifications alertType)
result = AlertSchemaTemplates.PriceBelow(securityId, price, alertType)
创建提醒: 价格低于门槛值 。
- securityId
- 金融工具标识符。
- price
- 价格门槛。
- alertType
- 通知类型。
返回值: Configured AlertSchema.
VolumeAbove
public static AlertSchema VolumeAbove(SecurityId securityId, decimal volume, AlertNotifications alertType)
result = AlertSchemaTemplates.VolumeAbove(securityId, volume, alertType)
创建提醒: 超过阈值的音量 。
- securityId
- 金融工具标识符。
- volume
- 出量阈.
- alertType
- 通知类型。
返回值: Configured AlertSchema.