Forum

How To Detect If MT4 Main Window Is Being Closed Down

Hi Guys I want to create a script where whenever I want to close down an MT4 program, an alert box is displayed to remind me to save an important profile to an external harddrive before MT4 is closed down. So I need to detect whenever the MT4 main window is being closed down. What is the code to

How To Call/Execute an mql4 file from a Script

Hi Guys I wish to run/execute an mql4 file from a script. This mql4 file is an indicator. What is the syntax to run that file in a script? Would greatly appreciate if someone can help me out. Below is the code snippet. Thanks in advance void OnStart () { <some code here> // trying to

Need Help on Syntax for Event Handlers Definition and Declaration

Good day fellow traders and programmers I am new to MQL programming and am currently adapting a forex position calculator developed by a broker for my own usage. Below is my adapted section of code: ========================================================= start of code