All indicators

Divergence for Many Indicators v4 ST

Jan 11, 2022

Static chart image
Volume BasedSignalsOscillatorsDivergencesPatternsPivot Based (Retrospective)

The Divergence for Many Indicators v4 ST tool identifies regular and hidden divergences across up to 11 different technical oscillators simultaneously to find potential trend reversals or continuations. This strategy-enabled version incorporates automated backtesting capabilities, including customizable stop loss and take profit parameters, to evaluate divergence-based trading systems.

Usage

The indicator can be used to spot high-probability reversal zones by looking for "confluence"—where multiple indicators (such as RSI, MACD, and Stochastic) all show divergence at the same price point.

  • Regular Divergence: Used to identify potential trend reversals. For example, if price makes a lower low but the oscillator makes a higher low, a bullish regular divergence is signaled.
  • Hidden Divergence: Used to identify potential trend continuations. For example, if price makes a higher low but the oscillator makes a lower low, a bullish hidden divergence is signaled.
  • Minimum Divergence Filter: Use the "Minimum Number of Divergence" setting to filter out noise; setting this to a higher value (e.g., 3) ensures that signals only appear when three or more indicators agree.
  • Strategy Execution: The strategy enters a long position on bullish divergence and a short position on bearish divergence. It is designed to stay in the trade until an opposite signal occurs or the Stop Loss/Take Profit percentages are hit.

Details

The script functions by identifying pivot points over a user-defined period. It then compares these price pivots to the corresponding values in the selected oscillators (MACD, RSI, Stochastic, CCI, Momentum, OBV, VWmacd, CMF, and MFI).

Key implementation details:

  • Non-Repainting: Signals are confirmed based on the "Pivot Period" and do not change once the bar has closed, ensuring backtest reliability.
  • Slope Validation: The algorithm checks the "slope" between pivots to ensure no intermediate price action has invalidated the divergence.
  • Confirmation: By default, the script waits for one bar of confirmation, though this can be disabled for faster (but riskier) entries.

Settings

General Settings

  • Pivot Period: The number of bars used to identify a local high or low (Pivot Point).
  • Source for Pivot Points: Choose between "Close" or "High/Low" for calculating price pivots.
  • Divergence Type: Choose to display Regular, Hidden, or both types of divergences.
  • Minimum Number of Divergence: The threshold of concurrent indicator divergences required to trigger a signal.

Indicators to Check

  • MACD/RSI/Stochastic/etc.: Toggle buttons to include or exclude specific indicators from the divergence calculations.
  • Check External Indicator: Allows you to link the script to a completely different indicator on your chart for divergence analysis.

Strategy & Visuals

  • Stop Loss %: Sets the percentage-based exit for losing trades.
  • Take Profit %: Sets the percentage-based target for winning trades.
  • Show Divergence Lines: Draws lines on the chart connecting the price and indicator pivots.

FAQ

How do I use the external indicator feature?

In the settings, enable "Check External Indicator" and use the "External Indicator" source dropdown to select the output plot of another indicator you have loaded on your workspace.

Why don't I see signals on every pivot?

The script filters signals based on the "Maximum Bars to Check" and the "Minimum Number of Divergence" settings. If those criteria are not met, or if a price movement has broken the divergence slope, no signal will appear.

How can I access Divergence for Many Indicators v4 ST?

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.