I spent the last weeks using an LLM to draft MT5 strategy ideas, then running every one through a proper research pipeline before anything touches a live chart. Honest numbers: roughly 1 in 10-15 ideas survives. That kill rate is the point - the LLM made me faster at generating ideas, but the bottleneck was never idea generation, it was honest testing.
What the LLM is good for: hypotheses with an economic rationale. Before writing any code I force the question "why does this edge exist, and who is on the other side of the trade?" If there's no answer, the idea dies right there, no backtest needed.
What it's terrible at: code you can trust. Every generated strategy so far had at least one of these bugs:
1. Look-ahead bias via the missing 1-bar shift. The classic: signal computed on bar close, entry executed at that same close. Fix: shift the signal by one bar and re-run. If the equity curve collapses, the "edge" was future knowledge.
2. Costs as an afterthought. Spread + slippage + commission get modeled pessimistically BEFORE any parameter search, not after. A strategy that only works assuming half-spread fills is a rebate fantasy, not an edge.
3. Peak-picking instead of plateau-testing. If the backtest is great at exactly (period 14, multiplier 2.0) and dies at (12, 1.8) or (16, 2.2), you fitted noise. Nudge every parameter ±20%: a real edge degrades gracefully into a plateau, it doesn't fall off a cliff.
4. No out-of-sample discipline. Optimize in-sample, then evaluate on an untouched out-of-sample window. If OOS is negative after costs, the idea is dead - no excuses, and no re-optimizing until it works, because that's just fitting the OOS set too.
5. Ignoring trade clustering. 700+ trades sounds like a solid sample, but trades cluster in market regimes, so your effective sample size is much smaller than nominal. Split the OOS window by quarter or year: sometimes a "failed" strategy simply works in one regime - that's information, not garbage.
The workflow that survived: LLM drafts hypothesis + first code version, Python (pandas + a backtesting library) runs the research loop with the gates above, and only survivors get ported to MQL5 for final validation in the MT5 tester. One more lesson from that last step: a large deviation between the MT5 port and the Python result almost always means a port bug, not a strategy failure - treating it that way saved me from killing a working idea once.
Happy to go deeper on any of the five gates if useful.