Discussion of article "MQL5 Cookbook: Sound Notifications for MetaTrader 5 Trade Events"

 

New article MQL5 Cookbook: Sound Notifications for MetaTrader 5 Trade Events has been published:

In this article, we will consider such issues as including sound files in the file of the Expert Advisor, and thus adding sound notifications to trade events. The fact that the files will be included means that the sound files will be located inside the Expert Advisor. So when giving the compiled version of the Expert Advisor (*.ex5) to another user, you will not have to also provide the sound files and explain where they need to be saved.

Рецепты MQL5 - Озвучиваем торговые события в MetaTrader 5

Author: Anatoli Kazharski

 

Thank you for the article.
Where should I put the attached program? In "Script" or "Expert"?

By the way, what is the difference between Script and Expert? Does OnStart function work in Script (which will be dragged to the chart)?

 
I cannot find my MT5 sounds file. I know you gave the location, but I can't find it anywhere in my folder. Can I just throw the sounds into there anywhere and find them later? 
 
dougclose #:
I cannot find my MT5 sounds file. I know you gave the location, but I can't find it anywhere in my folder. Can I just throw the sounds into there anywhere and find them later? 

The correct folder is:

C:\Program Files\platform folder\Sounds

(Files and Folders - For Advanced Users - Getting Started - MetaTrader 5 Help).

Files and Folders - For Advanced Users - Getting Started - MetaTrader 5 Help
Files and Folders - For Advanced Users - Getting Started - MetaTrader 5 Help
  • www.metatrader5.com
This section contains the description of how the platform's files and folders are stored. In the main mode of platform start, modifiable and...
 
odunoaki2 #:

Thank you for the article.
Where should I put the attached program? In "Script" or "Expert"?

By the way, what is the difference between Script and Expert? Does OnStart function work in Script (which will be dragged to the chart)?

In the Author's Article, see "let's create an Expert Advisor..."

Therefore, this is an Expert and not a Script.

A Script only runs once upon attachment. An Expert runs on every tick (or on a timer, event, etc. depending on the specific standard function(s) in its code).