Strategy Myth-Busting #12 - OSGFC+SuperTrend
Feb 6, 2023

The Strategy Myth-Busting #12 - OSGFC+SuperTrend indicator is an automated trading tool that combines trend detection with advanced mathematical noise reduction. It aims to provide a cleaner representation of market trends by filtering out short-term price fluctuations to generate more reliable signals.
Usage
The Usage section describes how the script can be used for both manual analysis and automated backtesting. The indicator integrates two distinct systems: SuperTrend for directional bias and the One-Sided Gaussian Filter with Channels (OSGFC) for entry and exit timing.
Traders typically look for confluence between the two systems:
- Long Entries: Occur when both the SuperTrend and the OSGFC generate bullish signals.
- Short Entries: Occur when both the SuperTrend and the OSGFC generate bearish signals.
- Exits: Positions are typically closed when the Gaussian filter reverses its signal, regardless of the SuperTrend status.
The tool includes comprehensive backtesting features such as date range filtering, take-profit levels, and stop-loss settings based on percentages.
Details
The script functions by applying a Gaussian mathematical filter to the input data before it is processed. This smoothed data serves as the foundation for the SuperTrend calculation, reducing the "noise" that often leads to whipsaws in volatile markets.
Key components include:
- SuperTrend: A moving average-based indicator that compares current price action to volatility-adjusted levels to define the prevailing trend.
- One-Sided Gaussian Filter: A smoothing algorithm that removes random fluctuations from financial data, making it easier to identify high-probability patterns.
- Smoothing Options: The script supports multiple smoothing types, including Kaufman (KAMA), Adaptive Moving Average (AMA), and T3, allowing for deep customization of how price data is treated.
Settings
One-Sided Gaussian Filter w/ Channels
- Heiken-Ashi Smoothing: Choose between AMA, T3, or Kaufman smoothing methods.
- Source: Select the price input (Close, HL2, Heikin-Ashi, etc.).
- Gaussian Levels Depth: Controls the period of the Gaussian filter.
- Extra Smoothing: Period for a 2-Pole Ehlers Super Smoother to further refine the output.
- ATR Period/Multiplier: Adjusts the width of the channels surrounding the Gaussian filter.
SuperTrend
- ATR Length: The period used for volatility calculation in the SuperTrend.
- Factor: The multiplier applied to the ATR to set the trend threshold.
- Lookback Bars: Number of bars required to validate a trend change.
Trade Management
- Take Profit/Stop Loss: Customizable percentage-based targets and exit levels.
- Trade Direction: Option to filter for Long Only, Short Only, or both.
FAQ
How do I access Strategy Myth-Busting #12 - OSGFC+SuperTrend?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
What timeframes are best for this strategy?
While it can be used on any timeframe, it was originally designed and tested for 15-minute charts on Forex and Crypto pairs.
Can I use this for automated trading?
Yes, the script is written as a "strategy" in Pine Script, allowing for automated backtesting and alert-based execution through compatible bridges.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.