TrendGuard Pro MT5
- Indicators
- Version: 1.8
- Updated: 20 October 2026
- Activations: 10
Supertrend core · 11 click-to-toggle confirmation filters · Multi-timeframe trend dashboard · Entry / SL / TP1-TP3 levels · Higher-timeframe filter · Trend cloud · 5,000-bar performance simulation with profit factor & drawdown
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 three Take Profit targets are automatically calculated using the Average True Range (ATR) and drawn for the latest signal. Signals are confirmed on bar close and do not repaint.
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 and levels — if all active filters pass, a BUY ↑ or SELL ↓ arrow is painted and the Entry, Stop Loss and TP1 / TP2 / TP3 lines of the signal are drawn. SL/TP rectangle zones for every past signal are optional.
- Alert dispatch — popup, email, and/or push notifications are sent with full trade details.
Interactive Dashboard
A modern dark dashboard panel sits on the chart. It can be dragged anywhere, minimized to its title bar, and each section can be collapsed with a click. Position, collapsed sections and filter switches are remembered per chart, also when you change the timeframe.
- Latest Signal — direction and age of the last signal, Entry, Stop Loss, TP1 / TP2 / TP3 with their reward-to-risk multiples, and the live result in pips with the status (running, TP1/TP2/TP3 hit, stopped out).
- MTF Trend — Supertrend direction on six timeframes (default M5, M15, M30, H1, H4, D1, configurable) and the overall bullish / bearish bias, so you can see at a glance whether a signal goes with the bigger trend.
- Performance — results of the built-in simulation (see below).
- Filters — one switch per filter. Click a switch to turn that filter on or off, click the mode button to change between Supertrend only, Supertrend + EMA and the full filter stack. Arrows, levels and statistics are recalculated at once — no need to open the inputs dialog. Hover a switch to see exactly what it checks.
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 |
| Higher-Timeframe Trend (optional) | Supertrend on a higher timeframe (default H1) must point in the signal direction; only closed higher-timeframe bars are used, so there is no look-ahead and no repaint |
Every filter is individually enabled or disabled — with its input or with one click on its dashboard switch. You can run from pure Supertrend-only signals up to the full 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)
- TP1 = Entry ± TP1 Multiplier × ATR(n) (default 2.0, R:R ≈ 1:1.33)
- TP2 = Entry ± TP2 Multiplier × ATR(n) (default 3.0, R:R 1:2)
- TP3 = Entry ± TP3 Multiplier × ATR(n) (default 4.0, R:R ≈ 1:2.67)
The Entry, SL and TP1-TP3 lines of the latest signal are drawn on the chart with their prices and R multiples; a target that has been reached is marked as hit.
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. Zones are drawn for the signals inside the simulation lookback window, so the chart stays fast even with 100,000 bars of history loaded.
Built-In Performance Simulation
TrendGuard Pro scans back over the last up to 5,000 completed bars and simulates every historical signal, one trade at a time, with the ATR stop loss and take profit (fixed by default, or with the breakeven + trailing stop logic when Sim: use breakeven & trailing is enabled). A trade that reaches Max Hold Bars is closed at that bar's close; a trade that is still running on the latest bar is not counted, so the statistics only contain finished trades. The simulation uses TP1 as the take profit. Results are shown in the Performance section of the dashboard:
- Win rate
- Trades, wins and losses
- Profit factor
- Total and average profit per trade (in pips)
- Maximum drawdown (in pips)
- Exit breakdown: take profit / stop loss / trailing stop / time exits
- Simulation mode and the active SL / TP1 ATR multipliers
Because the dashboard switches recalculate the simulation instantly, you can compare filter combinations on your symbol and timeframe in seconds.
Optional connector lines (OBJ_TREND) link the signal bar of each of the 200 most recent simulated trades 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
- Trend cloud between price and the Supertrend line — green / red, colors configurable, can be turned off
- Fast EMA line (default: blue)
- Slow EMA line (default: orange)
- Primary Trend EMA line (default: gold, EMA 200)
- BUY ↑ arrows below the signal bar's low (Bull color, default lime)
- SELL ↓ arrows above the signal bar's high (Bear color, default 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
- Entry / SL / TP1 / TP2 / TP3 lines of the latest signal with price and R-multiple labels
- Symbol/timeframe watermark in the top-right corner (e.g. XAUUSD M5 ▲) with a green / red stripe showing the current trend, auto-sized to fit
- Dashboard panel (latest signal, MTF trend, performance, filter switches) sized to its text at any screen DPI — draggable, collapsible and minimizable; it stays inside the chart and remembers its state when you switch timeframe
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 TP1 / TP2 / TP3.
Optional TP / SL alerts tell you when the latest signal reaches TP1, TP2, TP3 or its stop loss.
Optional "alert on bar open only" mode prevents duplicate alerts on every tick.
Parameters Overview (75+ 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 |
| TP1 / TP2 / TP3 ATR Multiplier | 2.0 / 3.0 / 4.0 | Take Profit targets = ATR × these values (TP1 is used by the simulation) |
| Show Latest Signal Levels | true | Draw Entry / SL / TP1-TP3 lines of the latest signal |
| 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 with trend stripe in the top-right corner |
| Show Trend Cloud / Colors | true | Fill between price and the Supertrend line, bullish and bearish colors |
| 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 dashboard position (pixel coordinates); a dragged position is remembered per chart |
Dashboard / Higher Timeframe / Alerts
| Parameter | Default | Description |
|---|---|---|
| Show Dashboard Panel | true | Latest signal, MTF trend, performance and filter switches |
| Show MTF Trend / Timeframes | true / M5,M15,M30,H1,H4,D1 | Timeframes of the trend strip (comma separated, up to 8) |
| Show Filter Switches | true | Click-to-toggle filter switches and signal mode button |
| HTF Filter / Higher Timeframe | false / H1 | Only signals in the direction of the higher-timeframe Supertrend (Full mode) |
| TP / SL Alerts | false | Alert when the latest signal reaches TP1, TP2, TP3 or the stop loss |
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
