PrinceHedge Two-way Grid MT5 EA Source Code

PrinceHedge Two-way Grid MT5 EA Source Code

Pinned Annual In-house MT5v1.0

Two-way independent operation, counter-trend tiered averaging, one-side TP + combined TP + partial close, multi-layer risk protection. Good for ranging and pullback markets.

Views 1076 Downloads 129 File 291.9 KB Updated 2026-09-25

Details & Usage Instructions

Custom-built for a client elsewhere — tune params yourself.

Core Features
1. Two-way Independent Trading
Long-only, short-only, or both simultaneously, without interference.
Each direction uses an independent magic number; position stats and closing are independent.

2. Counter-trend Tiered Averaging
Lot sequence customizable, default 0.02 to 10 lots, then ×1.3 increment.
Tiered spacing: first 6 orders 1300 points, after 6 orders 1600, after 9 orders 2000, after 12 orders 2300.
Deeper layers → wider spacing, slowing blow-up in one-sided moves.

3. Multi-level TP
One-side TP: by order count tier, default 1000-point TP.
Combined TP: after 20 orders, when total profit hits $388, close all.
Partial close: when orders ≥ 8 and profit ≥ $100, auto-close 2 orders to lock profit.

4. Risk Protection
Spread filter: no open if spread > 2500 points.
Trading-time limits: set allowed sessions.
Float-loss % close-all: close all at 95% of balance (optional).
Float-loss % stop EA: stop at 95% of balance (optional).
Max position limit: stop EA after 70 orders.

5. Control Panel
One-click close-all, close long, close short, close profit, close loss.
Real-time long/short order count, lots, P/L.
Panel position, font and size all customizable.

Suitable Market
Good for ranging markets and trending markets with pullbacks.
Not for strong one-sided, no-pullback extreme markets.

Risk Warning
This EA is a martingale grid strategy with deep layers and increasing lots, carrying significant drawdown risk.
Set lots, layers and risk params reasonably; simulate first; no profit guarantee; you bear all gains and losses.

7529f1ee-9305-48ad-a872-668ba90dd92a.png

zhutu.jpg

Risk Warning:Resources on this site are for learning, research and technical exchange only, and do not constitute any investment advice. Before running any EA on any account, please do thorough forward-testing on a demo account first; no strategy can guarantee profits.