Introduction
Gold (XAUUSD) is the most deceptive market in retail forex. It trends hard, reverses violently, and punishes both trend-followers and counter-trend scalpers equally. Most Expert Advisors (EAs) designed for Gold fail within six months because they are built for one market condition only.
This is where the Trend Hedge Scalp EA V4.20 enters. It takes a fundamentally different approach. Instead of betting purely on direction, this MT5 robot opens two fronts: a scalping position in the immediate trend direction and a hidden hedge mechanism waiting to activate if the market turns. This dual-layered logic is why the Trend Hedge Scalp EA V4.20 has gained attention among serious gold traders.
In this guide, I will explain exactly how the Trend Hedge Scalp EA V4.20 operates, the mathematical principles behind its 40% win rate, its optimal setup on the M15 timeframe, and â most importantly â whether this EA belongs in your portfolio.
Overview: What Is Trend Hedge Scalp EA V4.20?
The Trend Hedge Scalp EA V4.20 is a fully automated trading robot designed for MetaTrader 5 (MT5). It is specifically optimized for the XAUUSD (Gold vs. US Dollar) pair and operates predominantly on the 15-minute chart (M15).
Unlike conventional scalpers that simply chase small pips with large volumes, this robot incorporates a dynamic hedging module. The name itself reveals its three core pillars:
- Trend: It identifies the dominant short-term direction using linear regression correlation.
- Hedge: It places a reverse pending order at a predefined distance (290 points in the reference settings).
- Scalp: It takes quick profits on the primary position before the hedge is needed.
The backtest data provided for the Trend Hedge Scalp EA V4.20 shows a total of 16,247 trades executed over a high-quality tick history. The initial deposit was $500, and the final balance grew substantially. However, this guide will not focus solely on those numbers â rather, we will explore why those numbers look the way they do.
This EA uses a unique Magic Number (777777) to identify its own trades, preventing interference from manual trading or other EAs on the same account. It also incorporates a points-based exhaustion system called EndPoints=300, which acts as a circuit breaker during extreme volatility.
How the Trend Hedge Scalp EA V4.20 Actually Works
To truly understand this trading robot, you must visualize a two-layer defense system.
Layer 1: The Scalp Trigger
Every minute, the Trend Hedge Scalp EA V4.20 analyzes the M15 candles using a Linear Regression (LR) correlation calculation. When the LR Correlation exceeds 0.86 (as seen in the backtest), the EA identifies a statistically significant trend. It then opens a scalp position in that direction with a calculated lot size.
This is not a high-frequency tick scalper. The robot holds scalp trades typically for 5 to 15 minutes, aiming for a modest move of 50 to 100 points on XAUUSD.
Layer 2: The Hedge Pendulum
Simultaneously, the Trend Hedge Scalp EA V4.20 places a pending stop order exactly InpRevasePoints=290 points away from the entry price, in the opposite direction. This is the hedge.
- If the scalp wins: The EA closes the primary trade for a profit and cancels the pending hedge order.
- If the market reverses 290 points against the scalp: The hedge position activates. Now the EA holds both a losing scalp and a fresh hedge trade. Because the hedge was placed at exactly 290 points, the net floating loss is minimized. As price retraces, the robot closes both positions profitably or uses the hedge to buy time for the scalp to recover.
Layer 3: The EndPoints Circuit Breaker
The parameter endPoints=300 is the safety valve. If XAUUSD moves 300 points against the scalp trade without triggering the hedge (rare, but possible in news spikes), the EA does not panic. Instead, it cancels the hedge, closes the scalp at a predefined stop loss, and enters a temporary cool-down period. This prevents the robot from chasing price in a runaway trend.
This three-layer logic is what separates the Trend Hedge Scalp EA V4.20 from simple martingale or grid systems.
Key Features of This EA
Let me list the distinct technical features of the Trend Hedge Scalp EA V4.20 that every trader should know before installation.
| Feature | Description |
|---|---|
| Platform | MetaTrader 5 (MT5) â Not compatible with MT4 |
| Timeframe | M15 (15-minute) â Optimized exclusively for this |
| Symbol | XAUUSD (Gold) |
| Hedge Distance | Adjustable (default 290 points) |
| EndPoints Kill Switch | 300 points max adverse move |
| Magic Number | 777777 (user-changeable) |
| Trade Direction | Both long and short automatically |
| Maximum Consecutive Losses (Backtest) | 19 trades (-$67.84 total) |
| Sharpe Ratio | 15.24 â Exceptionally stable |
| Z-Score | 19.12 (99.74% non-random sequence) |
| LR Correlation Filter | 0.86 minimum trend strength |
| AHPF Value | 1.0004 (0.04% â highly neutral) |
The Trend Hedge Scalp EA V4.20 also tracks its own performance through an internal drawdown monitor. When equity drawdown exceeds a hidden threshold (derived from the 32.55% maximal drawdown in testing), the EA reduces lot sizes automatically.

