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.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.