Is AI-assisted EA development actually improving Gold (XAUUSD) strategies or just making overfitting easier?

 

Hey everyone,

After spending months building and testing EAs on XAUUSD using AI tools (ChatGPT, Deepseek, Copilot), I've noticed something interesting — AI makes it incredibly fast to generate complex strategies, but it also makes it dangerously easy to curve-fit a beautiful backtest that dies on a live account.

I wanted to open a real discussion here:

1. Have you used AI tools to build or improve your XAUUSD EA? Did it actually help in live conditions?

2. What's your process to verify a Gold EA is NOT overfitted — walk-forward? Out-of-sample? Monte Carlo?

3. Do you think AI-generated strategies can ever replace experienced discretionary logic for a volatile pair like Gold?

I'll share my own results: I built many EAs using AI assistance on M1, M5, M15, M30, H1 XAUUSD. Three failed within 2 weeks live. The third is still running after 6 weeks with modest drawdown But I honestly can't tell if it's working because the strategy is solid or if its just got luck with market conditions.

Curious what the community thinks. No sales pitches please just real experience.

 

In my opinion, using AI to build an EA entirely from scratch is not suitable at all , it often comes with many bugs and can ultimately lead to account loss.

However, if we use AI to enhance trading decisions, it can be very useful.

In practice, the EA should still be developed by the developer based on their own strategy, while AI can be used as an always-online assistant or supervisor. Through the training given to the AI source, the developer can guide the EA to make specific decisions in certain situations, based on the AI’s analysis and outputs.

Ultimately, everything depends on how AI is used within the EA. Different developers apply different ideas and strategies in this area, and this is just one approach among many.

 

It depends on how you use it. If you are having the AI come up with the entire strategy from front to back then yeah you are going to have problems. 

If you know exactly what you want your EA to do it is as easy as telling the AI what to do. If you know what causes the overfitting you can have the AI put in certain things to prevent the overfitting. 

It is just another tool like a backtest, and indicator, or a strategy. You have to have the knowledge, the AI is just a tool to implement it. 

 
Farzad Saadatinia #:

In my opinion, using AI to build an EA entirely from scratch is not suitable at all , it often comes with many bugs and can ultimately lead to account loss.

However, if we use AI to enhance trading decisions, it can be very useful.

In practice, the EA should still be developed by the developer based on their own strategy, while AI can be used as an always-online assistant or supervisor. Through the training given to the AI source, the developer can guide the EA to make specific decisions in certain situations, based on the AI’s analysis and outputs.

Ultimately, everything depends on how AI is used within the EA. Different developers apply different ideas and strategies in this area, and this is just one approach among many.

That's a really well balanced point and it matches what I've been experiencing too. Using AI to write an entire EA from zero is like asking someone who's never driven to build you a race car the parts might all be there but the fine-tuning is missing.

But here's what I'm still figuring out: how do you "train" or guide the AI component without it just learning the historical data too well? That overfitting risk feels even more dangerous when AI is involved because it can find patterns that look incredible on paper but are completely meaningless going forward.

 
David Tomblin #:

It depends on how you use it. If you are having the AI come up with the entire strategy from front to back then yeah you are going to have problems. 

If you know exactly what you want your EA to do it is as easy as telling the AI what to do. If you know what causes the overfitting you can have the AI put in certain things to prevent the overfitting. 

It is just another tool like a backtest, and indicator, or a strategy. You have to have the knowledge, the AI is just a tool to implement it. 

You nailed it  "AI is just a tool" is probably the best way to frame it, and I think a lot of people miss that completely. They hand it the wheel expecting it to drive and then blame the car when it crashes.


What about traders who are intermediate level?

Not complete beginners, but not deeply experienced either. Do you think they have enough knowledge to properly direct AI without unknowingly building in bad logic they don't even recognize as bad yet?

Because I think that's where most people actually are — and that grey zone is where the real danger of AI-assisted EA development lives.

 
Daniel Andrew Clay #:

That's a really well balanced point and it matches what I've been experiencing too. Using AI to write an entire EA from zero is like asking someone who's never driven to build you a race car the parts might all be there but the fine-tuning is missing.

But here's what I'm still figuring out: how do you "train" or guide the AI component without it just learning the historical data too well? That overfitting risk feels even more dangerous when AI is involved because it can find patterns that look incredible on paper but are completely meaningless going forward.

In any case, all trades are covered with an appropriate stop loss.

The AI source should be trained with a proper logic that aligns with the EA’s strategy.

In simple terms, the EA should have its own core strategy and make decisions based on that, while using AI as a tool and an always-online, trained supervisor for final confirmation before entering trades.

This means that, in addition to the EA’s built-in confirmations and filters for trade entries, the system should also require a final approval from the AI.

If AI is used in this structured and logical way, it can be very beneficial.

Of course, this is just one example , there are many different ways to integrate AI.
Ultimately, it all depends on the developer’s creativity and knowledg

 
Daniel Andrew Clay:

Hey everyone,