Trading Strategy Logic Used by This Robot
Many traders see a 40% win rate and immediately dismiss an EA. That is a mistake. This robot operates on a positive expectancy model, not a high-win-rate model.
Expectancy Calculation
From the backtest data:
- Average winning trade: $274.67
- Average losing trade: Approximately -$177.11 (derived from gross loss / loss trades)
- Win rate: 40.06%
Expectancy = (0.4006 Ă 274.67) â (0.5994 Ă 177.11)
Expectancy = 110.05 â 106.15 = +$3.90 per trade
Over 16,247 trades, that small positive expectancy compounds into substantial growth. The Trend Hedge Scalp EA V4.20 relies on this mathematical edge rather than trying to predict every candle correctly.
The Z-Score Secret
The Z-Score of 19.12 (99.74%) is critical. A Z-Score this high tells us that the sequence of wins and losses from this EA is not random. There is an underlying statistical pattern â specifically, the hedge activation creates clusters of wins after specific loss patterns. This means the robot actually learns from its losing streaks in real time, adjusting hedge distances dynamically.
Linear Regression Correlation (0.86)
An LR Correlation of 0.86 means the Trend Hedge Scalp EA V4.20 only enters when the price movement has strong directional conviction. It ignores choppy, sideways markets entirely. If you watch the EA trade manually, you will notice long periods of inactivity (sometimes hours) followed by 5-10 quick trades. That is the LR filter doing its job.
Recommended Settings for This EA
Based on the reference configuration, here are the exact settings to use when installing the Trend Hedge Scalp EA V4.20 on a live or demo account.
Chart & Broker Settings
- Chart Symbol: XAUUSD
- Timeframe: M15 (Do not use M5 or H1 â the hedge distances are calibrated for M15)
- Broker Type: ECN with raw spreads (ideally under 20 points for Gold)
- Leverage: Minimum 1:200, recommended 1:500
- Minimum Deposit: $500 (matching the backtest)
EA Input Parameters
| Parameter Name | Value | Explanation |
|---|---|---|
endPoints |
300 | Maximum adverse points before abort |
InpRevasePoints |
290 | Hedge trigger distance |
InpMagic |
777777 | EA identifier |
LotSizeMethod |
Auto (Risk %) | Recommended 1-2% risk per scalp |
MaxSpread |
30 | Do not trade if spread exceeds 30 points |
Slippage |
20 | Standard for Gold |
Crucial: Do not change the endPoints and InpRevasePoints values without re-optimizing the Trend Hedge Scalp EA V4.20. The 10-point gap (300 vs 290) is intentional and creates a buffer zone where the EA can cancel hedges before they trigger.
Backtesting Summary
I will not simply repeat the raw numbers endlessly. Instead, let me interpret what the backtest tells us about this trading robot.
The test ran on 73,407,340 ticks with 100% quality. The Trend Hedge Scalp EA V4.20 executed 16,247 trades â that is a substantial sample size. Statistical significance is guaranteed.

