Indicator alerts

It is possible to use the following function to call an alert from an indicator

AddAlert(string soundFile, string instrument, string message, Color background, Color foreground)

soundFile - the path to the .wav file, which should be played upon occurrence of an event

instrument - the name of the instrument, which will be shown in the window with alerts

message - the message

background - the message background

foreground - the message text colour

There is also a simplified mechanism of calling alerts, where the background and text colours are default ones.

AddAlert(string soundFile, string message)

Is this article helpful for you?