r/metatrader • • 11h ago

Information Some EA backtest results are too good to be true, so I built a free tool to stress-test them

3 Upvotes

Hey everyone,

I have been skeptical about the backtest result from EA where most devs has optimized on exactly that same history and the only way is to forward test it on a live market with a demo account.

So I built this EA tool to

  • Rearrange the chart but keep the pair's general character without replaying the exact same chart during backtest.
  • You can also injects random regime changes (choppy, high-vol, trending) and black swan events to the chart
  • It can also generate a report on which regime the EA had the most drawdown

This EA is on MQL5 market and open source.

Feel free to check out the code or poke holes in the approach here.

MQL5 listing link is in README

https://github.com/xinweib/SingleWorld-lab


r/metatrader • • 6h ago

Question Do you use MT5 (pc version) as a manual trader?

Thumbnail reddit.com
1 Upvotes

r/metatrader • • 6h ago

Question My breakout EA looked great on 2023. Gave it 3 years and it lost $357

1 Upvotes

I almost fooled myself with this one so figured I'd share.

Wrote a simple Donchian breakout EA in MT5 for EURUSD H1. Tested it on 2023 first because that's the data I had handy, and it came back +$273 with about 3% drawdown. Honestly I was already thinking about putting it on a demo.

Then I ran the exact same file from 2021 to the start of 2024. Nothing changed except the dates. It lost $357 and the drawdown went to almost 14%.

The part that actually bugged me is how few trades there were. The good year was 18 trades. Eighteen. A profit factor of 1.24 on 18 trades doesn't tell you anything, it's basically a coin that landed heads a few more times. Over three years it took 54 trades and that's where the real picture showed up.

I only tested one pair and one timeframe, and the tester was on 1 minute OHLC, not real ticks, so I don't want to read too much into either number. Maybe 2023 was just the lucky year.

How long do you guys run a backtest before you trust it? I've been using 3 years as my default but for something that only trades 50-60 times a year I'm not sure that's enough either.


r/metatrader • • 1d ago

Question Decision on whether to re enter a trade/go again. Another begginer question from me

2 Upvotes

Hi guys was wondering if when or how to decide if I should reenter a trade for edple I go short and hits my to, what if it keeps going down and continously closing below? How do you decide if it's a good risk to still go as it can go back up


r/metatrader • • 1d ago

Information Your MT5 backtest changes when you switch tick modes: what "1 minute OHLC" hides and how to diff it

1 Upvotes

The Strategy Tester makes you choose a tick generation mode, and switching between "Every tick", "1 minute OHLC", "Open prices only" and "Every tick based on real ticks" silently changes fill logic, SL/TP behavior and spread modeling. What actually differs, and cheap checks that tell you whether your strategy depends on it.

What the modes actually change

  • Intrabar path: on 1 minute OHLC the tester synthesizes a path between O, H, L and C. If your SL and TP both sit inside one bar, which one fires depends on that synthesized path, not on what the market did. With real ticks the sequence is (mostly) real.
  • Spread: synthetic modes typically work with a fixed or current spread; real ticks carry the actual historical spread, which widens exactly where costs hurt most (news, rollover, illiquid hours).
  • Fast markets: OHLC interpolation is smooth by construction. The wild seconds inside the bar simply do not exist, so stops that would have been hunted live survive in the backtest.

Cheap self-checks, no new tooling needed

  1. Run the identical EA, period and data in "Every tick" and "1 minute OHLC", export both trade lists and diff them ticket by ticket. Diverging entries/exits cluster where the intrabar path matters. If trade counts drift apart by more than a few percent, your result is mode-dependent - that alone is a red flag.
  2. Where your broker provides tick history, repeat in "Every tick based on real ticks". The delta against synthetic every-tick is your synthetic-path error, and it concentrates in fast markets.
  3. Run "Open prices only". If the numbers improve noticeably, your synthetic fills were what hurt you - meaning part of your "edge" was actually fill luck at prices that may not exist live.
  4. Log entry and exit timestamps with seconds and check time-based exits and trailing logic. In coarse modes the tester only has bar-boundary information, so anything driven by time inside the bar gets tested against data the live server will never send you that way.

