AlertSchemaTemplates
StockSharp.Alerts
Фабрика для создания преднастроенных AlertSchema из общих шаблонов.
Методы
AskBelow
public static AlertSchema AskBelow(SecurityId securityId, decimal price, AlertNotifications alertType)
result = AlertSchemaTemplates.AskBelow(securityId, price, alertType)
Создать оповещение: лучшая цена продажи ниже порогового значения.
- securityId
- идентификатор финансового инструмента.
- price
- Ценовой порог.
- alertType
- Тип уведомления.
Возвращает: Настроил AlertSchema.
BidAbove
public static AlertSchema BidAbove(SecurityId securityId, decimal price, AlertNotifications alertType)
result = AlertSchemaTemplates.BidAbove(securityId, price, alertType)
Создать оповещение: лучшая цена предложения выше порогового значения.
- securityId
- идентификатор финансового инструмента.
- price
- Ценовой порог.
- alertType
- Тип уведомления.
Возвращает: Настроил AlertSchema.
Level1
public static AlertSchema Level1(SecurityId securityId, Level1Fields field, ComparisonOperator op, decimal value, AlertNotifications alertType)
result = AlertSchemaTemplates.Level1(securityId, field, op, value, alertType)
Создайте оповещение для любого поля Level1Fields.
- securityId
- идентификатор финансового инструмента.
- field
- Поле Level1 для мониторинга.
- op
- Оператор сравнения.
- value
- Пороговое значение.
- alertType
- Тип уведомления.
Возвращает: Настроил AlertSchema.
PriceAbove
public static AlertSchema PriceAbove(SecurityId securityId, decimal price, AlertNotifications alertType)
result = AlertSchemaTemplates.PriceAbove(securityId, price, alertType)
Создать оповещение: цена выше порога.
- securityId
- идентификатор финансового инструмента.
- price
- Ценовой порог.
- alertType
- Тип уведомления.
Возвращает: Настроил AlertSchema.
PriceBelow
public static AlertSchema PriceBelow(SecurityId securityId, decimal price, AlertNotifications alertType)
result = AlertSchemaTemplates.PriceBelow(securityId, price, alertType)
Создать оповещение: цена ниже порога.
- securityId
- идентификатор финансового инструмента.
- price
- Ценовой порог.
- alertType
- Тип уведомления.
Возвращает: Настроил AlertSchema.
VolumeAbove
public static AlertSchema VolumeAbove(SecurityId securityId, decimal volume, AlertNotifications alertType)
result = AlertSchemaTemplates.VolumeAbove(securityId, volume, alertType)
Создать оповещение: объем превышает пороговое значение.
- securityId
- идентификатор финансового инструмента.
- volume
- Порог громкости.
- alertType
- Тип уведомления.
Возвращает: Настроил AlertSchema.