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.
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。