Practical notes

  • Real tick depth varies heavily by broker and symbol; some histories only go back weeks or months. Check the available depth before designing a test around it.
  • Tester latency is zero by default while live fills arrive late by at least one tick. Nothing replaces forward testing, but knowing which mode flattered your fills tells you what to watch on demo.
  • None of this turns a losing strategy into a winner. It removes one class of false positives before you spend weeks on a demo.

Curious what others default to for FX majors vs. exotics - on thin symbols I find the mode choice matters more than most parameter tuning.


r/metatrader • • 2d ago

Information November +5.57% — 11 for 11. One month of 2026 left.

Post image
6 Upvotes

r/metatrader • • 4d ago

Question Gta 6 got recompiled in days with claude. The highest security software of all time. Is my money safe at brokers pepperstone and icmarkets, with metatrader5 software?

10 Upvotes

r/metatrader • • 4d ago

Information [Beta] Looking for traders to test a “skill or luck” checker for their trade history

Thumbnail reddit.com
1 Upvotes

r/metatrader • • 4d ago

Question MT5 on desktop + MT5 mobile, and my EA keeps undoing what I change from the phone

0 Upvotes

My setup for a while MT5 on a VPS runs a trailing stop EA on gold and GBPJPY on my PU Prime account, and I do my own entries from the desktop terminal. During the day I only have MT5 mobile on the phone.

Both see the same account, so I assumed whatever I do on the phone sticks. That is not always true.

Two things caught me:

  1. Before CPI I moved a stop to break even from MT5 mobile. Ten minutes later the EA moved it back to its own trailing level, because it recalculates the SL on every tick for any position with its magic number. The phone showed my change, the server accepted it, and then the EA overwrote it. No error anywhere.
  2. On a messy NFP day I closed the EA's position by hand from the phone. The entry conditions were still valid, so the EA opened a new trade on the next bar, and I only found it an hour later.

What I changed:

  • the EA only moves the SL if the new level is tighter than the current one, never back
  • a global variable "pause" that the EA checks before opening anything, I set it from the desktop before news days
  • trades I open from the phone go with magic number 0, and the EA ignores them

Still not solved.
Global variables can't be set from MT5 mobile. Who run EAs on a VPS and manage from the phone, how do you tell the EA "hands off" without opening the terminal?


r/metatrader • • 4d ago

Information Before you blame the strategy: the symbol-spec checklist for moving an MT5 EA to a new broker

1 Upvotes

An EA that prints clean equity curves on one broker can behave like a different strategy the same week you point it at another one. Most of the time that is not "the market changed" - it is the symbol specification, and MT5 will not warn you about any of it.

The checklist I run before trusting an EA on a second broker:

  1. Symbol names and suffixes. Many brokers append suffixes (EURUSD.a, EURUSDm, EURUSD-pro). Hardcoded "EURUSD" then either fails outright or - worse - the EA silently falls back to whatever chart it is on and half the logic keeps running. Reference _Symbol or maintain a symbol map, never a literal string.
  2. Tick value vs tick size. The classic. Correct profit/loss math is lots x (priceDelta / SYMBOL_TRADE_TICK_SIZE) x SYMBOL_TRADE_TICK_VALUE. If code assumes tick value equals point value, position sizing and R-multiples are quietly wrong on every symbol where tick size differs from point (common on indices, metals, JPY crosses), and on cross pairs the tick value itself floats with the quote currency. Print both numbers at init and compare them across brokers before comparing anything else.
  3. Contract size and digits. SYMBOL_TRADE_CONTRACT_SIZE differs between brokers for indices, metals and crypto CFDs. Same lot count, very different exposure.
  4. Stops level and freeze level. SYMBOL_TRADE_STOPS_LEVEL / SYMBOL_TRADE_FREEZE_LEVEL are broker-specific. A 15-point stop gets accepted on broker A and rejected with "invalid stops" on broker B, typically right after a signal fires. If the EA never reads these values, it was never portable.
  5. Filling mode. SYMBOL_FILLING_MODE decides FOK/IOC/Return. A hardcoded ORDER_FILLING_FOK works on one server and throws retcode 10030 ("unsupported filling mode") on the next one.
  6. Session windows. Daily maintenance breaks and SymbolInfoSessionTrade() windows differ per broker. "Open 24/5" is an approximation; on some servers it is not even true intraday.
  7. Spread profile and swap model. Not a static spec, but the one that quietly rewrites your results: record typical spread per symbol per hour for a week on the new broker before you judge it against old numbers, and check the swap - it can flip sign between brokers, which matters for anything held overnight.