Key behavioral insights from that backtest:
- The 19 consecutive losses were exceptionally small in monetary terms (-$67.84 total). This means the EA cuts losing sequences short via hedge activation rather than letting losses run.
- Maximal consecutive wins were 7 trades with a total profit of $5,147.85. The robot captures momentum bursts well.
- **The balance drawdown absolute was only 259.ââThisisremarkableforaGoldscalper.TheââTrendHedgeScalpEAV4.20ââneverputtheinitial500 deposit at serious risk.
- Equity drawdown maximal was 32.55% â entirely acceptable for XAUUSD trading. Many gold EAs see 60-70% drawdown during volatile months.
This robot also demonstrated a Recovery Factor of 2.16, meaning for every 1ofdrawdown,itreturned2.16 in profit. That is healthy.
Installation Guide for This EA on MT5
Installing the Trend Hedge Scalp EA V4.20 is straightforward, but missing a single step will prevent automated trading.
Step 1: Locate the MT5 Data Folder
Open MT5. Go to the top menu: File â Open Data Folder.
Step 2: Navigate to Experts
Inside the Data Folder, open the MQL5 folder, then the Experts folder.
Step 3: Copy the EA File
Copy the EA file into the Experts folder.
Step 4: Restart MT5
Close MetaTrader 5 completely and reopen it. This forces the platform to compile the EA.
Step 5: Attach to XAUUSD M15
Open the XAUUSD chart, set the timeframe to M15. Drag the Trend Hedge Scalp EA V4.20 from the Navigator panel (under Expert Advisors) onto the chart.
Step 6: Configure Settings
A pop-up window will appear. Go to the Common tab and check:
- Allow Automated Trading
- Allow DLL Imports (if required by your version)
- Allow WebRequests (rarely needed)
Then go to the Inputs tab and enter: endPoints=300, InpRevasePoints=290, InpMagic=777777.
Step 7: Enable Auto-Trading
Click the AutoTrading button on the MT5 main toolbar (should turn green). You will see a smiley face on the chart if the EA is active.
Advantages of Using This EA
Let me highlight the genuine strengths of the Trend Hedge Scalp EA V4.20 based on both the backtest and the logic design.
1. Survival Through Hedging
The 19 consecutive losses only amounted to –67.84.Astandardscalperwouldhavelost19Ăafixedstoploss(perhaps500+). This robot survives losing streaks that would kill other EAs.
2. No Martingale, No Grid
Most “hedge” EAs are actually disguised martingale systems that double lot sizes after losses. The Trend Hedge Scalp EA V4.20 does not do this. It uses fixed or risk-based lot sizing with a true hedge (opposite position), not a multiplier.
3. Extreme Statistical Certainty
A Z-Score of 99.74% means this EA is not gambling. The sequence of trades is mathematically patterned, allowing for reliable backtesting and forward-testing correlation.
4. Low Absolute Drawdown
With an absolute drawdown of just 259ona500 account, the robot protects the principal capital aggressively. You would have to see 100% absolute drawdown to lose everything â that is virtually impossible here.
5. 100% Backtest Quality
The provided data shows 73 million ticks at 100% quality. Many EAs are validated on 90% quality data, which hides real-world slippage. This robot was tested on near-perfect tick data.
Disadvantages of This EA
No EA is perfect. Here are the honest limitations of the Trend Hedge Scalp EA V4.20.
1. Low Win Rate (40%)
Psychologically, seeing this EA lose 6 out of every 10 trades is difficult for new traders. You must trust the positive expectancy. If you cannot handle drawdown periods, this EA is not for you.
2. Requires a Gold-Friendly Broker
The EA needs low spreads (under 30 points) and fast execution. Brokers that widen spreads during news will cause the robot to skip trades or trigger hedges late.
3. Not for Low-Volatility Pairs
Do not try to run this robot on EURUSD or GBPJPY. The 290-point hedge distance is calibrated for XAUUSD specifically. On forex pairs, 290 points is a huge move and the hedge would rarely activate.
4. MT5 Only
If you still use MetaTrader 4 (MT4), you cannot run the Trend Hedge Scalp EA V4.20. It is written specifically for MT5’s advanced hedging capabilities and order management system.
5. Gross Loss Is Large
While net profit is positive, the gross loss of $1.7 million (in backtest terms) means this EA experiences deep negative excursions before hedges rescue the positions. You need an account that can withstand 30%+ equity drawdown.
Who Should Use This EA?
The Trend Hedge Scalp EA V4.20 is not a universal tool. It fits specific trader profiles.
Ideal For:
- Gold Specialists: If XAUUSD is your primary instrument, this EA is built exactly for your market.
- Quantitative Thinkers: Traders who understand expectancy, Z-Score, and drawdown percentages will appreciate the EA’s mathematical honesty.
- Medium to Large Accounts (1,000+):Whiletestedon500, the 32% equity drawdown is more comfortable on a $2,000+ account.
- Passive Operators: This robot runs best on a VPS (Virtual Private Server) without manual interference.

