Awesome Oscillator - AO | TR🎯 Overview
Awesome Oscillator - AO | TR is a sophisticated momentum indicator that measures market momentum by calculating the difference between two moving averages of different lengths. Developed by Tiagorocha1989, this enhanced version of Bill Williams' classic Awesome Oscillator offers dual-mode operation, extensive moving average customization, and comprehensive visual features to help traders identify momentum shifts, divergences, and potential trend reversals with greater precision.
🔧 How It Works
The Awesome Oscillator measures market momentum by comparing short-term and long-term price action, creating a histogram that oscillates above and below a zero line. When the short-term moving average is above the long-term moving average, the oscillator is positive (bullish), and when it's below, the oscillator is negative (bearish).
Core Calculation Logic:
The indicator calculates the difference between two moving averages applied to the same price source. The first moving average uses a shorter period (default 22) to capture recent price action, while the second uses a longer period (default 49) to establish the broader trend context.
The resulting value creates a histogram where:
Positive values (above zero or the signal line) indicate bullish momentum
Negative values (below zero or the signal line) indicate bearish momentum
The slope and direction of the oscillator reveal momentum acceleration or deceleration
In standard mode, signals are generated based on crossovers of the zero line. In AO MA mode, signals are based on crossovers between the oscillator and a smoothed moving average line, providing filtered entries.
✨ Key Features
🔹 Dual Operating Modes
Zero Line Mode: Classic Awesome Oscillator implementation where signals occur when the oscillator crosses above or below the zero line
AO MA Mode: Enhanced version where signals occur when the oscillator crosses a user-defined moving average, providing smoother, more filtered signals
🔹 Flexible Moving Average Selection
Choose from six MA types for both the oscillator calculation and the signal line:
EMA (Exponential Moving Average) for responsive signals
SMA (Simple Moving Average) for smoother readings
RMA (Rolling Moving Average) for weighted recent data
WMA (Weighted Moving Average) for customizable weighting
VWMA (Volume-Weighted Moving Average) incorporating volume
HMA (Hull Moving Average) for reduced lag
🔹 Dual Period Settings
First AO Length: Shorter period for the fast moving average (default 22)
Second AO Length: Longer period for the slow moving average (default 49)
🔹 Customizable Color Themes
Eight distinct color schemes to match your charting preferences:
Classic – Green for bullish, Red for bearish
Modern – White for bullish, Purple for bearish
Robust – Amber for bullish, Maroon for bearish
Accented – Violet for bullish, Pink for bearish
Monochrome – Light gray for bullish, Dark gray for bearish
Moderate – Green for bullish, Red for bearish
Aqua – Blue for bullish, Orange for bearish
Cosmic – Pink for bullish, Purple for bearish
🔹 Comprehensive Visual Feedback
Dual Visualization Modes: Line style or column histogram based on user preference
Gradient Fill Zones: Clear visualization of overbought and oversold conditions
Color-Coded Candles: Bars reflect current momentum direction
Signal Markers: Triangle up/down symbols at crossover points
Live Value Display: Current AO value shown in a floating label
Trend Table: Bullish/Bearish status displayed on the chart
🔹 Ready-to-Use Alerts
Built-in alert conditions trigger LONG signals on bullish crossovers and SHORT signals on bearish crossunders across both operating modes.
⚙️ Settings Summary
Color Choice: Select from eight visual themes (Default: Classic)
AO Display: Toggle between line style or column histogram (Default: Line)
First AO Length: Short-term moving average period (Default: 22)
Second AO Length: Long-term moving average period (Default: 49)
AO Source: Price source for calculations (Default: Close)
AO Moving Average Type: MA method for oscillator calculation (Default: EMA)
Entry/Exit Signal: Choose between zero line or AO MA mode (Default: AO MA)
Length AO MA: Signal line moving average period (Default: 730)
AO MA Type: Moving average method for signal line (Default: EMA)
📈 Practical Applications
🔹 Momentum Shift Detection
The primary use of the Awesome Oscillator is identifying when momentum is changing. When the histogram crosses from negative to positive, it suggests bullish momentum is building. Crosses from positive to negative indicate bearish momentum is emerging.
🔹 Divergence Trading
One of the most powerful applications is spotting divergences between price and the oscillator:
Bullish Divergence: Price makes a lower low while AO makes a higher low, suggesting upcoming upside reversal
Bearish Divergence: Price makes a higher high while AO makes a lower high, warning of potential downside reversal
🔹 Zero Line Crossovers
In Zero Line mode, crossovers provide clear entry signals:
Crossover above zero → LONG signal
Crossunder below zero → SHORT signal
🔹 Signal Line Crossovers
In AO MA mode, crossovers between the oscillator and its moving average provide filtered signals that reduce whipsaws in choppy markets.
🔹 Twin Peaks Strategy
Look for two consecutive peaks in the same direction:
Bullish Twin Peaks: Two lows below zero, with the second low higher than the first, followed by a crossover above the signal line
Bearish Twin Peaks: Two highs above zero, with the second high lower than the first, followed by a crossunder below the signal line
🔹 Saucer Pattern
When the histogram changes from red to green (or vice versa) with a smooth, rounded shape, it suggests a gradual momentum shift that often leads to sustainable moves.
🎯 Ideal For
✅ Momentum Traders seeking to identify when momentum is accelerating or decelerating
✅ Divergence Traders looking for hidden reversal signals before they appear on price
✅ Swing Traders wanting to capture medium-term momentum shifts
✅ System Developers needing reliable crossover logic for automated strategies
✅ Multi-Timeframe Analysts comparing momentum across different periods
📌 Key Takeaways
Dual-Mode Flexibility: Choose between classic zero-line crossovers for maximum sensitivity or MA-smoothed signals for cleaner entries
Customizable Calculation: Six MA types for both oscillator and signal line allow fine-tuning for any market condition
Comprehensive Visualization: Color themes, gradient fills, candles, and labels provide immediate momentum awareness
Divergence Capability: Excellent for spotting both regular and hidden divergences that signal trend reversals or continuations
Alert-Ready: Built-in alerts for both LONG and SHORT signals across both operating modes
⚠️ Important Notes
The Awesome Oscillator works best in trending markets and can produce false signals in ranging conditions. Consider combining with trend filters or using the AO MA mode for smoother signals in choppy markets. The 730-day MA default in AO MA mode is designed for longer-term trend context on daily charts. Always combine with proper risk management and additional confirmation for best results.
Disclaimer: This indicator is provided for educational and informational purposes only. Past performance is not indicative of future results. Always conduct thorough testing and align with your risk management strategy before live deployment.
Indikator Pine Script®






