The diagnostic that ties it together: run the same EA over the identical date window on both brokers and diff the trade lists - entry/exit timestamps, direction, volume. Every systematic cluster of differences should map to one of the items above. A difference you cannot explain with a spec is real risk, not noise.

And one uncomfortable corollary: backtests from two brokers are never directly comparable anyway (different tick data, different spread history). "It made X on broker A" is a statement about broker A's tick history, not about the strategy.

How do you handle portability - one .set file per broker, or code that reads the specs at runtime and adapts?


r/metatrader • • 5d ago

Question Beginner question of mt5, liquidity sweep/Inverse thing to go up

2 Upvotes

Today gold had what I think a liquidity sweep around 3550? Where the wick was close to nothing but buyers came out in top so I went for a 2 shorts 0.01 each but I only set a TP because I was sure sooner or later it will go back down, but it shot up to the point Mt5 kicked me out of said lots due to losing too much money or so to my understanding, would setting a SL stopped this? As I was right an hour and half later it shit back down to a low point like yesterday, balance was 53 and after getting kicked out I was at 27.9 so too little to buy another 0.01 lot so had to put in another 50

Or simply because I lost too marge margin to afford keeping both 0.01 lots open so I got closed


r/metatrader • • 6d ago

Question Switching from TV

2 Upvotes

Im trying to find an alternative to TV and was wondering how Mt5 is. Im looking for something that has a good user interface on both mobile and PC. Was thinking about downloading the app but wanted to make sure it's decent before giving them all my info. I've noticed that apps like Vela and ProRealTime have terrible auto-zoom features on mobile that you have to fight with constantly to view that part of the chart you want, and was hoping to find a charting site where you can turn that setting off, like TV.


r/metatrader • • 6d ago

Charts and Analysis How to Sync Broker Symbols with Prefix, Suffix & Translation - Tutorial #7

Thumbnail youtube.com
1 Upvotes

r/metatrader • • 7d ago

Information ¿A alguien más le da pereza llevar una bitácora de trading?

Thumbnail reddit.com
3 Upvotes

r/metatrader • • 7d ago

Information Your MT5 session filter is probably trading the wrong hours: server time, GMT offsets and DST

4 Upvotes

Every EA with a session filter is quietly betting that "8:00" means the same thing to your broker's server as it does to you. It usually doesn't, and MT5 will not warn you.

Three clocks are in play, and only one is visible in the terminal:

  • Your local clock (irrelevant to the server)
  • Broker server time (what TimeCurrent() returns, and what every candle is stamped with)
  • The market's real clock (London open, NY open, futures settlement)

Most forex brokers run server time at GMT+2 or GMT+3 so the daily candle closes at 5pm New York. But that is a convention, not a rule, and the trap has three layers:

  1. The offset itself. If your broker runs GMT+3 and you wrote "trade 8:00-16:00" thinking London hours, your filter actually trades 5:00-13:00 GMT - the quiet pre-London hours plus the London morning, not what you intended.
  2. DST. Some brokers shift with US DST (daily candles keep closing at 5pm NY), some stay fixed on GMT+2/+3 year-round, and a few follow EU dates. Hardcoded hours can be right for six months and silently wrong for the other six. This is also why a session strategy can seem to "decay" after half a year while nothing changed in the code - the offset drifted relative to the sessions you meant to trade.
  3. The daily bar. If your logic uses iTime(..., PERIOD_D1) or day-of-week checks, "when a day starts" depends on the same server convention. At a GMT+3 broker, the Monday bar opens Sunday evening in New York.

