Because it's not correctly coded. Chat GPT? Searching into codebase will give you better examples that trying using AI...
I wrote it in mql4 and did use chatgpt to make it to mql5. It did give some errors, but I fixed them and thought it was all good. You can say I am still a beginner at coding lol
Can you tell me which parts are incorrectly coded, I will look into them.
Thanks
In MQL5 you also need to define the request.type_filling, it won't work on the metaquotes demo using this oldschool approach to executing trades, this will only work on a broker demo account (after you fix the iMA with copybuffer)
There are youtube tutorials which discuss how to use the Trade.mqh library which is a better way to execute trades with the EA
Yes, the indicator usage is wrong, as always from codes coming from AI that mixes mql4 and mql5 despite their differences.
Yes, I trusted it lol.
Thanks, looked into the codebase and it was an easy fix
In MQL5 you also need to define the request.type_filling, it won't work on the metaquotes demo using this oldschool approach to executing trades, this will only work on a broker demo account (after you fix the iMA with copybuffer)
There are youtube tutorials which discuss how to use the Trade.mqh library which is a better way to execute trades with the EA
Thank you, got it to work now :D

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello,
I wrote a very simple EA that opens a trade when there is a difference between 2 EMA's. All seems good to me except it does not open any trades on mql5.
Here is the code:
Any ideas on why it is not working?
Thanks