MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal

Automated Trading Language Documentation

PlaySound

It plays a sound file.

bool  PlaySound(
   string  filename      // file name
   );

Parameters

filename

[in]  Path to a sound file.

Return Value

true – if the file is found, otherwise - false.

Note

The file must be located in terminal_directory\Sounds ot its sub-directory. Only WAV files are played.

See also

Resources

Updated: 2011.02.24