r/metatrader • • 3h ago

Information Your MT5 EA's stops pass the tester and get rejected live: stop level and freeze level

1 Upvotes

There are two symbol properties that decide whether your SL/TP survives the jump from the Strategy Tester to a live account, and almost nobody checks them before going live:

  • SYMBOL_TRADE_STOPS_LEVEL — minimum distance (in points) between the current price and any pending SL/TP/pending order price.
  • SYMBOL_TRADE_FREEZE_LEVEL — a zone around existing orders/SL/TP where modifications and deletions are rejected.

Why the tester hides them: most demo environments and many brokers report stops_level = 0 and freeze_level = 0, so every order goes through no matter how close it sits to the market. Your EA therefore builds a pattern — trailing stops 2 points behind price, TP hugging the fill price — that has never been validated against a real constraint. On the live broker those properties are often 20-100+ points, and that's when the classic errors appear:

  • retcode 10016 (invalid stops) on OrderSend — your SL/TP is inside the stops level.
  • Trailing logic that silently stops working: every OrderModify is rejected while price is within the freeze level, and your EA treats that as "no change needed" instead of an error.
  • Break-even moves that fail only during high volatility, because that's exactly when the freeze zone is widest relative to the buffer your code assumes.

Three things worth doing before any live deployment:

  1. Read both properties at init and log them. If stops_level > 0, compute the actual minimum offset your strategy needs (stops level + spread + a small buffer) instead of assuming points.
  2. Treat OrderSend/OrderModify rejections as data, not noise. Log retcode, stops level and freeze level together — after two weeks of logs you know the real per-symbol constraints, not the marketing numbers.
  3. Re-check them after every broker or symbol change. They are per-symbol, per-broker values; an EA that trades fine on one broker can be structurally broken on another with identical settings.

The general pattern: backtests validate your logic against price data, but the execution envelope (stops level, freeze level, margin rate, deviation) only exists on the live side. If your edge is small enough that a 30-point stop level matters, that's not a broker problem — that's information about your strategy's margin of error.



r/metatrader • • 22h ago

Charts and Analysis Want to build your own MT5 automated strategies with no code?

Thumbnail reddit.com
1 Upvotes

r/metatrader • • 1d ago

Information Sometimes a simple trade summary is enough

Post image
1 Upvotes

Not every review needs a full spreadsheet. A cleaner summary inside MT5 would make checking completed positions a lot less tedious.


r/metatrader • • 1d ago

Information Free MT4/MT5 indicator: FXC Supply and Demand shows the nearest zones and how close price is to each

Post image
0 Upvotes

r/metatrader • • 1d ago

Question Ticker/Symbol question (SPX/US500)

Thumbnail reddit.com
1 Upvotes

r/metatrader • • 1d ago

Information MT5 has a built-in forward optimization split - if you never set it, your 'best' parameter set is probably curve-fit

1 Upvotes

The optimizer is the most-used and least-read part of the Strategy Tester. The typical workflow stops at: pick a criterion, run, sort by the top number, take row one. That row is a description of your history, not a property of the strategy - and MT5 already ships the tool that separates the two, in the Forward field of the optimization settings.

What the forward split actually does

Set Forward to 1/3 (or a custom date) in the optimization settings. The optimizer now tunes on the first part of your date range and silently re-tests every candidate it tried on the last part - data the fitness function never optimized against. After the run each candidate has two scores: the in-sample score it was selected on, and a forward score on data it never saw.

How I read the table

  1. Sort by the forward column, not the in-sample one. Candidates whose forward score collapses were fitted to the optimization window; their ranking was noise.
  2. Prefer clusters over champions. A parameter set whose neighbours (a slightly wider stop, a slightly earlier exit) also survive forward is more believable than an isolated peak - the isolated peak is usually an artifact of the data, not an edge.
  3. Treat "forward: no trades" as a hard fail. A set that stops trading on the forward segment has often learned market conditions that no longer exist.
  4. If nothing survives forward, that is the result. The effect does not extend past your optimization window, and more optimization passes will not fix that - only more data or a simpler idea will.

Custom criterion, two lines

The criterion dropdown also offers "Custom max". Implement OnTester() and define the score yourself - for example profit factor penalized by drawdown, or anything that refuses to reward a single lucky streak. It changes which candidates the optimizer calls "best", and it stops flattering strategies that made all their money in one week.

Honest limits

  • The forward window is still one window. Repeat the split over several date ranges; sets that survive repeatedly are the only ones worth a demo run.
  • Do not peek at the forward result while iterating. The third time you "adjust" parameters after seeing forward numbers, that data is effectively in-sample too.
  • A forward survivor is not a profitable strategy. It is a strategy that earned a demo test, which is a much weaker and much more honest claim.

How do you split your ranges - fixed calendar boundaries, or rolling windows? And is anyone actually using the custom criterion in a production workflow, or is it one of those checkboxes nobody touches?


r/metatrader • • 2d ago

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

Thumbnail reddit.com
2 Upvotes

r/metatrader • • 2d ago

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

4 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 • • 2d 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 • • 3d 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 • • 3d 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 • • 4d ago

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

Post image
7 Upvotes

r/metatrader • • 6d 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 • • 6d ago

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

Thumbnail reddit.com
1 Upvotes

r/metatrader • • 6d 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 • • 6d 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 • • 7d 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 • • 8d 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 • • 8d ago

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

Thumbnail youtube.com
1 Upvotes

r/metatrader • • 9d ago

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

Thumbnail reddit.com
3 Upvotes

r/metatrader • • 9d 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 • • 9d 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 • • 9d 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 • • 10d 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 • • 10d 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?