Smoothed Gaussian Trend Filter Robot MT5

Get ALL my MT4 & MT5 Robots & Indicators FREE — See how here

Overview

This EA automates trading based on the logic of the Smoothed Gaussian Trend Filter Multi TF Scanner indicator.

Signal logic and entry conditions

The indicator applies a recursive Gaussian filter to closing prices, then smooths the result with linear regression. The smoothed curve is compared with a custom Supertrend threshold calculated from that curve and ATR 21, using a fixed factor of 0.15. With valid data, the trend is bullish when the curve is above the threshold and bearish when it is at or below it.

Entry mode has one option: When Buy/Sell signal appears. With Mid-Trend Signals disabled by default:

  • Buy: the trend changes from bearish on the immediately preceding bar to bullish on the signal bar.
  • Sell: the trend changes from bullish on the immediately preceding bar to bearish on the signal bar.

Enabling Mid-Trend Signals replaces that reversal rule: Buy/Sell forms only when the immediately preceding bar was ranging and the signal bar has left that phase, in the current trend direction. Ranging means the slope state disagrees with the trend: a curve above its previous value has a bullish slope, while a flat or lower curve is classified as a bearish slope. A bullish trend produces Buy; a bearish trend produces Sell. The robot reads the Buy/Sell events produced by the selected rule.

Signal settings include Gaussian Length (default 15), Poles (1..4) (3), Smoothing Length (22), Flatten Multiplier (7) and Mid-Trend Signals. Gaussian Length and Poles change the recursive filter; Smoothing Length changes the regression window; Flatten Multiplier sets the regression evaluation offset. Maximum bars to process defaults to 10000, with 0 using all available data; the history range can affect initialization and signal results.

The main signal uses the current chart's symbol and timeframe. Buy signal bar shift and Sell signal bar shift default to 1, the most recently closed bar; shift 0 uses the forming bar, so its signal may change before the bar closes. When the panel needs information, up to 1000 bars are searched for the latest signal; a historical match does not itself trigger an entry on the bar being checked.

MTF Filter 1 and MTF Filter 2 are independent trend-confirmation groups, both disabled by default. Each has its own timeframe, Gaussian/regression settings, Buy/Sell conditions and shift. When enabled with the default conditions, Buy is allowed in a bullish trend and Sell in a bearish trend, at shift 1 of the filter timeframe; no new Buy/Sell event is required on that timeframe. Always TRUE allows trading without requiring a trend direction; conditions that need data fail when that data is invalid. These groups provide permission checks for the main signal. Position opening also follows the EA's operating and management settings.

This Expert Advisor combines automated Buy/Sell signals with configurable position sizing, exits and entry filters. Its settings let you define how eligible trades are opened, managed and closed.

Begin with a single-position setup and individual Stop Loss and Take Profit, then add the supported management functions that fit your method. Different configurations can use trailing, basket exits, Grid or Hedging, subject to the compatibility requirements in the user guide.

Important: Default settings have not been optimized. Use the reference methods and example settings in Part 6 to build, adapt and test a configuration for your trading method, instrument, timeframe, account and risk tolerance.

Trade and position management

  • Position sizing: fixed lots, balance-based sizing, or risk amount/percentage with a compatible Stop Loss.
  • Individual exits: configurable Stop Loss and Take Profit, Reward-to-Risk targets and optional virtual SL/TP.
  • Trailing: individual-position or basket trailing in supported configurations.
  • Closing rules: Basket TP/SL, closing on signals, or closing before the next eligible entry.
  • Volume management: Add, Multiplier or Recover, with the conditions required by each mode.
  • Additional-position methods: same-direction Grid entries at configured price distances, or opposite-direction Hedging at a configured loss-distance threshold.

The methods have separate requirements. Recover uses a single-position setup with a valid individual TP and cannot be combined with Grid, Hedging or conflicting basket/signal exits. Grid and Hedging cannot be enabled together. Check Part 4 before combining management functions.

Entry filters and operating controls

Optional technical filters include Moving Average, RSI, Stochastic, ADX, MACD, SuperTrend, Volumatic VIDyA and Predictive Ranges. Enable the filters you need and select the conditions that should confirm the EA's main signal.