After spending months building and testing EAs on XAUUSD using AI tools (ChatGPT, Deepseek, Copilot), I've noticed something interesting — AI makes it incredibly fast to generate complex strategies, but it also makes it dangerously easy to curve-fit a beautiful backtest that dies on a live account.

I wanted to open a real discussion here:

1. Have you used AI tools to build or improve your XAUUSD EA? Did it actually help in live conditions?

2. What's your process to verify a Gold EA is NOT overfitted — walk-forward? Out-of-sample? Monte Carlo?

3. Do you think AI-generated strategies can ever replace experienced discretionary logic for a volatile pair like Gold?

I'll share my own results: I built many EAs using AI assistance on M1, M5, M15, M30, H1 XAUUSD. Three failed within 2 weeks live. The third is still running after 6 weeks with modest drawdown But I honestly can't tell if it's working because the strategy is solid or if its just got luck with market conditions.

Curious what the community thinks. No sales pitches please just real experience.

Great topic, I’ve been working a lot with AI myself when building EAs.

At the moment I have around 30+ bots running, and I’ve built many more using AI tools. From my experience, AI is extremely useful for speeding things up and exploring ideas, but I never rely on it to “come up with the strategy” on its own.

What works best for me is:

  • I start with a clear idea/plan of what I want to build
  • Then I use AI to help develop, structure, and sometimes improve it

So AI is more like an assistant, not the decision-maker.

For validation, I do a combination of:

  • Backtesting (of course)
  • Monte Carlo testing
  • And most importantly: forward testing on a small account for a longer period

I’ve learned that this last step is critical. A strategy can look perfect in backtests but behave completely differently live.

Regarding your point about not knowing if it’s skill or luck, I think everyone runs into that, especially with something like XAUUSD. Time in the market is probably the only real answer there.

Curious to see how others approach this as well.

 

Talking about AI, Criticizing it, Writing with AI lol. 

But on a serious note, anything that is curve-fitted meant that you spent a great amount of time optimizing the strategy based on historical results. It's not that AI strategies itself makes them overfitted, it's what you decide to do after the fact. 

On using AI, I think it's being treated as a silver bullet for people who don't know coding and trading. Both are incredibly hard to acquire skills, AI is your assistant and should be treated like one.  

 
If you're using AI, you have access to vast amount of knowledge that can genuinely help you come up with better strategies, instead of letting it wander in its own direction. Might aswell learn about quantitative finance, why are markets believed to be stochastic processes, why prices are believed to be random. Answers to such questions will deepen the understanding and approach towards strategy-creation. 
 
Thomas Eduard Van Der Jagt #:

Great topic, I’ve been working a lot with AI myself when building EAs.

At the moment I have around 30+ bots running, and I’ve built many more using AI tools. From my experience, AI is extremely useful for speeding things up and exploring ideas, but I never rely on it to “come up with the strategy” on its own.

What works best for me is:

  • I start with a clear idea/plan of what I want to build
  • Then I use AI to help develop, structure, and sometimes improve it

So AI is more like an assistant, not the decision-maker.

For validation, I do a combination of:

  • Backtesting (of course)
  • Monte Carlo testing
  • And most importantly: forward testing on a small account for a longer period

I’ve learned that this last step is critical. A strategy can look perfect in backtests but behave completely differently live.

Regarding your point about not knowing if it’s skill or luck, I think everyone runs into that, especially with something like XAUUSD. Time in the market is probably the only real answer there.

Curious to see how others approach this as well.

 

The Monte Carlo testing step is something I have not be using. I do backtesting and some forward testing but I haven't been systematic enough about stres stesting the randomness factor. That's clearly a gap I need to close.

The point about forward testing on a small live account for a longer period being the most critical step really resonates. I think a lot of people including myself early on treat a demo forward test as equivalent and it just isn't. The execution, the spread behavior, the slippage it all changes the picture.

 
Muhammad Minhas Qamar #:

Talking about AI, Criticizing it, Writing with AI lol. 

But on a serious note, anything that is curve-fitted meant that you spent a great amount of time optimizing the strategy based on historical results. It's not that AI strategies itself makes them overfitted, it's what you decide to do after the fact. 

On using AI, I think it's being treated as a silver bullet for people who don't know coding and trading. Both are incredibly hard to acquire skills, AI is your assistant and should be treated like one.  

Ha Ha fair point, I'll plead the fifth on that one.

But the overfitting clarification you made is actually really important and I don't think it gets said enough overfitting is a human decision, not an AI problem. The AI does what you tell it to do. If you tell it to keep optimizing until the backtest looks perfect, of course it's going to find a curve that fits. That's on the trader, not the tool.

The "silver bullet" observation is spot on too. There's a wave of people right now who can't code and don't deeply understand market structure, but they've discovered they can describe an EA in plain English and get working code back in minutes. That's genuinely impressive but it skips the part where you actually understand WHY the strategy should work logically in the market.

And without that understanding you can't diagnose it when it fails. You just watch your account drop and have no idea where to even start fixing it.