Can we create an EA for gold trading based on our experience and have AI help write the code in a vibe way? How should we do this and where should we start?

 
Right now I'm studying how to use AI to convert my ideas into an EA in MQL5 language. Has anyone had experience doing this? I'd like to share ideas.
Currently, I'm interested in using Cursor, QODO, MT5 coder. Has anyone used any of these before?
 

Forum on trading, automated trading systems and testing trading strategies

Sma 14 based system (5 minutes)

William Roeder, 2025.03.14 18:50

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, “LP-MOBI”, 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. Calling MT4 functions in MT5 code.
  8. Sometimes, not using strict (MT4 code).
  9. Code that will not compile.
  10. Creating code outside of functions. * 
  11. Creating incomplete code. * 
  12. Initialization of Global variables with non-constants. * 
  13. Assigning a MT5 handle to a double or missing the buffer and bar indexes in a MT4 call. * 
  14. Useing MT4 Trade Functions without first selecting an order. * 
  15. Uses NULL in OrderSend (MT4). * 
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.

 
Chatchai Duangjun:
Right now I'm studying how to use AI to convert my ideas into an EA in MQL5 language. Has anyone had experience doing this? I'd like to share ideas.
Currently, I'm interested in using Cursor, QODO, MT5 coder. Has anyone used any of these before?
Hey Bro, Sergey gave you a good reply and you didn't respond to him, not sure if you saw his response.

Or maybr you did, but you didn't like it. In either case, he's a respectable member of the community, and if I were you I'd take his response seriously.

But all in all, it is totally possible to build your application using LLM AI like ChatGPT. 

But just because it's possible, doesn't gaurentee it'll work! 

As a matter of fact, it will most likely expose you to a lot of risk, assuming it can even generate code without bugs.

The route you are suggesting is not safe, the technology is not mature enough. 

I would never take that road.
 

i hate that term . Vibe coding .

the rest of the world will understand when we start vibe lawyering and vibe marketing and vibe cooking and vibe doctoring

Also to the OP :

collect data , that is the first step you will need since you want to go all AI . its not that hard on mt5 .

Export all that data , give it to an ai and ask it to prep it for python.

on python you may use keras / pytorch / tensorflow or even scikit learn to create an onnx model 

then bring back the onnx model to mt5 and have it trade

 
Lorentzos Roussos #:

i hate that term . Vibe coding .

the rest of the world will understand when we start vibe lawyering and vibe marketing and vibe cooking and vibe doctoring

Also to the OP :

collect data , that is the first step you will need since you want to go all AI . its not that hard on mt5 .

Export all that data , give it to an ai and ask it to prep it for python.

on python you may use keras / pytorch / tensorflow or even scikit learn to create an onnx model 

then bring back the onnx model to mt5 and have it trade

😂😂😂Bro you killed me with "vibe doctoring"😂😂

But Lorentzos how can you encourage him to go on with the vibe coding an EA idea, when I know you wouldn't do that with your own money😂😂

Maybe the AI can perform small controlled tasks like, documentation. But not the source code

Also does OP have any understanding of how to proof read his code? He didn't specify? Because if he can't proof read his code, those ChatGPT hallucinations may creep in undetected
 
Gamuchirai Zororo Ndawana #:
😂😂😂Bro you killed me with "vibe doctoring"😂😂

But Lorentzos how can you encourage him to go on with the vibe coding an EA idea, when I know you wouldn't do that with your own money😂😂

Maybe the AI can perform small controlled tasks like, documentation. But not the source code

Also does OP have any understanding of how to proof read his code? He didn't specify? Because if he can't proof read his code, those ChatGPT hallucinations may creep in undetected

well for now no matter the intensity of the vibe he/she will need someone to port the data properly to python . so mq will benefit from the commissions , and freelancers too.

i mean it is easy as biting a cake to port bars to python (just bars) but when indicators enter the mix the complexity changes.

Like : no matter how cheap the beer is you have to open the bottle to drink it