HighLow Trail EA is an MT4 Expert Advisor that manages stop-losses for your open orders.
It watches recent candles and shifts the SL to the latest meaningful swing High/Low, so your exit level follows price as the market moves in your favor.
Why this matters
Recent Highs/Lows often act as support/resistance.
Trailing to these levels creates logical, price-based exits instead of fixed distances.
Good trading = good risk management. This EA helps you:
Always have a stop-loss (adds one if missing).
Trail automatically when price moves your way.
Limit losses and secure profits without constant screen time.
Avoid margin calls by keeping risk controlled.
Stay objective — no emotional decision-making.
Get notifications each time the SL updates (alerts, push, or email if enabled).
Price-action trailing using recent Highs/Lows (not a fixed pip step).
Filters to choose exactly which orders to manage (type, Magic Number, Comment).
One-click on/off control via a graphical panel (optional).
Multi-channel alerts when the SL changes (screen, mobile push, email).
Bars To Scan – How many candles back to look for the highest high / lowest low.
Apply To – Choose which order types to trail (e.g., only BUY/SELL, pendings, etc.).
Filter By Magic Number (true/false) – Only manage trades with a specific Magic.
Magic Number – The Magic to match.
Filter By Comment (true/false) – Only manage trades with a specific comment.
Comment – The comment text to match.
Enable Trailing Stop (true/false) – Master switch for the EA’s trailing.
Show Graphical Panel (true/false) – Display an on-chart control panel.
Enable Notifications (true/false) – Turn on/off all notifications.
Send Alert Notification (true/false) – Native MT4 pop-ups.
Send Notification to Mobile (true/false) – MT4 push notifications.
Send Notification via Email (true/false) – Email alerts when SL updates.
.png)
Download the EA file (HighLowTrailEA.ex4/.mq4).
Copy it to MT4 → File → Open Data Folder → MQL4 → Experts.
Restart MT4 (or refresh in Navigator).
Attach the EA to any chart you want to manage.
Set inputs (Bars To Scan, filters, notifications).
Enable Algo Trading and set Enable Trailing Stop = true.
Tip: Start on a demo or with small risk to confirm settings match your style.
Open MT4 → File → Open Data Folder.
Go to MQL4 → Experts and paste the EA.
Return to MT4 → Navigator → Experts → right-click Refresh.
Drag the EA onto your chart → Inputs: configure parameters → OK.
Ensure the AutoTrading button is green.
BUY trades: SL trails below the lowest low found within Bars To Scan.
SELL trades: SL trails above the highest high found within Bars To Scan.
When price makes a new swing and your trade is in profit, the EA moves SL to that new level.
If price reverses and hits SL, you exit safely with reduced give-back.
Trading involves risk. Use it responsibly and be aware of the risks associated with automated trading. Please backtest everything before putting it in a real account.