OPEN-SOURCE SCRIPT
20-Day & 60-Day Disparity Index (Base 100%)

**Disparity Index with 100% Baseline for 20-day & 60-day Moving Averages**
This indicator shows how far the current price is from its 20-day and 60-day simple moving averages, expressed as a percentage with 100% as the baseline. It helps traders visually identify overbought or oversold conditions relative to key moving averages.
How to Use:
- A value above 100% means the price is above the moving average.
- A value below 100% means the price is below the moving average.
- For example, 105% means the price is 5% above the moving average.
- Common buy zone: when the disparity drops below 95% (price is 5% or more below the MA).
- Use in combination with RSI, volume, or candlestick patterns for confirmation.
Settings:
- Uses 20-day and 60-day **Simple Moving Averages (SMA)**.
- You can edit the script to change these periods or switch to EMA if desired.
Useful for swing traders, mean-reversion strategies, or identifying stretched price conditions.
Created by ChartJay
This indicator shows how far the current price is from its 20-day and 60-day simple moving averages, expressed as a percentage with 100% as the baseline. It helps traders visually identify overbought or oversold conditions relative to key moving averages.
How to Use:
- A value above 100% means the price is above the moving average.
- A value below 100% means the price is below the moving average.
- For example, 105% means the price is 5% above the moving average.
- Common buy zone: when the disparity drops below 95% (price is 5% or more below the MA).
- Use in combination with RSI, volume, or candlestick patterns for confirmation.
Settings:
- Uses 20-day and 60-day **Simple Moving Averages (SMA)**.
- You can edit the script to change these periods or switch to EMA if desired.
Useful for swing traders, mean-reversion strategies, or identifying stretched price conditions.
Created by ChartJay
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.