You asked ChatGPT for an EA. Twenty minutes later it compiled. Maybe you asked for three fixes first. Then you put it on a demo, and it took trades you would never take: a crossover at 3 a.m. in a dead market, a buy two minutes before NFP.
The code isn't wrong. It does exactly what it says, every time, in every market. That is the problem, and no amount of re-prompting fixes it, because some things don't fit in code at all.
Compiling was never the hard part. In Alpha Pulse AI the AI decides live on every cycle and the EA handles the risk. Try it free for 7 days on a demo account →
The Code Does Exactly What It Says
A typical EA from a chat comes down to a line like this one:
if(fastMA > slowMA) trade.Buy(0.10);
Every session. Any spread. News or no news. When the condition is true, it buys. You can ask ChatGPT to add a session filter, a spread filter, a news filter. Each one is another fixed rule, and each one has its own edge case. After a few rounds you have a long file of rules you can't check, still blind to whatever you didn't think of.
3 Things ChatGPT Can't Put in the Code
1. Context It Didn't Know It Needed
Code only checks what someone wrote down. A trader looks at the chart and notices things nobody wrote down: candles twice their usual size today, a range that has been tested four times, a quiet hour before a big release. ChatGPT could read all of that if you showed it the chart. The code it wrote never will.
2. A Reason to Skip
Fixed rules fire whenever the condition is true. The best trade is often the one you skip because something feels off: the move is already stretched, the spread is wide, CPI is in 40 minutes. To skip, the EA needs judgment at the moment of the trade, not a rule written the week before.
3. Getting Better After You Compile
The EA is frozen the day you compile it. The market keeps changing, and new AI models keep reasoning better, but your file doesn't learn either. To improve it, you go back to the chat and start another round.
Same Moment, Two EAs
Here is the same moment seen by both (an illustration of the format, not a real trade):
- The EA ChatGPT wrote: fast MA crosses above slow MA on EURUSD. It buys 0.10 lots.
- Alpha Pulse AI: it sends the model the live chart, the session and the calendar. The answer is WAIT. Signal: MA crossover. Session: Asia, wide spread. News: CPI in 40 minutes. Reason: "Crossover in a thin market right before CPI. No trade."
Most cycles end like that. That is the point. The model only trades when the whole picture says yes, and every "no" comes with its reason on the panel.
What Stays in Code
Judgment goes to the model. The parts that must be exact stay in tested code inside the EA:
- Position size, from your risk per trade and the stop the AI gives.
- The stop at the broker, sent with the order.
- The autonomy level you choose: the AI only suggests, trades without moving your stops, or runs it all.
- A daily AI cost cap, so the bill has a ceiling.
And point 3 changes too. When a stronger model comes out, it arrives in an update, and you switch to it with one setting. Same strategy, a better brain.
Where ChatGPT's Code Still Shines
Keep using it for tools: a script that closes every trade, an indicator, a logger, a panel. Things that should do the same thing every time. That is where fixed rules belong.
Give the AI the Decision, Not the Code (Free for 7 Days)
Code from a chat is fixed rules. Alpha Pulse AI sends the model the live chart, the session and the news every cycle and gets back a decision, or a reason to wait. Position size and the stop at the broker stay in tested code.
- 7 days free on your demo account, MT5 or MT4.
- No paid AI needed to start: Google gives you a Gemini API key for free.
- Every call on the panel, with its reasoning, stop loss and take profit.
→ Watch the AI decide live (free, 7 days)
Frequently Asked Questions
Can ChatGPT write MQL5 code?
Yes. It writes MQL5 that compiles, sometimes after a few rounds of fixes. Read it and test it like any code. What it writes is still fixed rules, so it trades the same way in every market, whatever is happening.
Why does my ChatGPT EA take trades I wouldn't?
Because it fires whenever its condition is true. It doesn't see the session, the spread or the news unless someone coded a rule for each, and it can't skip a setup that looks wrong. That takes judgment at the moment of the trade.
Do I need to code anything?
No. You attach the EA, paste an AI key and pick a strategy preset.
Can I give Alpha Pulse AI the strategy I gave ChatGPT?
Yes, in the full version. Write it as plain text in a prompt file and the AI applies it on every check. The trial runs our built-in strategies, so you watch the AI decide before you bring your own.
Does it use ChatGPT?
If you want. Alpha Pulse AI works with ChatGPT, Claude, Gemini, Grok and more, each with that provider's API key. You switch the model with one setting.
What we learn putting AI models on live charts goes to the DoItTrading newsletter first.
Trading involves substantial risk of loss. Past performance does not guarantee future results.