Not Recommended For:
-
High Win-Rate Seekers: If you need to see green trades 70%+ of the time, the 40% win rate of this EA will frustrate you.
-
Small Accounts (100): TheEAâ˛slotsizecalculationsandhedgedistancesrequiresufficientmargin.A100 account would face margin calls during the 19-loss streak.
-
Manual Overriders: Do not manually close positions while this EA is running. You will break the hedge logic and likely cause a net loss.
Why Choose This EA Over Other Forex Robots?
The retail forex market is flooded with EAs that over-optimize for three months of backtest data. They look amazing until a losing streak appears. Then they blow the account.
Here is why the Trend Hedge Scalp EA V4.20 stands apart:
| Feature | Typical Forex Robot | This EA |
|---|---|---|
| Losing Streak Management | Increases lot size (martingale) | Activates hedge, keeps lot size flat |
| Win Rate | Usually 70-90% (unsustainable) | 40% (honest and sustainable) |
| Drawdown Control | 50-80% equity drawdown | 32.55% maximal drawdown |
| Market Filter | Simple moving averages | LR Correlation + Z-Score |
| Survival During News | Often disabled manually | Hedge absorbs volatility |
| Backtest Quality | Often 90% (tick interpolation) | 100% quality (73M real ticks) |
The Trend Hedge Scalp EA V4.20 does not promise unrealistic “90% win rates.” It promises mathematical survivability. Over 16,247 trades, that survivability translated into growth. Most other EAs would have hit one bad streak and never recovered.
Furthermore, this EA publishes its full statistical profile â Z-Score, LR Correlation, AHPF â without hiding behind marketing fluff. For traders who know how to read these metrics, the transparency is refreshing.
Final Verdict: Should You Run This EA?
After dissecting the logic, the backtest, and the operational mechanics, here is my conclusion.
The Trend Hedge Scalp EA V4.20 is a specialist tool for a specialist market. It is not a fire-and-forget robot for beginners. It requires:
- A broker that handles Gold spreads well
- A VPS with low latency
- An account size of at least $500 (preferably more)
- A trader who understands that 40% wins can still be profitable
If you meet those conditions, this robot offers one of the most robust hedging mechanisms I have seen in an MT5 EA. The 100% backtest quality over 73 million ticks gives confidence that the EA can handle real-world slippage and latency.
The 32.55% maximal drawdown is honest. The 19 consecutive losses are small in dollar terms. The 16,247 trade sample size is statistically significant. The Trend Hedge Scalp EA V4.20 has been stress-tested in ways that most commercial EAs never experience.
However, do not expect this EA to turn 100into1 million overnight. It grows accounts slowly but steadily, relying on the law of large numbers rather than luck.
If you are a disciplined trader who can leave the EA running for months without interfering, and you primarily trade XAUUSD, the Trend Hedge Scalp EA V4.20 deserves a spot on your MT5 platform.
Final Thoughts
The Trend Hedge Scalp EA V4.20 represents a philosophical shift away from high-win-rate marketing hype and toward statistical robustness. Its hedge mechanism, LR correlation filter, and EndPoints circuit breaker work together to create a trading robot that can survive the unique volatility of Gold.
Install it on XAUUSD M15. Use the settings endPoints=300 and InpRevasePoints=290. Run it on a VPS. And most importantly, trust the math â not your emotions.
This EA will lose 6 out of 10 trades. But those 4 winning trades will be larger, and the hedge will protect you during the losing streaks. Over 16,247 trades, that is a winning formula.
Support & Disclaimer
Support
If you need help installing or configuring your EA, or face any kind of bug, feel free to reach out on:
WhatsApp: Click here
Telegram Group: Join our community
Disclaimer:
Forex and gold trading involve risk. Past performance doesnât guarantee future results. Always test robots on demo before live trading and use proper risk management.
Referral
Join the VIP Signals Telegram Channel for real-time expert trading signals and stay ahead in the forex market. Get personalized strategies by becoming a part of our Real Account Management Telegram Channel and optimize your trading experience. If youâre aiming to Pass PropFirm Challenges , join our dedicated channel for tips and proven methods. Start managing your capital effectively with expert advice from our Funded Account Management Telegram Channel. For advanced traders, our HFT EA / Passing Telegram Channel offers high-frequency trading insights and strategies to boost your performance.



