1. Is MQL4 able to recognize whether the EA was launched/stopped by user or by terminal?
I've got a part of EA code to be executed only when the EA is launched/stopped by user himself and not when it is launched/stopped during starting/closing of Metatrader. Functions OnInit and OnDeInit are great but they are executed regardless of who/what launched/stopped the EA.
2. Is it possible for code to send email to another address then specified in MT4 settings? Or this inevitably leads to dll?
Any suggestions or workarounds how to make this work? I've run out of ideas.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hi all,
1. Is MQL4 able to recognize whether the EA was launched/stopped by user or by terminal?
I've got a part of EA code to be executed only when the EA is launched/stopped by user himself and not when it is launched/stopped during starting/closing of Metatrader. Functions OnInit and OnDeInit are great but they are executed regardless of who/what launched/stopped the EA.
2. Is it possible for code to send email to another address then specified in MT4 settings? Or this inevitably leads to dll?
Any suggestions or workarounds how to make this work? I've run out of ideas.
Thank you!