Introduction
In today’s choppy markets, session overlaps can spell either opportunity or chaos. If you’ve ever watched the London–New York overlap and cringed at whipsaw price swings, Hedge EU UC EA is here to help. This Expert Advisor (EA) for MetaTrader 4 automates a tried-and-true hedging strategy during the European (EU) and U.S. (UC) sessions, smoothing out volatility while aiming for consistent gains. With full MQ4 source code provided, you can customize inputs, audit the logic, and even extend it yourself—100% free on ForexFactory.cc.
Overview
Hedge EU UC EA is engineered to detect the start of the London and New York sessions, open paired hedged orders, and close them when predetermined profit or risk thresholds are met. It uses:
- Session Filters: Trades only during EU (08:00–17:00 GMT) and UC (13:30–22:00 GMT) overlaps.
- Hedged Entry Logic: Simultaneously places buy and sell stops a few pips away from current price, locking in a neutral position until one side is triggered.
- Dynamic Lot Sizing: Adjusts lots based on a percentage of equity or fixed volume.
- Customizable Inputs: Set hedging distance, take profit, stop loss, and maximum open hedges.
Strategy Details
- Session Detection: Once the EU session opens, Hedge EU UC EA arms itself and awaits market movement. When the UC session begins, it can trigger additional hedged entries.
- Order Placement: Two pending orders (buy stop and sell stop) are placed at defined offsets (e.g., ±15 pips). This “straddling” captures breakout moves in either direction.
- Activation & Cancellation: If neither order triggers within a set timeout (e.g., 120 minutes), both are canceled to avoid stale positions.
- Exit Rules: Upon triggering, each hedge has an independent take-profit and stop-loss. There’s also an optional global equity stop that closes all positions if drawdown exceeds your limit.
- Money Management: You choose between fixed lots or equity-based lot calculation. There’s no martingale—only plain hedging.

Key Features
• Hedge entry on EU & UC session overlaps
• Adjustable hedging offset (in pips)
• Independent TP/SL per hedge
• Global equity stop & trailing options
• Fixed or dynamic lot sizing (percent equity)
• Configurable timeout for pending orders
• No martingale or grid doubling
• Works on all major Forex pairs
• Fully open-source MQ4 code
• Low CPU usage & memory footprint
Backtest & Performance
– Backtest Period: Jan 2010–Dec 2020 on EURUSD H1
– Net Profit: +1,850%
– Max Drawdown: 12.4%
– Profit Factor: 1.82
Equity curve analysis shows largely smooth growth, with drawdowns confined to major news events and flash crashes. In live runs on a $1,000 demo account since January 2024, the EA has generated a steady 2–3% monthly gain with drawdowns under 8%. You can review the full backtest report and live-stat dashboard on ForexFactory.cc.
Installation & Setup
- Download: Get the MQ4 file from the thread (link below).
- Copy & Compile: Place
Hedge_EU_UC.mq4intoMQL4/Experts/in your MT4 data folder. Open MetaEditor and compile. - Attach to Chart: Drag the EA onto your preferred chart (recommended: EURUSD H1).
- Input Parameters:
HedgeOffset(pips)TakeProfit/StopLoss(pips)LotMode(Fixed / % Equity)MaxHedges(default 2)SessionStart/SessionEndtimes- Enable AutoTrading: Make sure AutoTrading is on in MT4.

Risk Management & Tips
– Demo-Test First: Always run on a demo account for at least two weeks.
– Adjust Equity Stop: Set a MaxDrawdown% to protect your account under extreme conditions.
– Use Low Leverage: Aim for ≤1:50 to keep margin requirements manageable.
– Monitor News: Disable AutoTrading during high-impact news if desired.
Conclusion & Download
Whether you’re a hedging purist or just looking to tame session overlap volatility, Hedge EU UC EA Source Code MQ4 delivers a transparent, customizable solution for MT4. Grab your free copy now—no fees, no subscriptions—just pure hedging power.
Comments
No comments yet. Be the first to comment!
Leave a Comment