SoundType
enum cAlgo.API
DesktopCLICloud
An enum containing various constants representing different built-in sounds for notifications.
Definition
public enum SoundType
Namespace: cAlgo.API · Group: Notifications
Examples
var result = ExecuteMarketOrder(TradeType.Buy, SymbolName, Symbol.VolumeInUnitsMin);
Notifications.PlaySound(result.IsSuccessful ? SoundType.PositiveNotification : SoundType.NegativeNotification);
result = api.ExecuteMarketOrder(TradeType.Buy, api.SymbolName, api.Symbol.VolumeInUnitsMin)
api.Notifications.PlaySound(SoundType.PositiveNotification if result.IsSuccessful else SoundType.NegativeNotification)
Values
| Name | Value | Description |
|---|---|---|
PositiveNotification | 0 | Positive Notification sound. |
NegativeNotification | 1 | Negative Notification sound. |
Announcement | 2 | Announcement sound. |
Doorbell | 3 | Door bell sound. |
Confirmation | 4 | Confirmation sound. |