So I tried reloading EA's and shutting down softwares and even rebooting my PC. The error still happened.
I created a new template and start adding code block by codeblock to see where it goes wrong. Also added a lot of Print() functions to see if I am in the correct loop.
Basicly I copied the whole old EA into a new file and now the code runs smoothly....
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi all,
I am still working on an EA that I am translating from MQL4 to MQL5. But I keep getting the same issue.
So the goal is when an order gets executed (is a position) I play a different sound. I use text to speech instead of the standard alerts MT5 brings.
The code itself runs well. The trading part. But not for the Alerts/Playsounds... When I am in a position i reset playSound to false after I played it. But the if statement still gets executed every tick!
Please help!