Professional Trade Management for Manual Traders
Featuring Structure-Based SL, Symbol-Adaptive Trailing, and Dollar-Level Profit Protection
This EA takes care of your open trades so you can focus on entries. It never opens Buy or Sell positions - you decide when and where to enter. The EA handles the rest: stop loss placement, breakeven, trailing, dollar-level profit lock, and pending order protection, all automatically, all in the background.
Built by an active live trader who codes his own tools. Designed for traders who want their execution to survive live conditions, not just look good in backtests.
Why This EA Exists
Most manual traders lose money at the exit, not at the entry. Emotion pulls the plug too early, hope holds losers too long, and profits that should have been locked slip back into the market.
This EA removes those three failure modes with three separate protection layers working together:
1. Structure-Based Stop Loss - the SL is placed beyond recent swing structure plus an ATR safety buffer. Not tight enough to be clipped by noise. Only hit if your trade thesis is genuinely wrong.
2. Symbol-Adaptive Trailing - Gold trades and Forex trades behave differently, so they get different trailing profiles. Gold starts trailing sooner and tighter. Forex breathes longer, then trails wider. Manual traders usually get this wrong. The EA handles it automatically.
3. Dollar Protection Layer - runs in parallel with the R-based trailing. Once your net profit reaches a threshold, it locks a guaranteed dollar amount via a hard SL move. If price then gives back a set dollar amount from the profit peak, the position is closed at market. This is the answer to "when do I get out" that manual traders never solve on their own.
Core Features
Automatic Stop Loss Placement
- Reads recent swing high or low from the last 20 bars (adjustable)
- Adds an ATR safety buffer beyond the swing so noise cannot clip you
- Enforces a minimum and maximum SL distance in ATR terms (no super-tight SLs, no absurdly wide ones)
- Assigns SL to pending orders too, not just active positions
Automatic Breakeven
- Once profit reaches 1R (adjustable), SL moves to entry price plus a small lock buffer
- The lock buffer covers commission and spread cost, so worst-case exit is truly breakeven, not a small loss
Symbol-Adaptive Trailing
- Gold profile: starts trailing at 1.2R, distance of 1.3 x ATR
- Forex profile: starts trailing at 2.0R, distance of 2.0 x ATR
- All parameters adjustable via inputs
- Trailing distance uses ATR from your chosen structure timeframe, adapting to changing market volatility
Dollar Protection Layer (the flagship feature)
- Once net profit (including swap and commission) crosses a configurable trigger amount, the EA moves SL to guarantee a minimum locked profit in dollars
- Separately, if profit falls a configurable amount from its peak, the EA closes at market immediately
- This works independently of R-based trailing, giving you two safety nets on the same trade
Optional Fixed Take Profit
- Off by default (lets winners run through the trailing engine)
- Can be enabled if you prefer a hard R-multiple TP
Pending Order Protection
- Automatically assigns SL to your pending orders (Buy Stop, Buy Limit, Sell Stop, Sell Limit)
- Optional TP assignment for pendings if fixed TP mode is enabled
Multi-Symbol Simultaneous Management
- Runs on a timer, not just chart ticks
- Attach the EA to one chart, and it manages positions across every symbol you trade
- No need for multiple EA instances on multiple charts
Recommended Symbols
- XAUUSD (Gold)
- EURUSD
- USDJPY
The trailing profiles and default Dollar Protection values are tuned for the volatility of the pairs above.
Other Instruments
The EA's core management logic (structure SL, breakeven, R-based trailing, pending protection) will run on any symbol technically. However, the Dollar Protection layer default values ($12 trigger, $5 lock, $7 giveback) are calibrated for typical XAUUSD, EURUSD, and USDJPY dollar-per-pip and volatility. On other instruments (indices, commodities, exotic Forex pairs, crypto CFDs) you should adjust the dollar values in the inputs to match that instrument's typical dollar-per-pip and volatility before use. Additional symbol validation is planned in future versions.
Safety and Broker Compatibility
- Respects broker minimum stop distance rules automatically
- Skips modifying trades when spread widens beyond a configurable threshold (default 60 points)
- Cached ATR handles to prevent memory leaks during long runs
- Uses closed-bar data for structure and ATR (anti-repaint)
- Verbose logging of every action in the Experts tab (initial SL placement, breakeven move, trailing update, dollar lock, dollar close)
Inputs You Can Adjust
Scope
- Manage all symbols or only Gold/EURUSD/USDJPY
- Manage only manual trades or also a specific magic number
- Manage pending orders on or off
Structure and ATR
- Structure timeframe (default M15)
- ATR period (default 14)
- Swing lookback bars (default 20)
- ATR buffer beyond swing
- Minimum and maximum SL in ATR multiples
Breakeven
- Enable or disable
- Trigger R
- Lock amount (in R)
Gold Trailing Profile
- Trail start R
- Trail distance (ATR multiple)
Forex Trailing Profile
- Trail start R
- Trail distance (ATR multiple)
Optional Fixed TP
- Enable or disable
- TP multiple in R
Safety
- Maximum allowed spread for modifications
- Order deviation for modify operations
- Verbose log toggle
Dollar Protection
- Master switch (enable or disable the whole layer)
- Commission per lot for accurate net profit calculation
- Trigger amount to start locking
- Guaranteed lock amount
- Giveback amount to close at market
Who This EA Is For
- Manual traders who enter based on SMC, ICT, price action, supply and demand, or any other discretionary method
- Traders who lose profits by exiting too early or holding too long
- Traders who trade Gold and major Forex pairs and want disciplined exits without watching the screen
- Traders who want the EA to also protect their pending orders while they sleep
Who This EA Is NOT For
- Signal-generating traders looking for entry alerts (this EA does not generate signals)
- Traders on indices, crypto, or exotic pairs who are not willing to calibrate the Dollar Protection input values themselves
- Scalpers on very short timeframes without adjusting the structure timeframe and ATR period
Important Notes
- This is a Trade Management EA. It does not open trades on its own.
- Test on DEMO first. Always. Every parameter should be adjusted to match your risk tolerance and account currency.
- Dollar Protection input values are in your account's deposit currency (USD by default).
- Not financial advice. You own the entry decision and the parameter tuning.
About the Developer
Built and used by an active live algo trader on IC Markets Raw MT5. Every feature exists because it solved a real execution problem in live conditions. Honest positioning: no profit guarantees, no hype, no fake reviews. If it does not work for your setup, tell me in the comments and I will address it.
Free product. Feedback appreciated.
Version 1.0 - Initial release with Dollar Protection layer.
Regards,
Shahrukh
MQL5/MQL4 EA Developer & Algo Trader