OPEN-SOURCE SCRIPT

Divergence

Understanding the Divergence Indicator

This indicator is designed to identify and analyze divergences between price action and multiple technical indicators across different timeframes. Divergence occurs when the price of an asset moves in one direction while a technical indicator moves in the opposite direction, potentially signaling a trend reversal or continuation.

Key Features

1. Customizable Parameters: Users can adjust settings for divergence detection, including:
- Bullish/Bearish divergence detection
- Regular/Hidden divergence identification
- Pivot lookback periods
- Weighting for different divergence types

2. Strength Calculation: The indicator calculates divergence strength based on the magnitude of divergence and user-defined weightings.

3. Visual Representation: Divergences are displayed on the chart with lines connecting price and indicator pivots, along with labels showing divergence strength.

Utility in Trading

1. Early Trend Reversal Signals: By identifying divergences, traders can anticipate potential trend reversals before they occur in price action.

2. Trend Continuation Confirmation: Hidden divergences can help confirm the continuation of an existing trend.

3. Multi-Timeframe Analysis: The indicator allows for divergence detection across various timeframes, enhancing the reliability of signals.

4. Risk Management: Traders can use divergence signals to adjust their stop-loss levels or take profits on existing positions.

5. Comprehensive Market View: By analyzing multiple indicators simultaneously, traders gain a more robust assessment of market conditions.

6. Objective Strength Evaluation: The divergence strength calculation provides an objective measure of signal significance.

By incorporating this divergence indicator into their trading strategy, traders can potentially improve their market timing, risk management, and overall trading performance.
Moving AveragesmultitimeframeTrend Analysis

Script de código aberto

No verdadeiro espírito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam compreendê-lo e analisá-lo. Parabéns ao autor! Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.

Quer usar esse script no gráfico?

Aviso legal