All indicators

Strategy Myth-Busting #3 - BB_BUY+SuperTrend

Aug 29, 2022

Static chart image
SignalsDashboardMoney ManagementMoving AveragesVolatility

The Strategy Myth-Busting #3 - BB_BUY+SuperTrend indicator is a trend-following automation tool designed to validate and execute a strategy combining Bollinger Bands, the Awesome Oscillator, and the SuperTrend indicator. It aims to identify high-probability entries by aligning volatility-based signals with directional trend confirmation.

Usage

The indicator generates long and short entry signals based on the confluence of two primary systems. A long signal occurs when a fast EMA crosses above the Bollinger Band basis while the Awesome Oscillator shows bullish momentum and the SuperTrend is green. Conversely, a short signal is triggered when the EMA crosses below the basis with bearish momentum and a red SuperTrend.

Traders can use this tool to automate backtesting or live execution. The Usage of the strategy is enhanced by an optional ADX filter, which ensures trades are only taken during periods of sufficient trend strength.

Details

This script integrates several technical concepts:

  • BB_BUY Logic: Utilizes a Bollinger Band basis (SMA or EMA) and a fast EMA crossover system to detect price breakouts and mean reversion.
  • Awesome Oscillator (AO): Used as a momentum filter to confirm the strength of the move at the time of the crossover.
  • SuperTrend: Acts as a primary trend filter, ensuring the strategy only trades in the direction of the macro trend.
  • Risk Management: Includes built-in settings for multiple Take Profit (TP) targets and a percentage-based Stop Loss (SL).

Settings

Bollinger Bands

  • Use EMA for Bollinger Band: Toggles between SMA and EMA for the Bollinger Band basis calculation.
  • Bollinger Length: Sets the lookback period for the Bollinger Bands.
  • Bollinger Source: Determines the price source (default is close).
  • Base Multiplier: Adjusts the standard deviation multiplier for the bands.

EMA & Awesome Oscillator

  • Fast EMA length: Sets the length for the signal EMA.
  • Awesome Length Slow/Fast: Controls the lookback periods for the Awesome Oscillator calculation.

Supertrend & ADX

  • ATR Length: The lookback period for the SuperTrend ATR calculation.
  • Factor: The multiplier for the SuperTrend calculation.
  • Average Directional Index (ADX): Enables or disables the ADX trend strength filter.
  • ADX Threshold: The minimum ADX value required to authorize a trade.

Trade Management

  • Trade Direction: Filters for Long Only, Short Only, or both.
  • Take Profit Targets: Allows setting up to four distinct take-profit percentages and their respective position sizes.
  • Stop Loss (%): Sets the hard stop loss percentage from the entry price.

FAQ

How do I use the ADX filter?

You can enable the ADX filter in the settings and set the threshold (e.g., 25). The strategy will then only enter trades when the ADX is above this value, indicating a strong trend is present.

Can I change the exit logic?

Yes, the script provides four separate Take Profit targets and a Stop Loss setting in the inputs menu to customize your risk-to-reward ratio.

How can I access Strategy Myth-Busting #3 - BB_BUY+SuperTrend?

You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

Free indicator

Get free access to this indicator on the platforms below.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.