Audience
For MQL5 builders whose EA compiles but order placement fails with invalid stops, rejected SL/TP, or retcode 10016.
MT5 execution blocker
Diagnose MT5 invalid stops by checking Bid/Ask side, stop level, freeze level, spread, symbol digits, price normalization, and execution retcodes before manual retesting.
Common invalid-stops evidence
retcode=10016 invalid stops Buy SL >= Bid Sell TP >= Ask StopsLevel too close FreezeLevel active
These are execution validation failures, not proof that a strategy works or fails. Treat them as broker and symbol constraint evidence before the next manual test.
Audience
For MQL5 builders whose EA compiles but order placement fails with invalid stops, rejected SL/TP, or retcode 10016.
Problem
Invalid stops usually mean the EA sends SL or TP on the wrong side, too close to price, not normalized to symbol digits, or incompatible with stop, freeze, or spread constraints.
Outcome
Workfusionapp keeps the repair path narrow: read live symbol constraints, validate stop distance, normalize prices, log retcode evidence, and reject unsafe trades before manual testing.
Support path
Start with the concrete blocker, keep the full EA context attached, then move to a reviewable output.
A buy stop-loss must sit below Bid and a buy take-profit above Ask. A sell stop-loss must sit above Ask and a sell take-profit below Bid.
Use the current stop level, freeze level, spread, point size, tick size, and digits before calculating distance or normalizing prices.
If the distance is invalid, log Bid, Ask, SL, TP, stop level, freeze level, spread, and retcode context, then skip the order until the setup is valid.
Workflow
The fix is not to remove stops until orders open. The fix is to prove which constraint rejected the order, then make the EA reject bad distances before it sends the trade.
Step 1
Paste the retcode and order block
Step 2
Check symbol constraints
Step 3
Normalize and validate SL/TP
Step 4
Retest manually in Strategy Tester or demo
Invalid-stops handoff
Open the guide that matches the failed constraint, then run the free desk with retcode, Bid/Ask, SL/TP, spread, and symbol settings.
Use this when the EA compiles but SL/TP placement fails on side, distance, stop level, freeze level, or price normalization.
Use this when orders fail or should be blocked during wide spread, session changes, or broker-condition drift.
Use this when stop distance, tick value, contract size, and lot step must agree before risk per trade is valid.
Send me the invalid-stops repair workflow
Opt in only if your MT5 EA compiles but order placement fails with invalid stops or rejected SL/TP. This captures the invalid-stops source for conversion measurement.
Choose the workflow you want, then opt in only if you want Workfusionapp updates.
No. It means execution validation rejected the order parameters. Strategy review comes after the EA can produce valid, logged order attempts.
No. Removing risk controls can hide the real issue. Fix side, distance, normalization, and symbol constraints first.
No. Use code, Strategy Tester or demo logs, symbol settings, Bid/Ask, SL/TP values, and retcodes. Workfusionapp does not need broker login.