OPEN-SOURCE SCRIPT

Awesome Oscillator + ADX Divergence System – RCT FUSION PRO

127
Descripción del script:
This script enhances the classic Awesome Oscillator (AO) by integrating non-repainting divergence detection and scaled ADX/DMI trend confirmation, creating a unified framework for identifying high-confluence trade setups. The combination is not arbitrary: divergences in AO signal potential reversals, while ADX validates whether the market has sufficient trend strength to act on them.

1. Customizable Awesome Oscillator:
The AO is calculated as the difference between a fast and slow moving average of the median price (HL2). Users can choose between SMA (default) or EMA for both legs. The histogram changes color based on momentum acceleration (green when rising, red when falling), with built-in alerts for color transitions.

2. Divergence Engine (Non-Repainting):
Automatically detects regular and hidden bullish/bearish divergences between price and the AO:

Regular bullish: Price makes a lower low, AO makes a higher low (potential reversal up).
Hidden bullish: Price makes a higher low, AO makes a lower low (continuation signal).
Equivalent logic applies for bearish cases.
All lines and labels are drawn only after the candle closes, eliminating repainting. Users can toggle visibility, adjust pivot sensitivity (lookback range: 1–60 bars), and choose between 1- or 2-pivot confirmation.
3. Scaled ADX & DMI Overlay:
The standard ADX (14-period) and +DI/-DI lines are dynamically scaled to match the amplitude of the AO. This allows direct visual comparison:

When AO shows a bullish divergence and +DI > -DI and ADX > 23, the setup gains confluence.
The Key Level line (offset to -7) serves as a dynamic reference for ADX strength relative to AO momentum.
ADX, DM+, and DM- can be toggled independently.
How to use:

Look for divergence signals below zero (bullish) or above zero (bearish) in the AO.
Confirm with ADX > 23 (strong trend) and directional alignment (+DI > -DI for longs, vice versa for shorts).
Use color-change alerts in AO as secondary momentum triggers.
This system is designed for swing and intraday traders who seek confirmation across momentum, price structure, and trend strength—reducing false signals through convergence.

Versión en español :

Este script mejora el Oscilador Awesome (AO) clásico al integrar detección de divergencias sin repintado y confirmación de tendencia mediante ADX/DMI escalado, creando un marco unificado para identificar entradas con alta confluencia. La combinación no es arbitraria: las divergencias en el AO señalan posibles giros, mientras que el ADX valida si el mercado tiene fuerza de tendencia suficiente para actuar.

El AO personalizable permite elegir entre SMA o EMA.
Las divergencias (regulares y ocultas) se detectan solo tras el cierre de la vela.
El ADX y los DM+/- se escalan dinámicamente para alinearse visualmente con el AO, permitiendo evaluar confluencia en tiempo real.
Ideal para traders que buscan confirmación entre estructura de precio, momentum y fuerza de tendencia.

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน