OPEN-SOURCE SCRIPT
Telah dikemas kini Awesome Oscillator with Divergence

Simple Awesome Oscillator with Divergences
This TradingView script combines the classic Awesome Oscillator (AO) with divergence detection. It plots AO as a histogram, highlighting changes in momentum. Divergences are identified based on pivot highs and lows, signaling potential trend reversals:
- Bullish Divergence: Price makes lower lows, AO makes higher lows.
- Bearish Divergence: Price makes higher highs, AO makes lower highs.
Visual signals (arrows) and alerts ensure clear identification, making it ideal for traders focusing on momentum and trend reversals.
This TradingView script combines the classic Awesome Oscillator (AO) with divergence detection. It plots AO as a histogram, highlighting changes in momentum. Divergences are identified based on pivot highs and lows, signaling potential trend reversals:
- Bullish Divergence: Price makes lower lows, AO makes higher lows.
- Bearish Divergence: Price makes higher highs, AO makes lower highs.
Visual signals (arrows) and alerts ensure clear identification, making it ideal for traders focusing on momentum and trend reversals.
Nota Keluaran
Now the indicator has:Customizable inputs for:
- AO periods (Fast/Slow)
- Choice between Ema and SMA for the calculation of the AO
- Lookback for pivot (right/left)
- Minimum range/maximum for divergence
- Activation/deactivation of any type of divergence (regular/hidden, bullish/bearyish)
- Hidden divergences (Hidden Bullish and Hidden Bearish) with label and dedicated colors
- Alert Condition for each type of divergence
How to use new inputs
- You can choose whether to use Ema (faster) or SMA (slower) for the AO.
- You can activate/deactivate the display of any type of divergence.
- You can adjust the lookback and range parameters directly from the input panel of the indicator.
What changes compared to before
The indicator is now much more flexible and powerful, identical as logic to that "for ideas", but with modern syntax and the possibility to choose between SMA/Ema.
You can adapt the sensitivity and type of signals according to your operational preferences.
Nota Keluaran
Update: The indicator has been downgraded to version 5 because with TradingView's display.pane feature the indicator is inaccurate and was missing important divergences.Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.