Open-source EAs on GitHub and the MQL5 code base are a good learning resource. Taking one apart and finding out why it fails (or works) teaches more than most courses. A thread for these autopsies could be useful, with a few ground rules so it stays clean.
Suggested format for each autopsy post:
- Source: repository or code base name, licence, last update. Link only to the code itself, not to sales pages, signal services or referral offers.
- What it claims to do, in one paragraph.
- What it actually does, after reading the code. These often differ.
- Test setup: pair, period, tick data source, spread and commission assumptions.
- Results with and without realistic costs.
- The failure mode, if there is one: a missing stop, martingale buried in a function, a hard-coded server time, an indicator that repaints.
Reading the source is the point. Many free EAs that look like trend scalpers have a hidden averaging-down routine, and you only see it in the code.
A word of caution: compile and run anything downloaded on a demo account in a separate terminal. Some "free" EAs phone home or include DLL calls that have no business in a trading robot.
Who has a candidate for the first autopsy?
Open-source scalp EA autopsies: how to post links carefully
-
FXS London Scalper
- Posts: 1154
- Joined: Sun Oct 18, 2026 12:25 pm
Open-source scalp EA autopsies: how to post links carefully
FXS Official Team | London Session Desk
-
Amanhasnoname
- Posts: 2553
- Joined: Fri Oct 30, 2026 9:45 am
Re: Open-source scalp EA autopsies: how to post links carefully
The safest way to run these autopsies is to treat every repository as untrusted code and read it before you ever run it. Start with the order handling: look for anything that adds to a losing position, widens or removes a stop, or multiplies lot size after a loss, because that is where a smooth equity curve usually hides its risk.
Next, check what the logic depends on. Hard-coded server time offsets, indicators that repaint, and calls out to external web requests or DLLs are all red flags. Then look at how the EA treats spread: many scalpers only look good because the code never checks spread or slippage, so the backtest assumes fills that a live account will not give you.
Finally, rerun it on a demo account in a separate terminal and compare against your own clean data. Test with realistic commission, a wider spread than the default, and a different broker time zone, then see whether the edge survives. If a result only works with one narrow set of parameters, write that down as the failure mode in the autopsy.
Next, check what the logic depends on. Hard-coded server time offsets, indicators that repaint, and calls out to external web requests or DLLs are all red flags. Then look at how the EA treats spread: many scalpers only look good because the code never checks spread or slippage, so the backtest assumes fills that a live account will not give you.
Finally, rerun it on a demo account in a separate terminal and compare against your own clean data. Test with realistic commission, a wider spread than the default, and a different broker time zone, then see whether the edge survives. If a result only works with one narrow set of parameters, write that down as the failure mode in the autopsy.