ShieldTrend Grid EA v2.10 Source Code

ShieldTrend Grid EA v2.10 Source Code

Pinned Annual In-house MT5v2.10

ShieldTrend Grid EA is an MT5 automated trading system. It judges the trend first, then decides direction; after a trend-following open, if price pulls back counter-trend it averages up to 6 layers by ATR dynamic spacing. All positions are managed together by basket breakeven, one-sided trailing, floating-loss risk control and a daily-loss cooldown.

Views 940 Downloads 160 File 44.5 KB Updated 2026-09-25

Details & Usage Instructions

Running live on a real account.

Core Features
Trend filter: EMA 50 / 200 judges long/short; only trades the trend direction.
Trend-following open: long in uptrend, short in downtrend.
Counter-trend averaging: by ATR dynamic spacing, up to 6 layers, lot increment customizable.
Trend-reversal close: auto-closes reverse positions on trend flip.
One-sided trailing: after long/short profit hits target, close on pullback to lock profit.
Floating / daily-loss risk control: force-close all and enter cooldown when loss exceeds limit.
Black-gold stats panel: account, P/L, win rate, positions, risk control, cooldown countdown on one screen.
One-click actions: pause trading, close all longs, close all shorts, close everything.

Basket Breakeven & TP
The EA treats all current positions as one "basket".
When total profit reaches $20 (default), basket TP protection auto-starts.
After that, if profit keeps rising it records the peak; once it pulls back $8 from the peak, all positions close to lock profit.
The guaranteed lock amount is $10.
That is, in the worst case it still tries to keep $10 profit and won't give back all earned profit.
Start amount, pullback amount and lock amount are all adjustable in params.
Default: profit starts at $20, TP on $8 pullback, guaranteed lock $10.

Suitable Market
Good for markets with clear trends, pullbacks and churn.
Not for strong one-sided no-pullback, frequent gaps, wide-spread illiquid instruments.

Risk Warning
A dynamic grid / martingale-like averaging strategy under trend filtering, with no traditional hard stop.
Control lot size reasonably; simulate first; no profit guarantee.

03b26fdf-e4c2-41a2-95bb-fa56f0e0d139.png

02.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.