TrendGuard Pro MT5
- Indicateurs
- Bo Wang
- Version: 1.3
- Mise à jour: 30 mars 2026
- Activations: 10
Supertrend core · 11 confirmation guards · ATR-calculated SL/TP · 5,000-bar performance simulation · P&L pip labels · Symbol watermark · Draggable stats panel
How It Works
At its core, TrendGuard Pro uses the classic Supertrend algorithm (ATR-based dynamic support/resistance) to detect trend direction and reversals. Each potential signal is then evaluated against a stack of up to 11 independent filters — all of which must agree before a BUY or SELL arrow is drawn. Entry price, Stop Loss, and Take Profit levels are automatically calculated using the Average True Range (ATR). SL/TP zone display is optional and off by default.
Signal Flow
- Supertrend flip — a bearish→bullish or bullish→bearish direction change generates a candidate signal.
- Filter stack evaluation — the candidate is checked against each enabled filter in turn; any single failing filter discards the signal.
- Arrow — if all active filters pass, a BUY ↑ or SELL ↓ arrow is painted. ATR-derived SL/TP rectangle zones are optional (off by default, enable via Show SL/TP levels on chart).
- Alert dispatch — popup, email, and/or push notifications are sent with full trade details.
The 11 Confirmation Guards
| Filter | What It Checks |
|---|---|
| Fast EMA | Fast exponential moving average alignment with signal direction |
| Slow EMA | Slow EMA cross vs Fast EMA — confirms trend stack |
| Three Trend EMAs | 50 / 100 / 200 EMA stacking: price and EMAs must be in order |
| EMA Slope | Minimum slope of Fast EMA over N bars — filters flat/sideways markets |
| RSI | RSI must be above/below configurable threshold; optional OB/OS exclusion |
| ADX | Minimum ADX level confirms trending market; +DI/−DI directional check |
| Volume | Current bar volume must exceed a moving average × multiplier |
| VWAP | Price must be above (buy) / below (sell) the daily VWAP |
| Bollinger Bands | Price in upper/lower half of BB, or breakout outside the band |
| MACD | MACD histogram direction; optional strict divergence detection mode |
| Smart Candle | Minimum body-to-range ratio; candle must close in signal direction |
Every filter is individually enabled or disabled via its own toggle input. You can run from pure Supertrend-only signals up to the full 11-filter stack.
Signal Modes
| Mode | Description |
|---|---|
| Supertrend Only | Signals fire on any Supertrend direction flip — maximum frequency |
| Supertrend + EMA (default) | Adds Fast/Slow EMA alignment — balanced frequency vs quality |
| Full Stack | All enabled filters must confirm — maximum signal quality |
ATR-Based Money Management
Every signal uses the signal bar's close price as the entry reference and automatically computes:
- Stop Loss = Entry ± SL Multiplier × ATR(n)
- Take Profit = Entry ± TP Multiplier × ATR(n) (default R:R ≈ 1:1.33)
Breakeven Stop
Once price moves Breakeven Trigger × ATR in your favour, the stop loss is automatically moved to entry, eliminating downside risk and converting potential losses into breakeven exits.
Trailing Stop
After price exceeds Trailing Distance × ATR from entry, the stop begins following the best price, always staying Trailing Distance × ATR away. This locks in profits progressively and lets winning trades run in trending markets.
SL/TP rectangle zones (red = stop loss, green = take profit) and the entry line are optional overlays, disabled by default. The entry line can be enabled independently via Show Entry level on chart without requiring SL/TP zones.
Built-In Performance Simulation
TrendGuard Pro scans back over the last up to 5,000 bars and simulates every historical signal using the same breakeven + trailing stop logic to determine the exit outcome. Results are shown in an on-chart stats panel that can be dragged to any position with the mouse:
- Win rate (%, highlighted in sky blue)
- Total trades
- Winning trades (green)
- Losing trades (red)
- Average profit per trade (in pips)
- Total profit (highlighted in gold, in pips)
- Active SL/TP ATR multipliers (to confirm loaded parameters)
- Symbol and timeframe
Optional connector lines (OBJ_TREND) link each signal bar to its exit point — green for wins, red for losses — making it easy to review historical performance visually. Each connector also displays a P&L pip label at the exit point (e.g. "+775.6" or "-123.4"), so you can see the result of every trade at a glance.
Visual Elements
- Supertrend line — green when bullish, red when bearish
- Fast EMA line (default: blue)
- Slow EMA line (default: orange)
- Primary Trend EMA line (default: gold, EMA 200)
- BUY ↑ arrows below signal bar (lime)
- SELL ↓ arrows above signal bar (red)
- SL / TP / Entry rectangle zones — optional, off by default (red=SL, green=TP, white=Entry). Entry line can be enabled independently of SL/TP zones.
- Entry-to-exit connector lines with P&L pip labels at exit points
- Symbol/timeframe watermark — red box in the top-right corner showing current symbol and period (e.g. XAUUSD-M5), auto-sized to fit
- Dark stats panel (9 data rows) — draggable with mouse (position and offset configurable)
All visual elements can be shown or hidden independently via input parameters.
Alert System
Three alert channels operate simultaneously:
- Popup alert — on-screen window with full trade details
- Email alert — sent to your MetaTrader-configured email address
- Push notification — real-time mobile push via MetaTrader mobile app
Every alert message includes: direction, symbol, timeframe, entry price, stop loss, and take profit.
Optional "alert on bar open only" mode prevents duplicate alerts on every tick.
Parameters Overview (65+ inputs)
Supertrend
| Parameter | Default | Description |
|---|---|---|
| ATR Period | 10 | Period for the underlying ATR calculation |
| ATR Multiplier | 3.0 | Band width multiplier (higher = fewer flips) |
| Signal Mode | ST + EMA | ST Only / ST+EMA / Full 11-filter stack |
EMA Filters
| Parameter | Default | Description |
|---|---|---|
| Fast EMA Period | 9 | Short EMA |
| Slow EMA Period | 21 | Medium EMA |
| EMA Smoothing Method | EMA | MA method for Fast/Slow EMA (SMA, EMA, SMMA, LWMA) |
| Trend EMA 1/2/3 | 50/100/200 | Long-term trend structure EMAs |
| EMA Slope Lookback | 3 | Bars over which Fast EMA slope is measured |
| Min EMA Slope | 0.0001 | Minimum slope to allow a signal |
Momentum / Oscillator Filters
| Parameter | Default | Description |
|---|---|---|
| RSI Period | 14 | — |
| RSI Bull Min | 50 | RSI must be above this for a buy signal |
| RSI Bear Max | 50 | RSI must be below this for a sell signal |
| Overbought / Oversold | 70 / 30 | Optional exclusion zones |
| ADX Period | 14 | — |
| ADX Min Level | 20 | Minimum trend strength required |
| MACD Fast/Slow/Signal | 12/26/9 | Standard MACD parameters |
| MACD Strict Divergence | false | Enable strict histogram-turn divergence mode |
Volume / Price Filters
| Parameter | Default | Description |
|---|---|---|
| Volume MA Period | 20 | Moving average period for volume comparison |
| Volume Multiplier | 1.0 | Volume must be ≥ (avg × multiplier) |
| BB Period / Deviation | 20 / 2.0 | Bollinger Band parameters |
| BB Breakout Only | false | Require price outside band vs. just in upper/lower half |
| Candle Body Ratio | 0.50 | Min body / total range ratio |
| Require Directional Close | true | Candle must close in signal direction |
SL / TP / Simulation
| Parameter | Default | Description |
|---|---|---|
| SL ATR Multiplier | 1.5 | Stop Loss = ATR × this value |
| TP ATR Multiplier | 2.0 | Take Profit = ATR × this value (default R:R ≈ 1:1.33) |
| Enable Breakeven | true | Move SL to entry when price moves in your favor |
| Breakeven Trigger | 1.0 | Move SL to entry after price moves ATR × this value |
| Enable Trailing | true | Trail SL behind best price to lock in profits |
| Trailing Distance | 1.0 | Trailing SL follows best price at ATR × this value |
| Show SL/TP Zones | false | Draw SL/TP rectangle zones on chart |
| Show Entry Line | false | Draw entry price line on chart (works independently of SL/TP zones) |
| Zone Opacity % | 50 | SL/TP zone transparency (0=transparent, 100=opaque) |
| Simulation Lookback | 5000 | Number of past bars to include in win-rate simulation |
| Max Hold Bars | 50 | Close at market after N bars if TP/SL not hit (0=unlimited) |
| Show Connectors | true | Draw entry-to-exit lines on chart |
Visual Settings
| Parameter | Default | Description |
|---|---|---|
| Show Watermark | true | Display symbol/timeframe watermark in top-right corner (e.g. XAUUSD-M5) |
| Show EMA Lines | true | Display Fast/Slow EMA lines on chart |
| Show Arrows | true | Display Buy/Sell arrows |
| Bull / Bear Color | Lime / Red | Arrow and P&L label colors (customizable) |
| Panel X / Y Offset | 10 / 30 | Initial stats panel position (pixel coordinates) |
Compatible Assets & Timeframes
- Assets: all symbols — XAUUSD (Gold), BTCUSD, Forex majors, indices, stocks
- Timeframes: M1 – D1 (designed for scalping; also works for intraday/swing)
- Platform: MetaTrader 5 only
Who Is This For?
- Scalpers who need fast, high-quality entry signals with automatic risk levels
- Traders who want to combine classical technical tools into a single, unified decision engine
- Anyone tired of repainting indicators — TrendGuard Pro signals only on a completed, closed bar
- Algo traders looking for a battle-tested signal base for EA development