Trading controls cover direction, sessions, weekdays, holiday periods, spread, position limits, entries per bar and economic news. Each enabled filter should have a defined role; enabling more filters does not automatically improve a configuration.

Daily drawdown actions, breakeven reference lines and trading panels provide additional monitoring and management controls. Panel functions include Pause and closing controls. Available settings and signal parameters can differ by EA, version and platform edition.

Configuration and testing

Start by checking the signal, lot size and individual exits for the intended instrument and timeframe. Add one compatible management function or filter at a time, inspect the resulting trades and save the configuration you want to evaluate.

Use Strategy Tester to examine supported functions on historical data, then verify operation on Demo. News Filter and News Panel do not operate in Strategy Tester in this EA framework and must be checked separately on Demo. Parts 4 and 5 explain testing, configuration messages and troubleshooting.

Review instrument specifications, account size, spread, commission, swap, margin and execution conditions. Lot progression, Recover, Grid and Hedging require particular attention to total open exposure and exit rules.

The EA does not guarantee profit. Historical results do not guarantee future performance.

Support

For help with configuration, use the product comments or the MQL5 messaging system. Describe the intended entry conditions, lot-sizing method, exit rules and whether additional positions should be allowed. I can explain which settings correspond to that behavior and which combinations are supported.

More from author
Get ALL my MT4 & MT5 tools FREE — See how here Multi-Timeframe & Multi-Symbol Guide:  Multi-Timeframe & Scanner User Guide - Available in 12 Languages See the MT5 version at:  Zero Lag Trend Signals Multi TF Scanner for MT5 See the MT4 version at:   Zero Lag Trend Signals Multi TF Scanner for MT4 See more products at:   All products  or  Trading Indicators, Special Offers & New Releases New tools   cost   $30   for the   first week   or for the   first 3 purchases !  Trading Tools Channel on M
Get ALL my MT4 & MT5 indicators FREE — See how here Special offer : ALL TOOLS , just $35 each! New tools   will be   $30   for the   first week   or the   first 3 purchases !  Trading Tools Channel on MQL5 : Join my MQL5 channel to update the latest news from me In the ever-changing landscape of financial trading, accurately identifying and analyzing support and resistance levels is essential for making informed investment decisions. SnR Retest and Break Multi-Timeframe is a support and resist
Supertrend Fakeout MT5
Duc Hoan Nguyen
5 (4)
Get ALL my MT4 & MT5 indicators FREE — See how here New tools   will be   $30   for the   first week   or the   first 3 purchases !  Trading Tools Channel on MQL5 : Join my MQL5 channel to update the latest news from me The Supertrend Fakeout Indicator is an enhanced version of the classic Supertrend indicator, designed to deliver more reliable trend signals. By incorporating advanced features like the Fakeout Index Limit and Fakeout ATR Mult, this indicator helps to filter out false trend rev
FREE
Volumatic VIDyA MT5
Duc Hoan Nguyen
5 (2)
Get ALL my MT4 & MT5 indicators FREE — See how here Special offer :   ALL TOOLS , just   $35   each for a limited time ! New tools  will be  $30  for the  first week  or the  first 3 purchases ! Trading Tools Channel on MQL5: Join my MQL5 channel to receive the latest updates Multi-Timeframe & Multi-Symbol Guide:  Multi-Timeframe & Scanner User Guide - Available in 12 Languages See the MT5 version at:  Volumatic VIDyA MT5 Multi-Timeframe Scanner See the MT4 version at:  Volumatic VIDyA MT4 Mult
OA SnR Power MT5
Duc Hoan Nguyen
5 (3)
Get ALL my MT4 & MT5 indicators FREE — See how here New tools   will be   $30   for the   first week   or the   first 3 purchases !  Trading Tools Channel on MQL5 : Join my MQL5 channel to update the latest news from me Overview OA SnR Power is a powerful tool designed for traders to identify and assess the strength of support and resistance levels. By incorporating key factors such as trading volume, rebound frequency, and retest count, this indicator provides a comprehensive view of critica
FREE
Get ALL my MT4 & MT5 indicators FREE — See how here Special offer : ALL TOOLS , just $35 each! New tools   will be   $30   for the   first week   or the   first 3 purchases !  Trading Tools Channel on MQL5 : Join my MQL5 channel to update the latest news from me The Volumetric Order Blocks Multi Timeframe indicator is a powerful tool designed for traders who seek deeper insights into market behavior by identifying key price areas where significant market participants accumulate orders. These a
Get ALL my MT4 & MT5 indicators FREE — See how here New tools   will be   $30   for the   first week   or the   first 3 purchases !  Trading Tools Channel on MQL5 : Join my MQL5 channel to update the latest news from me Maximize your trading edge with Follow Line MT5 with Scanner, an advanced volatility-based indicator designed for serious traders. This tool combines the power of Bollinger Bands with customizable settings, offering precise insights into price movements. See more MT4 version at
FREE
Volumatic VIDyA MT4
Duc Hoan Nguyen
4.6 (5)
Get ALL my MT4 & MT5 indicators FREE — See how here Get this indicator and more for free here:   Convert indicator into a trading robot (no coding required)   Special offer :   ALL TOOLS , just   $35   each for a limited time ! New tools  will be  $30  for the  first week  or the  first 3 purchases ! Trading Tools Channel on MQL5: Join my MQL5 channel to receive the latest updates Multi-Timeframe & Multi-Symbol Guide:  Multi-Timeframe & Scanner User Guide - Available in 12 Languages See the MT
Supertrend Fakeout MT4
Duc Hoan Nguyen
4.33 (6)
Get ALL my MT4 & MT5 indicators FREE — See how here New tools   will be   $30   for the   first week   or the   first 3 purchases !  Trading Tools Channel on MQL5 : Join my MQL5 channel to update the latest news from me The Supertrend Fakeout Indicator is an enhanced version of the classic Supertrend indicator, designed to deliver more reliable trend signals. By incorporating advanced features like the Fakeout Index Limit and Fakeout ATR Mult, this indicator helps to filter out false trend rev
FREE
Get ALL my MT4 & MT5 indicators FREE — See how here Special offer : ALL TOOLS , just $35 each! New tools   will be   $30   for the   first week   or the   first 3 purchases !  Trading Tools Channel on MQL5 : Join my MQL5 channel to update the latest news from me Unlock the power of ICT’s Inversion Fair Value Gap (IFVG) concept with the Inversion Fair Value Gaps Indicator ! This cutting-edge tool takes Fair Value Gaps (FVGs) to the next level by identifying and displaying Inverted FVG zones—key
Get ALL my MT4 & MT5 indicators FREE — See how here New tools   will be   $30   for the   first week   or the   first 3 purchases !  Trading Tools Channel on MQL5 : Join my MQL5 channel to update the latest news from me In the dynamic financial markets, identifying trend reversal signals is essential for effective trading. The RSI Divergence Scanner is designed to help you detect RSI divergence signals across various currency pairs and timeframes accurately and efficiently. See more MT5 versio
FREE
AI Channels MT5
Duc Hoan Nguyen
5 (2)
Get ALL my MT4 & MT5 indicators FREE — See how here New tools   will be   $30   for the   first week   or the   first 3 purchases !  Trading Tools Channel on MQL5 : Join my MQL5 channel to update the latest news from me The AI Channels Indicator utilizes rolling K-means clustering —a powerful machine learning technique in clustering analysis—to deliver real-time insights into underlying price trends. This indicator creates adaptive channels based on clustered price data, enabling traders to ma
FREE
Special offer : ALL TOOLS , just $35 each! New tools   will be   $30   for the   first week   or the   first 3 purchases !  Trading Tools Channel on MQL5 : Join my MQL5 channel to update the latest news from me Let's start with the outstanding features: The EA is equipped with a NEWS FILTER and an RSI FILTER. Low risk (some currency pairs have a DrawDown of <10%, even 5%). This EA does not use any martingale or grid functions. The EA can display visual zones for manual trading if desired. First
Get ALL my MT4 & MT5 indicators FREE — See how here Special offer : ALL TOOLS , just $35 each! New tools   will be   $30   for the   first week   or the   first 3 purchases !  Trading Tools Channel on MQL5 : Join my MQL5 channel to update the latest news from me The Trendlines with Breaks Scanner is a state-of-the-art trading tool designed to help traders identify critical trends and detect breakouts in real time. With automatically generated pivot-point-based trendlines, this indicator empowe
RSI Divergence MT5 Scanner
Duc Hoan Nguyen
3.33 (3)
Get ALL my MT4 & MT5 indicators FREE — See how here New tools   will be   $30   for the   first week   or the   first 3 purchases !  Trading Tools Channel on MQL5 : Join my MQL5 channel to update the latest news from me In the dynamic financial markets, identifying trend reversal signals is essential for effective trading. The RSI Divergence Scanner is designed to help you detect RSI divergence signals across various currency pairs and timeframes accurately and efficiently. See more MT4 versio
FREE
Get ALL my MT4 & MT5 indicators FREE — See how here Get this indicator and more for free here:   Convert indicator into a trading robot (no coding required)   Special offer :   ALL TOOLS , just   $35   each for a limited time ! New tools  will be  $30  for the  first week  or the  first 3 purchases ! Trading Tools Channel on MQL5: Join my MQL5 channel to receive the latest updates Multi-Timeframe & Multi-Symbol Guide:  Multi-Timeframe & Scanner User Guide - Available in 12 Languages See the MT
Get ALL my MT4 & MT5 indicators FREE — See how here Get this indicator and more for free here:   Convert indicator into a trading robot (no coding required)   Special offer :   ALL TOOLS , just   $35   each for a limited time ! New tools  will be  $30  for the  first week  or the  first 3 purchases ! Trading Tools Channel on MQL5: Join my MQL5 channel to receive the latest updates Multi-Timeframe & Multi-Symbol Guide:  Multi-Timeframe & Scanner User Guide - Available in 12 Languages See the MT
Get ALL my MT4 & MT5 indicators FREE — See how here New tools   will be   $30   for the   first week   or the   first 3 purchases !  Trading Tools Channel on MQL5 : Join my MQL5 channel to update the latest news from me Maximize your trading edge with Follow Line with Scanner, an advanced volatility-based indicator designed for serious traders. This tool combines the power of Bollinger Bands with customizable settings, offering precise insights into price movements. See more MT5 version at:  
FREE
AI Channels MT4
Duc Hoan Nguyen
5 (1)
Get ALL my MT4 & MT5 indicators FREE — See how here New tools   will be   $30   for the   first week   or the   first 3 purchases !  Trading Tools Channel on MQL5 : Join my MQL5 channel to update the latest news from me The AI Channels Indicator utilizes rolling K-means clustering —a powerful machine learning technique in clustering analysis—to deliver real-time insights into underlying price trends. This indicator creates adaptive channels based on clustered price data, enabling traders to ma
FREE
Get ALL my MT4 & MT5 indicators FREE — See how here New tools   will be   $30   for the   first week   or the   first 3 purchases !  Trading Tools Channel on MQL5 : Join my MQL5 channel to update the latest news from me Overview OA SnR Power is a powerful tool designed for traders to identify and assess the strength of support and resistance levels. By incorporating key factors such as trading volume, rebound frequency, and retest count, this indicator provides a comprehensive view of critica
FREE
Get ALL my MT4 & MT5 indicators FREE — See how here Special offer : ALL TOOLS , just $35 each! New tools   will be   $30   for the   first week   or the   first 3 purchases !  Trading Tools Channel on MQL5 : Join my MQL5 channel to update the latest news from me The Fibonacci Confluence Toolkit Multi-Timeframe is an advanced technical analysis tool designed for professional traders, helping to identify potential price reversal zones by combining key market signals and patterns. With multi-time
Get ALL my MT4 & MT5 indicators FREE — See how here Special offer : ALL TOOLS , just $35 each! New tools   will be   $30   for the   first week   or the   first 3 purchases !  Trading Tools Channel on MQL5 : Join my MQL5 channel to update the latest news from me The Fibonacci Confluence Toolkit Multi-Timeframe is an advanced technical analysis tool designed for professional traders, helping to identify potential price reversal zones by combining key market signals and patterns. With multi-time
Get ALL my MT4 & MT5 indicators FREE — See how here Special offer : ALL TOOLS , just $35 each! New tools   will be   $30   for the   first week   or the   first 3 purchases !  Trading Tools Channel on MQL5 : Join my MQL5 channel to update the latest news from me Supply Demand Retest and Break Multi Timeframe , this tool plots supply and demand zones based on strong momentum candles, allowing you to identify these zones across multiple timeframes using the   timeframe selector   feature. With r
Get ALL my MT4 & MT5 indicators FREE — See how here New tools   will be   $30   for the   first week   or the   first 3 purchases !  Trading Tools Channel on MQL5 : Join my MQL5 channel to update the latest news from me Custom Indicator Buffer Analyzer helps identify the buffer indexes and comparison values used by a Custom Indicator in MetaTrader 5. It is useful when you want to use an external indicator as a signal source for an EA but do not know: Which buffer contains the Buy signal. Which
FREE
SMC System MT4
Duc Hoan Nguyen
4.5 (2)
Get ALL my MT4 & MT5 indicators FREE — See how here Special offer : ALL TOOLS , just $35 each! New tools   will be   $30   for the   first week   or the   first 3 purchases !  Trading Tools Channel on MQL5 : Join my MQL5 channel to update the latest news from me SMC is a trading approach that helps traders identify liquidity zones, institutional order placements, and key market turning points. By leveraging SMC principles, traders can navigate the market more effectively, finding optimal entri
Get ALL my MT4 & MT5 indicators FREE — See how here Special offer : ALL TOOLS , just $35 each! New tools   will be   $30   for the   first week   or the   first 3 purchases !  Trading Tools Channel on MQL5 : Join my MQL5 channel to update the latest news from me SMC is a trading approach that helps traders identify liquidity zones, institutional order placements, and key market turning points. By leveraging SMC principles, traders can navigate the market more effectively, finding optimal entri
Get ALL my MT4 & MT5 indicators FREE — See how here Special offer : ALL TOOLS , just $35 each! New tools   will be   $30   for the   first week   or the   first 3 purchases !  Trading Tools Channel on MQL5 : Join my MQL5 channel to update the latest news from me Kalman Trend Levels is an advanced trend-following indicator that leverages cutting-edge Kalman filter technology to provide traders with powerful analytical signals. Designed for accuracy and adaptability, this tool not only identifie
Get ALL my MT4 & MT5 indicators FREE — See how here Special offer : ALL TOOLS , just $35 each! New tools   will be   $30   for the   first week   or the   first 3 purchases !  Trading Tools Channel on MQL5 : Join my MQL5 channel to update the latest news from me The Breakaway Fair Value Gaps (FVG) tool is a cutting-edge solution designed for traders to identify areas where price has broken away from balance, providing in-depth insights into mitigation probabilities. This tool not only highligh
Get ALL my MT4 & MT5 Robots & Indicators FREE — See how here EA User Guide — All 6 Parts Learn how the controls work, then use the reference configurations in Part 6 to build your own trading method. Part 1: Installation & Risk Controls Part 2: Trade Management — Grid & Hedging Part 3: Technical & News Filters Part 4: Control Panels & Backtesting Part 5: Messages & Troubleshooting Part 6: Reference Methods & Example Settings See the MT5 version: Zero Lag Trend Signals Robot MT5 See the MT4 vers
Get ALL my MT4 & MT5 indicators FREE — See how here Special offer : ALL TOOLS , just $35 each! New tools   will be   $30   for the   first week   or the   first 3 purchases !  Trading Tools Channel on MQL5 : Join my MQL5 channel to update the latest news from me Discover the power of AI with the SuperTrend AI Clustering with Scanner , a revolutionary trading tool for MetaTrader 4(MT4). This indicator redefines market analysis by combining K-means clustering with the widely popular SuperTrend i
Filter:
No reviews
Reply to review