Ultimate SuperTrend
- Experts
- Franck Henri Maglott
- Versione: 3.0
- Attivazioni: 5
Ultimate SuperTrend — v2.00 Automated trend-following Expert Advisor for MetaTrader 5
The most complete automation of the SuperTrend strategy — one of the most widely taught methods in trading education — now running 24/5 on your MT5 with battle-tested setups included.
The SuperTrend is one of the most popular and battle-proven trend-following indicators in the world — taught in countless trading academies and used daily by both retail and institutional traders. Its logic is simple and robust: follow the trend, respect the dynamic support/resistance. What has always been missing is a professional-grade automation that fully exploits its potential.Ultimate SuperTrend EA is exactly that. It automates every aspect of the strategy with precision: entries on trend touch, configurable SL/TP per session, break-even, trailing stop, news filtering, and daily risk caps. Ready-made profitable setups are provided — tested on real market conditions, directly usable on live accounts and prop firm challenges without any additional configuration.
OVERVIEW
Ultimate SuperTrend automates entries and exits based on the classic SuperTrend indicator, enhanced with a complete position management system: break-even, trailing stop, and 4 configurable intraday sessions each with their own SL/TP/BE parameters. The EA also integrates an economic news filter and a public holiday guard to avoid trading during high-risk periods.HOW IT WORKS
1 — Signal Detection On each tick, the EA reads the SuperTrend buffer. A BUY signal fires when the previous candle closes above the SuperTrend line and its low touches or crosses it. A SELL signal is the mirror condition.
2 — Position Sizing Lot size is calculated either as a fixed volume or as a percentage of account balance risked per trade, based on the distance between entry and stop-loss.
3 — Stop-Loss & Take-Profit The SL is placed below (BUY) or above (SELL) the SuperTrend value with a configurable offset in pips. The TP is derived from the SL distance multiplied by a Risk:Reward ratio — both independently set per session.
4 — Break-Even Once the trade reaches a configurable RR threshold or pip distance, the SL is moved to entry + a surplus (e.g. +2 pips), locking in protection without closing the trade prematurely.
5 — Trailing Stop After BE is triggered, the trailing stop activates. It moves the SL by a configurable pip step each time the market advances by a defined increment.
6 — Daily Cap & Auto-Stop If the daily gain target or daily loss limit (in % of balance) is reached, all positions are closed and the EA stops trading for the rest of the day — automatically resuming the next session.
3 ENTRY MODES
- Direct Touch — Entry immediately when price touches the SuperTrend level. A maximum candle range filter (in pips) prevents entries on oversized candles.
- 2nd Touch (default) — The EA waits for a first touch, then looks for a second touch within a configurable number of candles. More selective, reduces false signals.
- Next Candle — Entry on the opening of the candle following the touch, provided the open is within a maximum distance from the SuperTrend level.
A minimum cooldown between trades (in candles) can be set to avoid overtrading. An optional candle-close filter exits the position if the candle closes on the wrong side of the SuperTrend.
4 INDEPENDENT TRADING SESSIONS
The EA supports up to 4 non-overlapping intraday time windows. Each session has its own independent set of parameters (SL, TP ratio, BE trigger, BE surplus, trailing step). Sessions are activated with first-match priority and can each be enabled or disabled individually.
Each session configures:
- Start time / End time (HH:MM)
- SL offset in pips/points
- TP ratio (Risk:Reward)
- Break-even threshold (RR or pips) + surplus
- Trailing stop step (RR or pips)
RISK MANAGEMENT
- Break-Even — Configurable in RR mode or pips mode. Adds a positive surplus to lock in a minimum gain once triggered.
- Trailing Stop — Activates after BE is hit. Steps forward by a fixed pip or RR increment as the trade progresses.
- Daily Loss Limit — Define a maximum daily drawdown in % of balance. When reached, all trades close and the EA suspends until the next day.
- Daily Gain Target — Define a profit target in % of balance. Once hit, all positions close and no new entries are taken until the following day.
- % Risk Lot Sizing — Automatically calculates position size to risk a fixed % of balance per trade, based on the actual SL distance.
- Candle Close Filter — Optional: close the trade if the candle closes through the SuperTrend level.
MARKET FILTERS
- Public holiday guard: US, Germany, Japan, Canada, UK (via native MQL5 Calendar API)
- High-impact news block: EUR and USD events
- Configurable pre/post event window (±X minutes)
- Optional EMA trend filter: only trade in the direction of a long-period EMA
- Optional EMA crossover filter: require short EMA above/below long EMA before entering
PARAMETERS REFERENCE
SuperTrend:
- period_ST (default: 10) — ATR period
- multiplier_ST (default: 3.0) — ATR multiplier
Entry:
- typeentree — Entry mode: direct touch / 2nd touch / next candle
- _X (default: 1) — Minimum candles between trades
- nbbougiesmax (default: 1) — Max candles to await 2nd touch
- maxpips (default: 200) — Max candle range for direct entry
- distance_max_next (default: 5) — Max distance from ST for next candle entry
- cloturesiclosest (default: false) — Close on candle close through ST
Per Session (×4, shown for Session 1):
- heure_debut/fin_trading_1 — Session time window
- stoploss_fix1 (default: 5) — Extra pips below ST for SL
- ratio_tp1 (default: 3) — TP = SL distance × ratio
- seuil_be1 / seuil_be_pips1 (default: 1 / 10) — BE trigger in RR or pips
- surplus_be1 (default: 2) — Pips locked in after BE
- seuil_st1 / nbpips1 (default: 1 / 10) — Trailing step in RR or pips
Money Management:
- choixtypeLots — Fixed lots or % risk
- lots_fixes (default: 0.01) — Fixed lot size
- lots_perc (default: 1) — % of balance to risk per trade
- gain_max_daily (default: 4%) — Daily gain cap
- loose_max_daily (default: 4%) — Daily loss limit
- typedeSSBE / typedeSSSS — BE and SS mode: RR or pips
- mycoeff (default: 1) — Global pip/point multiplier
EMA Filters:
- activ_ma (default: false) — Enable EMA trend filter
- ma_period (default: 200) — Trend EMA period
- activ_check_ma (default: false) — Enable crossover check
- EMAShortPeriod / EMALongPeriod (default: 20 / 50)
News & Holidays:
- activ_blocage_jf_US/DE/JP/CA/GB (default: true)
- activ_blocage_EUR / activ_blocage_USD (default: true)
- minutes_post_blocage (default: 30) — Buffer window in minutes
REQUIREMENTS
- MetaTrader 5 (build 3000+ recommended)
- Indicator "SuperTrend by MxAgency" must be installed in MQL5/Indicators/
- Allow WebRequest for in MT5 settings (Tools → Options → Expert Advisors)
- AutoTrading must be enabled
- Works on any symbol and timeframe — optimize parameters per instrument
- Multiple instances supported on different symbols via distinct MagicNumber values
RISK DISCLAIMER
Trading forex and CFDs involves significant risk of loss. Past performance is not indicative of future results. Always test on a demo account before deploying on live funds.

