OPEN-SOURCE SCRIPT
PAC INDEX

This indicator plots a Price Action Channel (PAC) using a Smoothed Moving Average (SMMA) of highs and lows, and overlays these bands directly on the main chart. It uses standard Heiken Ashi calculations (not the built-in function) to highlight price structure with an emphasis on trend exhaustion and volatility.
Features
Plots PAC High and PAC Low –
Customizable channel boundaries using SMMA smoothing (user sets lookback length).
Heiken Ashi Calculation (manual):
Heiken Ashi open, close, high, and low are computed per-bar for deeper trend insight.
Visual Channel Fill:
The space between PAC High and Low is filled for instant trend identification.
Condition Markers:
Dots appear above bars when the Heiken Ashi close exceeds the PAC High (potential overextension or momentum).
Dots appear below bars when the Heiken Ashi close falls below the PAC Low (potential exhaustion or reversal).
Configurable:
User can adjust the smoothing length to fit different trading styles or market volatility.
⸻
How To Use
Notes
Features
Plots PAC High and PAC Low –
Customizable channel boundaries using SMMA smoothing (user sets lookback length).
Heiken Ashi Calculation (manual):
Heiken Ashi open, close, high, and low are computed per-bar for deeper trend insight.
Visual Channel Fill:
The space between PAC High and Low is filled for instant trend identification.
Condition Markers:
Dots appear above bars when the Heiken Ashi close exceeds the PAC High (potential overextension or momentum).
Dots appear below bars when the Heiken Ashi close falls below the PAC Low (potential exhaustion or reversal).
Configurable:
User can adjust the smoothing length to fit different trading styles or market volatility.
⸻
How To Use
- Add to any chart and timeframe (works on all symbols).
- Watch the channel:
- When Heiken Ashi closes break above the PAC High, price may be in a strong trend or overbought zone.
- When Heiken Ashi closes break below the PAC Low, price may be in an exhaustion or potential reversal zone.
- Adjust the “Length” parameter for tighter (shorter) or wider (longer) channels depending on your strategy.
- Use as a filter for trade entries/exits or to confirm momentum and exhaustion within your price action framework
Notes
- All calculations are performed directly in the script for transparency and customization.
- This indicator is not a buy/sell signal system—interpret breakouts and channel extremes within your own trade plan.
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.