Two-minute broker check:

  • Market Watch shows the server clock; compare it to UTC right now.
  • Watch when D1 candles roll over (should be 5pm NY for most FX brokers - verify, don't assume).
  • Scroll H1 history around late March and late October and check whether the offset to UTC changes.

What I do instead of hardcoding:

  • One GMT-offset input, with a runtime sanity check: log TimeCurrent(), TimeGMT() and the computed offset on init, and refuse to run if the offset is outside a plausible range. TimeGMT() is only meaningful on a live chart - in the Strategy Tester those clocks are modeled, so backtests must use the recorded offset, not auto-detection.
  • Sessions derived from the offset, not typed in as magic numbers.

The nasty part: the tester runs on the same server-time convention as live, so a wrong offset backtests "fine" - the equity curve cannot warn you, because you never tested the hours you thought you were testing.

How do you handle this - fixed offset input per broker, or auto-detection at runtime?


r/metatrader • • 7d ago

Information Smart Trading platform for MT5.

28 Upvotes

Hey guys, I've been trading for over 20 years, since the GFC, and I've been involved in building FXAthena, a web-based trading platform that connects directly to MT5.

Too many traders get into trading thinking it's easy, only to blow account after account. We wanted to build something that focuses on the trading process, not just finding trades.

That's the thinking behind FXAthena. It brings the entire workflow together: Analyse, Plan, Execute, Manage and Review. And at the centre of that process is risk management. Because staying in the game is just as important as finding the next trade.

Trading is a boring process that needs to be perfected. Consistency comes from getting the process right and repeating it.

Connect your MT5 terminal through our EA, and FXAthena pulls your account and market data into one workspace.

You get:

  • Interactive charts with custom indicators built by our trading desk.
  • Trade execution with position sizing, ATR-based SL, OCO orders, timed exits, trailing SL, auto breakeven, custom pending orders, Max Fills and automatic cancellation of remaining orders.
  • Advanced trade planning with multi-entry Zone, Grid and Wave templates.
  • Risk management with Risk Coach, real-time risk scoring and drawdown tracking. It flags habits like revenge trading, oversizing and moving stop losses, while enforcing your maximum trade risk, daily loss and overall drawdown limits by blocking orders that breach your rules.
  • Trade journaling with notes, grading and performance analytics.
  • Trade replay and backtesting to review actual MT5 trades bar by bar and test strategies.
  • Trading community with chat, shared trades, charts and multi-entry trading plans.
  • Up to 4 connected MT5 accounts, each with its own risk settings.

I'm also regularly in the chatroom covering the markets — FX, equities, bonds, macro and what's driving price action.


r/metatrader • • 7d ago

Question MT5 freezing/glitching on macOS 27 + "Intel apps won't open in macOS 28" warning – any plans for native Apple Silicon?

1 Upvotes

First of all my sorry for the AI written text - just wanted to make sure I am clearly expressing my issue.

-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-

Ever since updating my MacBook to macOS 27 (Golden Gate), MetaTrader 5 has been constantly glitching, freezing, and refusing to quit normally (requiring Force Quit - and sometimes not even visible on force quit).

On top of that, macOS is now showing a warning that Intel-based apps will no longer open in macOS 28 and that the developer needs to update the app for Apple Silicon.

  1. Has MetaQuotes announced any plans to release a native Apple Silicon version of MT5 (without Wine/Rosetta) before macOS 28 drops?
  2. Is anyone else experiencing these freezes and glitches on macOS 27, and have you found a temporary fix?

Sorry if anyone else has raised this concern before in here, i just couldn't find anything when searching..


r/metatrader • • 8d ago

Information Before I trust an MT5 backtest, I rerun it with doubled spread - here's what that catches

6 Upvotes

Costs are the quiet difference between a backtest that looks great and an EA that bleeds live. Most MT5 backtests run with whatever spread setting the tester defaults to, and that default is usually the friendliest number your broker ever quotes.

Three ways the tester flatters you:

  1. "Current spread" freezes the spread at the moment you hit start and often carries it through the whole run. Real spreads widen at rollover, around news and across weekend gaps - sometimes 3-5x the quiet-hours number.
  2. Some symbols feed the tester their minimum recorded spread. What you actually trade through is closer to the 80th-90th percentile.
  3. "Zero spread" symbols look even better, but the broker charges for that elsewhere - usually a commission per lot.

The cheap stress test I run before trusting anything:

  • Run the backtest once with your normal settings.
  • Run the same window again with spread x2, or a fixed spread set to the worst level you realistically see at rollover.
  • If the edge survives 1.5-2x spread it is probably real edge. If it dies, you did not have an edge - you had a spread subsidy.

What doubled spread catches specifically:

  • Tight SL/TP scalps where TP is 10 points and spread is 8-10 points: every trade pays the spread twice.
  • Grid and martingale variants that "never lose" until widened-spread entries wreck the basket math.
  • Fast signal flips that are only profitable because the tester pretends you enter and exit at mid.

While you are at it: set commission in the symbol settings if your broker charges per lot, and check swap if you hold overnight. A strategy that lives on holding through positive swap dies the day the broker adjusts it.

Rule of thumb: if doubling the cost side flips the equity curve from up to down, the strategy is renting profitability from the test conditions, not earning it.

Curious how others handle this - do you stress with fixed worst-case spread, or real tick data with variable spread?


r/metatrader • • 9d ago

Question How do anyone feel comfortable using the Metatrader?

6 Upvotes

I have tried. Many times.

The web version, the Wine MacOs version, the iPad version. No, I cannot find it useful, user-friendly, easy-to-use. Am I the only one? It takes too many clicks to actually select the drawing I added to the chart. It feels like a software that was never updated since the 90s. What do you do to trade using MT? How's your setup?


r/metatrader • • 11d ago

Information When your out-of-sample test fails, split it by volatility regime before you bury the strategy

2 Upvotes

Most of my MT5 strategy ideas die in out-of-sample testing - that's normal and healthy. But "OOS failed" is a diagnosis trigger, not a verdict. One step I now always run before discarding an idea: split the OOS window by volatility regime and look at WHERE it failed.

The method is simple: compute a rolling volatility proxy (ATR(14) on your chart timeframe, or realized vol of daily returns), rank the OOS bars by it, and split the OOS equity curve into a high-vol half and a low-vol half. Then read the failure pattern:

Fails everywhere, roughly evenly: the edge probably doesn't exist, or it's smaller than costs. Don't resurrect it.

Fails almost entirely in one regime: the edge is regime-conditional, and that changes what you do with the idea. One subtlety: check whether the high-vol failure is the strategy or simply the costs - spreads widen exactly when volatility spikes, so re-run that slice with honest (or doubled) spread/commission before blaming the logic.

Makes money only in quiet markets: you didn't find a trend system, you found a vol-selling system with a trend face. Position sizing and drawdown expectations should reflect that before it touches a live account.

Why this matters in MT5 specifically: the strategy tester's summary stats hide regime concentration. A net-positive-per-year backtest can have its entire P&L produced in one high-volatility month and bleed everywhere else - averages bury that. Also use the tester's own cost controls: a re-run with doubled spread/commission that kills the "edge" was mourning fill fantasy, not a regime problem.

The honest trap: regime-splitting is diagnosis, not rescue. The moment you add a "vol filter" to make the OOS pass, you have curve-fitted the OOS - the filter was chosen from the same data it "fixes". If a regime condition looks real, the correct move is to re-run the whole walk-forward with the filter derived from in-sample logic only.

Concrete case from my own pipeline: an idea failed OOS overall, but the split showed losses concentrated almost entirely in high-vol weeks and flat-but-alive behavior in the other regime. I didn't delete it and I didn't trade it - I documented it as regime-limited and moved on. The point of the split is to stop mislabeling "wrong regime" as "no edge" (and to catch the reverse, too).

Happy to go deeper on any point if useful.


r/metatrader • • 11d ago

Charts and Analysis Auto Fibonacci Retracement Indicator for MT5 with Level Touch Alerts | Free | TradexCodez

Thumbnail youtu.be
1 Upvotes

Free fibonacci indicator for MT5.

1, Automatically draws the fibonacci level based on the charts highest swing high and low

2, Can limit the swing to any number of candles even the last 10

3, Auto adjusts with new low and new high

4, Extension levels

5, Yesterday high/low alert

6, Option to alert every level with on/off switch

7, All retracement and extension levels can be turned on/off

explore this and leave a feedback if that helps


r/metatrader • • 12d ago

Question Auto set TP and SL limit on iOS MT5

4 Upvotes

Hello,

I am trading mainly from my phone - I'm using MT5 on iOS. Once I place a trade I'd like to modify my TP to a specific profits in pips - let say 1.5pips.

When I have enter into a trade, then I click on the entry on the chart, and click on TP, it will automatically go to a certain distance from entry point. Let say at this time, it will always be at entry + 5.0pips. For a period of times, when i want to set the TP after each trade, it will always be at this specific distance.

However, randomly, it will be change to something else, let say now at + 3.7pips. It will remain this way until after another time where it will change to something else.

Now for the life of me, I am trying to understand what trigger that distance change and if there's anyway I can do so that the TP will always be + 1.5pips from my entry point.

My explanation might be poor above, if needed i might add a few screenshots later. Hope someone can help me.


r/metatrader • • 12d ago

Question Algo trading messaging limits?? Hyper activity??

Thumbnail reddit.com
1 Upvotes

r/metatrader • • 12d ago

Information 11. Part of the "series" about trading with bot's/EA and copy trading. (Equity got protector hit)

2 Upvotes

Why was the equity protector triggered?
Due to significant volatility in the AUD-CAD pair, the robot failed to reach the Take Profit (TP) level. Trading inherently carries risk. The position came close to hitting the TP several times, but recent minor news caused a sharper-than-expected decline, triggering the equity protector. It came so close several times that I could have closed them manually, but I wanted to see how it would react.

What would this entail?
-I would reactivate the bot, but remove the currency pairs that were added in the latest update.
-I would reduce the copy trading ratio to 0.35.
-I would set the equity protector to trigger after a loss of 7,000 cents (€70).
-I would incrementally raise the equity protector level as profits are realized.
-I would ensure that the equity protector threshold does not exceed the equivalent of one month's profit.
-I would instruct the bot to close trades as soon as they reach a profit, provided the trade has been open for more than 12 hours.


r/metatrader • • 13d ago

Information Netting vs hedging in MT5: why the same EA behaves differently on two accounts

3 Upvotes

Two demo accounts, same EA, same settings, and the trade lists don't match. Before blaming the broker: check which margin mode each account uses, because MT5 gives you two different position models and an EA written for one can misbehave on the other.

Netting (ACCOUNT_MARGIN_MODE_RETAIL_NETTING, common on prop-firm and exchange-style accounts): one position per symbol. A second buy order adds volume to the existing long; an opposite order reduces or flips it. If your EA sends "open a new trade" twice, you don't get two trades - you get one bigger one, and a single SL now protects the merged exposure.

Hedging (most forex brokers): every order is its own position with its own ticket. The same double-order gives you two independent SL/TPs, two partial closes, two history entries.

Where EAs actually break:

1. Volume math. Code that computes "next lot = current position volume + step" assumes one position per symbol. On a hedging account it never sees the accumulated exposure of sibling positions and quietly over-risks; on netting the same code is fine.

2. Partial closes. On netting a partial close shrinks the surviving position and keeps its ticket; on hedging it closes part of one ticket. Code that tracks the ticket of the "remaining" trade behaves differently after the first partial.

3. Opposite orders. Sending an opposite order on netting modifies the net position - possibly flips direction and realizes the P&L of the first leg. On hedging the same order OPENS a hedge. An EA that treats "sell 1.0" as "exit my long" ends up long 1.0 and short 1.0 simultaneously on a hedging account, paying spread twice.

4. Reporting. Netting collapses a session into fewer deals with averaged prices, so win counts and R-multiples change meaning between modes even when P&L matches.

Check it first, before any position logic: AccountInfoInteger(ACCOUNT_MARGIN_MODE). And run the tester with the same mode as your target account - a hedging-mode test says nothing about netting behavior and the other way round.

Happy to go deeper on any point if useful.