Is there a Tool to convert a MT4 EA to MT5?

 
What the topic says, I have tried to look for some but all of them has to do with rewriting the whole mql4 in mql5, so I am here to ask if there is a simpler way?
 
Peinjo: Is there a Tool to convert a MT4 EA to MT5? What the topic says, I have tried to look for some but all of them has to do with rewriting the whole mql4 in mql5, so I am here to ask if there is a simpler way?
No!
 
  1. The best tool is the one between your ears.

  2. Show us your attempt (using the CODE button) and state the nature of your difficulty.
              No free help (2017)

    Or pay someone. Top of every page is the link Freelance.
              Hiring to write script - General - MQL5 programming forum (2018)

    We're not going to code it for you (although it could happen if you are lucky or the issue is interesting).
              No free help (2017)

    If you don't learn MQL4/5, there is no common language for us to communicate. If we tell you what you need, you can't code it. If we give you the code, you don't know how to integrate it into your code.

 
I was not asking for help for anyone to code it for me, it is like 600 lines of code and I simply thought there can be a better way to do it, anyway I better get started if i encounter any problem, I will ask for help like you suggested
 
Peinjo:
What the topic says, I have tried to look for some but all of them has to do with rewriting the whole mql4 in mql5, so I am here to ask if there is a simpler way?

The best tool is the Freelance section.

 
Francisco Rayol #: The best tool is the Freelance section.

No, it is NOT the best "tool". It is simply one of the possible options, not necessarily the best option. It depends on various factors.

 
Fernando Carreiro #:

No, it is NOT the best "tool". It is simply one of the possible options, not necessarily the best option. It depends on various factors.

Agree, btw why don't you code yourself? Its not that tough.
 
Try ChatGPT
Im not sure if it will work though.

But it may help.
 
Peinjo:
What the topic says, I have tried to look for some but all of them has to do with rewriting the whole mql4 in mql5, so I am here to ask if there is a simpler way?
There is currently no such tools. Though however, you might find some libraries to help you, here are some few tips:

- When converting orders (buys and stops), I usually use the trade module which provides a way simpler way of writing an order than the usual request filling stuff. 
- There’s also a library called MT4ORDERS (not native), that can help you transition between MQL4 and MQL5. Here is the link: https://www.mql5.com/en/code/16006
- ChatGPT won’t provide you with any good code.
- Paying a freelancer is always the best thing to do in such cases.
 
Thank you to everyone who helped out here, I am almost done with it, I will share it here
 
Pablo Jaguanharo Carvalho Pinheiro #:
Try ChatGPT
Im not sure if it will work though.

But it may help.

Stop using ChatGPT.
          Help needed to debug and fix an AI EA - Trading Systems - MQL5 programming forum (2023)

ChatGPT (the worst), “Bots Builder”, “EA builder”, “EA Builder Pro”, EATree, “Etasoft forex generator”, “Forex Strategy Builder”, ForexEAdvisor (aka. ForexEAdvisor STRATEGY BUILDER, and Online Forex Expert Advisor Generator), ForexRobotAcademy.com, forexsb, “FX EA Builder”, fxDreema, Forex Generator, FxPro, Molanis, Octa-FX Meta Editor, Strategy Builder FX, Strategy Quant, “Visual Trader Studio”, “MQL5 Wizard”, etc., are all the same. You will get something quick, but then you will spend a much longer time trying to get it right, than if you learned the language up front, and then just wrote it.

Since you haven't learned MQL4/5, therefor there is no common language for us to communicate. If we tell you what you need, you can't code it. If we give you the code, you don't know how to integrate it into yours.

We are willing to HELP you when you post your attempt (using Code button) and state the nature of your problem, but we are not going to debug your hundreds of lines of code. You are essentially going to be on your own.

ChatGPT
  1. Even it says do not use it for coding.*
  2. Mixing MT4 and MT5 code together.
  3. Creating multiple OnCalculate/OnTick functions.
  4. OnCalculate returning a double.
  5. Filling buffers with zero in OnInit (they have no size yet). Setting buffer elements to zero but not setting Empty Value to correspond.
  6. Calling undefined functions.
  7. Sometimes, not using strict (MT4 code).
  8. Code that will not compile.
  9. Creating code outside of functions.*
  10. Creating incomplete code.*
  11. Initialization of Global variables with non-constants.*
  12. Assigning a MT5 handle to a double or missing the buffer and bar indexes in a MT4 call.*
  13. Useing MT4 Trade Functions without first selecting an order.*
  14. Uses NULL in OrderSend.*
bot builder Creating two OnInit() functions.*
EA builder
  1. Counting up while closing multiple orders.
  2. Not useing time in new bar detection.
  3. Not adjusting for 4/5 digit brokers, TP/SL and slippage.*
  4. Not checking return codes.
EATree Uses objects on chart to save values — not persistent storage (files or GV+Flush.) No recovery (crash/power failure.)
ForexEAdvisor
  1. Non-updateing global variables.
  2. Compilation errors.
  3. Not checking return codes.
  4. Not reporting errors.
FX EA Builder
  1. Not checking return codes.
  2. Loosing open tickets on terminal restart. No recovery (crash/power failure.)
  3. Not adjusting stops for the spread .*
  4. Using OrdersTotal directly.
  5. Using the old event handlers.
Reason: