Theia MT4
- Experts
-
Minh Truong Pham
Hi, I'm Pham, a programmer and trader from Vietnam. I write indicators and Expert Advisors for MetaTrader 4 and 5. I write every product myself from scratch, without borrowing third-party code.
How I build and sell EAs - 버전: 1.1
- 활성화: 10
Theia, XAUUSD, MetaTrader 4: +$4,298 at 0.01 lot per system in a tick-by-tick backtest on real gold ticks, January 2020 to October 2026. Profit factor 1.32, deepest equity dip $379. Three independent gold breakout systems on one chart, every order a pending stop order with its stop loss and take profit already attached. No grid, no martingale, no averaging down.
The MetaTrader 5 Strategy Tester, which can replay real ticks, tells the same story on its own: 1 January 2025 to 21 November 2026, every tick based on real ticks, $2,000 start, default inputs, +$2,739.86. Profit factor 1.45, 857 trades, max balance drawdown $375.37 (10.54%), 16 of 23 months positive.
This is the MetaTrader 4 version: same rules, same settings. In the MT4 Strategy Tester (XAUUSD, M1, every tick modelled from 1-minute bars, fixed spread, 1 January 2025 to 22 October 2026, $2,000 start) it made +$3,145.21, profit factor 1.58, 814 trades, max drawdown $380.01 (10.45%). MT4 builds its ticks from minute bars with a fixed spread, so I treat the MT5 real-tick numbers as the honest ones and quote those below.
Theia costs $199. At the default 0.01 lot, the 2025 part of the MT5 tester run alone closed +$1,490. That's a backtest, not a promise, and below I show where the numbers come from and where they're weaker.
At a glance
- Symbol: XAUUSD (gold), one chart for all three systems
- Style: breakout, pending stop orders only. A level is set, gold picks the direction
- Every trade has a stop loss and a take profit from the moment it's placed
- Fixed lot. Same size on every order, never raised after a loss
- Trades: 857 in 23 months in the MT5 tester, about 37 a month. Some close within the day, some run for several days
- At most 3 positions open at once in the MT5 tester run
The numbers
Two sources, and I'll keep them apart.
MetaTrader 5 Strategy Tester, XAUUSD, every tick based on real ticks, 2025-01-01 to 2026-11-21, $2,000 start, 0.01 lot per system, default inputs.
| Net profit | +$2,739.86 |
| 2025 / 2026 (to 21 Nov) | +$1,490 / +$1,250 |
| Profit factor | 1.45 |
| Trades | 857 |
| Average win / average loss | $20.11 / -$14.65 |
| Max drawdown | $375.37 on balance (10.54%), $426.70 on equity (11.84%) |
| Positive months | 16 of 23 |
| Worst month | October 2026, -$146 |
Longer history. My own tick engine running the same rules, real XAUUSD raw-spread ticks, January 2020 to October 2026, 0.01 lot per system, costs included: +$4,298, profit factor 1.32, deepest equity dip $379.
| Year | Result |
|---|---|
| 2020 | +$85 |
| 2021 | +$349 |
| 2022 | +$283 |
| 2023 | -$207 |
| 2024 | +$652 |
| 2025 | +$1,574 |
| 2026 (to October) | +$1,562 |
And on a second broker's real ticks in the MT5 tester, January 2025 to 20 November 2026, the same settings made +$2,732. Different ticks, different spread, same shape. Yours will be a third feed, which is why I'd rather you run the tester on your own broker before you buy.
Why three systems
One gold breakout system has days it loves and weeks that grind it down. Theia runs three that look for their levels in different places and at different moments, so they don't all need the same kind of market. Each one is a separate magic number, so you can see in your history exactly which one did what.
What they share:
- orders wait at their level, nothing is chased at market
- stop loss and take profit go out with the order, not after the fill
- winners are protected once they've moved far enough, with rules tuned per system
- pending orders that never trigger are cancelled on a schedule
- no new orders while the spread is above your limit
I'm not publishing the entry rules. They're the part that took the time.
One thing I checked more than once: if you flip the direction of every trade at random, the profit goes to about zero. The edge is in the breakout direction and the fixed targets. The protection rules don't add profit in my tests, they just make the curve smoother.
What a bad day costs
At 0.01 lot a losing trade usually costs somewhere between $10 and $40, and the largest single loss in the MT5 tester run was $53.89. If all three systems lose on the same day, that's around -$80. The deepest equity dip from 2020 to 2026 was $379.
Where it's weak
- The profit is recent. 2024 to 2026 made 88% of the 2020-2026 total, and 2023 lost money. If gold goes back to the quiet ranges of 2023, expect a flat or red year.
- The clock matters. Theia works on a fixed market clock and converts it from your broker's server time. A wrong time-zone setting moves everything to the wrong hours. When I shifted it by one to three hours on purpose, about half the profit was gone. Set it once, correctly (see below), and it isn't an issue.
- I didn't optimise it. A walk-forward search over 90 parameter sets didn't beat the defaults, so the defaults stay and they're locked.
Requirements
- Symbol: XAUUSD, or whatever your broker calls gold (XAUUSDm, GOLD...). On another symbol it prints a warning and runs the same rules scaled to that symbol's price, but nothing was tested there. Keep it on gold.
- Timeframe: any. It reads the data it needs by itself. I test on M1.
- Account: any MT4 account. The three systems trade independently and can hold opposite positions at the same time.
- Capital: $2,000 per 0.01 lot per system is what I'd use.
- Broker: a low-spread gold account. Orders aren't placed while the spread is above your limit.
- VPS: recommended. Orders go out at set times around the clock, five days a week.
Inputs
| Input | Default | What it does |
|---|---|---|
| Broker server time zone | Auto | Live: Auto measures it by itself. In the tester, see below |
| Server GMT offset, hours | 0 | Used in Fixed mode and in the tester |
| Systems to run | 1,2,4 | Which systems run, e.g. "2,4" |
| Lot per system | 0.01 | Fixed size for every order |
| Max spread (price units, USD) | 0.50 | No order goes out while the spread is wider than this |
| Magic base | 2026700 | System N uses base + N. Keeps Theia apart from other EAs |
| Order comment prefix | Theia | Text at the start of every order comment |
Stops, targets and the protection rules are fixed at the tested values. That's on purpose: they're the settings the numbers above belong to.
How to backtest it
Strategy Tester, XAUUSD, M1, model Every tick, at least a year, $2,000 or more. Download full M1 history for gold first; MT4 builds its test ticks from it.
Set the clock first. In the tester Auto can't ask the server what time zone it's on, so it uses the offset input. If your broker's server runs on plain GMT, leave Auto with offset 0. If it runs on GMT+2 in winter and GMT+3 in summer (most brokers do), choose the "GMT+2/+3 with US daylight saving" option.
Questions people ask
Can I run only one system? Yes, with "Systems to run". I wouldn't. The mix is what keeps the drawdown where it is.
Does it trade the news? It doesn't read a calendar. Orders wait at their levels, and a spike that breaks one fills it with the stop already in place.
Why did it skip an order today? Usually the spread was over your limit when the order was due, or price was already past the level. Both are deliberate.
Can I raise the lot? Yes. Profit and drawdown both grow with it. Keep roughly $2,000 per 0.01.
Two charts on one account? Change the magic base on the second one so they don't touch each other's orders.
Is there an MT5 version? Yes, same rules and settings, listed separately in the Market.
Updates and support? Updates are free for buyers. Write to me in the product comments or by private message here.
A backtest is the past. Start on a demo, then go live small. Past performance does not guarantee future results, and trading gold with leverage can lose money.
