OPEN-SOURCE SCRIPT
AO Divergence RCT PRO

//description=This indicator, AO Divergence Pro, is a powerful tool designed to automatically identify and plot both classic and hidden divergences on the Awesome Oscillator (AO). Divergences occur when the price action and the oscillator move in opposite directions, often signaling a potential shift in market momentum.
//
// --- Key Features ---
// 1. Regular (Classic) Divergence Detection: This feature identifies potential trend reversals.
// - A **Bullish Regular Divergence** (labeled 'R') is found when the price makes a lower low, but the AO makes a higher low. This suggests that downward momentum is weakening and a reversal to the upside may be imminent.
// - A **Bearish Regular Divergence** (labeled 'R') is found when the price makes a higher high, but the AO makes a lower high. This suggests that upward momentum is fading and a reversal to the downside may be coming.
//
// 2. Hidden Divergence Detection: This feature identifies potential trend continuations.
// - A **Bullish Hidden Divergence** (labeled 'H') is found when the price makes a higher low, but the AO makes a lower low. This often occurs during a pullback in an uptrend, suggesting the trend is likely to resume.
// - A **Bearish Hidden Divergence** (labeled 'H') is found when the price makes a lower high, but the AO makes a higher high. This often occurs during a rally in a downtrend, suggesting the downtrend is likely to continue.
//
// 3. Full Customization: The indicator allows you to toggle the display of each type of divergence (Bullish/Bearish, Regular/Hidden) independently. You can also adjust the pivot detection sensitivity and the time range between divergences to filter signals according to your trading style.
//
// --- How to Use ---
// 1. **Identify Reversals:** Look for the 'R' labels on the chart. A bullish 'R' in a downtrend is a strong signal to consider a long position. A bearish 'R' in an uptrend is a signal to consider a short position.
// 2. **Confirm Continuations:** Look for the 'H' labels. A bullish 'H' during an uptrend pullback can be a good opportunity to add to your position. A bearish 'H' during a downtrend rally can be a signal to enter a short trade.
// 3. **Filter Signals:** Use the settings panel to control the number of signals. For example, increasing the "Min Bars Between" will show fewer, but potentially more reliable, divergences.
//
// --- Attribution ---
// Created by Carlos Mauricio Vizcarra.
//
// --- Disclaimer ---
// This script is for informational and educational purposes only. It is not financial advice. Past performance is not indicative of future results.
//
// --- Key Features ---
// 1. Regular (Classic) Divergence Detection: This feature identifies potential trend reversals.
// - A **Bullish Regular Divergence** (labeled 'R') is found when the price makes a lower low, but the AO makes a higher low. This suggests that downward momentum is weakening and a reversal to the upside may be imminent.
// - A **Bearish Regular Divergence** (labeled 'R') is found when the price makes a higher high, but the AO makes a lower high. This suggests that upward momentum is fading and a reversal to the downside may be coming.
//
// 2. Hidden Divergence Detection: This feature identifies potential trend continuations.
// - A **Bullish Hidden Divergence** (labeled 'H') is found when the price makes a higher low, but the AO makes a lower low. This often occurs during a pullback in an uptrend, suggesting the trend is likely to resume.
// - A **Bearish Hidden Divergence** (labeled 'H') is found when the price makes a lower high, but the AO makes a higher high. This often occurs during a rally in a downtrend, suggesting the downtrend is likely to continue.
//
// 3. Full Customization: The indicator allows you to toggle the display of each type of divergence (Bullish/Bearish, Regular/Hidden) independently. You can also adjust the pivot detection sensitivity and the time range between divergences to filter signals according to your trading style.
//
// --- How to Use ---
// 1. **Identify Reversals:** Look for the 'R' labels on the chart. A bullish 'R' in a downtrend is a strong signal to consider a long position. A bearish 'R' in an uptrend is a signal to consider a short position.
// 2. **Confirm Continuations:** Look for the 'H' labels. A bullish 'H' during an uptrend pullback can be a good opportunity to add to your position. A bearish 'H' during a downtrend rally can be a signal to enter a short trade.
// 3. **Filter Signals:** Use the settings panel to control the number of signals. For example, increasing the "Min Bars Between" will show fewer, but potentially more reliable, divergences.
//
// --- Attribution ---
// Created by Carlos Mauricio Vizcarra.
//
// --- Disclaimer ---
// This script is for informational and educational purposes only. It is not financial advice. Past performance is not indicative of future results.
Script open-source
Dans l'esprit de TradingView, le créateur de ce script l'a rendu open-source, afin que les traders puissent examiner et vérifier sa fonctionnalité. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit de TradingView, le créateur de ce script l'a rendu open-source, afin que les traders puissent examiner et vérifier sa fonctionnalité. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.