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.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.