Honest Question for solid coders -I've been at this for 16 hours a day for a year now

 
Ive been trading since 2009 and since Chat GPT 4 release last year I've been trying everything i can to automate the dozens of strategies I have In my head. EVERY SINGLE ONE OF THEM DOES NOT WORK AS INTENDED. I've spent hundreds on ChatGPT Plus, Grok Plus, Claude Max and even Google and others. Most recently Claud4 Opus. I currently have 2 Claude max plans and have written HUNDREDS OF Mt5 EAs and can't get any of them to do what I'm trying to get them to do. It clears comp errors very well but its like its missing the mark no matter what. I've tried integrating the logic, using icustom calls, using a signal window, a state machine, writing to a file, storing in mt5 global variables, a signal bridge. It blames the indicator buffers, so i rewrite the indicators. It blames the buffer arrays, so i rewrite the indexing logic. You get the picture. Ive been working on this for 16+ hours a day for well over a year now. I either feel like there's something I'm missing that's a fucking state secret or the universe if fucking with me. I've even used EA templates (trading engine 4) and snippets from this forum verified by pros/community. I used to think reality was simple and linear, I'm full on in some Alice and wonderland down the rabbit hole type shit. WHAT THE ACTUAL FUCK AM I MISSING??? 

authentic replies appreciated 
 

It was discussed many times in past ... for example:

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.

and more and more ...
 
addtoit fx:
Ive been trading since 2009 and since Chat GPT 4 release last year I've been trying everything i can to automate the dozens of strategies I have In my head. EVERY SINGLE ONE OF THEM DOES NOT WORK AS INTENDED. I've spent hundreds on ChatGPT Plus, Grok Plus, Claude Max and even Google and others. Most recently Claud4 Opus. I currently have 2 Claude max plans and have written HUNDREDS OF Mt5 EAs and can't get any of them to do what I'm trying to get them to do. It clears comp errors very well but its like its missing the mark no matter what. I've tried integrating the logic, using icustom calls, using a signal window, a state machine, writing to a file, storing in mt5 global variables, a signal bridge. It blames the indicator buffers, so i rewrite the indicators. It blames the buffer arrays, so i rewrite the indexing logic. You get the picture. Ive been working on this for 16+ hours a day for well over a year now. I either feel like there's something I'm missing that's a fucking state secret or the universe if fucking with me. I've even used EA templates (trading engine 4) and snippets from this forum verified by pros/community. I used to think reality was simple and linear, I'm full on in some Alice and wonderland down the rabbit hole type shit. WHAT THE ACTUAL FUCK AM I MISSING??? 

authentic replies appreciated 

Seems you are missing that coding is a real job that requires education, skills and experience and fine understandings...only accessible to a human being up to now. An AI can't have all of that, and will not have it before a long time.

Additionally AI are just not as good in MQL as with some more popular languages like C++, with MQL as they are mixing MQL4 and MQL5, they are lacking good sources code to work with.

AI are tools useful to professional coders to do most boring tasks, and that for the most broadcasted languages only.

Forget it for MQL, you will just waste your time, as unfortunately you learned the hard way.

 
addtoit fx:
Ive been trading since 2009 and since Chat GPT 4 release last year I've been trying everything i can to automate the dozens of strategies I have In my head. EVERY SINGLE ONE OF THEM DOES NOT WORK AS INTENDED. I've spent hundreds on ChatGPT Plus, Grok Plus, Claude Max and even Google and others. Most recently Claud4 Opus. I currently have 2 Claude max plans and have written HUNDREDS OF Mt5 EAs and can't get any of them to do what I'm trying to get them to do. It clears comp errors very well but its like its missing the mark no matter what. I've tried integrating the logic, using icustom calls, using a signal window, a state machine, writing to a file, storing in mt5 global variables, a signal bridge. It blames the indicator buffers, so i rewrite the indicators. It blames the buffer arrays, so i rewrite the indexing logic. You get the picture. Ive been working on this for 16+ hours a day for well over a year now. I either feel like there's something I'm missing that's a fucking state secret or the universe if fucking with me. I've even used EA templates (trading engine 4) and snippets from this forum verified by pros/community. I used to think reality was simple and linear, I'm full on in some Alice and wonderland down the rabbit hole type shit. WHAT THE ACTUAL FUCK AM I MISSING??? 

authentic replies appreciated 

Just learn the language from the ground up its not that hard. I don't rely on AI to do anything for me except for checking if I accidently switched buffers somewhere. What specific problems are you having other than it "not working"? The biggest ah ha moment for me was a year ago figuring out that most custom indicators need #property tester_everytick_calculate for them to work correctly in non visual mode/optimizations (for replicating live results). 

Its not hard to learn mql5 and this is coming from someone who failed python programming classes, just sit down and go watch a 3 hour tutorial on youtube so you can understand the basics of single symbol EAs then move on to multi-symbol then move on to whatever else you want to do, worked for me. 

Don't rely on AI (glorified search engine) to do all the work for you because its not going to. 

 

Do you use the visual tester? Do you correct problems you are facing? are are you stubbornly smashing the keyboard telling AI to make something profitable without actually fixing the partial areas that need to be addressed...?

Everything is logical. Most indicators repaint and aren't reliable. AI can't do anything for you there. Most trade entries require a non-predictable stop loss as well. If the EA has no vision, you have to make it re-assess where the ideal entry price is. That requires more code...multi-timeframe analysis. Automated trading will always be different to manual trading, you have to deal with its shortcomings. It's like a car driving by itself, it has a lot more caveats.