OPEN-SOURCE SCRIPT
Power Earnings Gap (PEG) & HVE

Power Earnings Gap (PEG) & HVE is a momentum and earnings-reaction indicator designed to identify stocks with powerful post-earnings gaps and unusually high-volume events.
The PEG module looks for earnings-related gap-ups that meet multiple quality filters: minimum gap percentage, high relative volume, price above the 200-day moving average, and strong close location within the day’s range.
The indicator also tracks whether the most recent earnings event qualified as a PEG and whether that event remains active within a user-defined lookback period. A small table shows the most recent PEG value and volume spike giving an indication of the momentum generated by the PEG.
The HVE/HVY module identifies major volume events:
- HVE: Highest Volume Ever
- HVY: Highest Volume in a Year
This can help traders quickly spot stocks with institutional-style volume, earnings momentum, and recent high-impact price/volume behavior.
Alerts are included for:
All fields that drive the outcome are configurable.
Add this indicator to favorites. Then you can use pine-screener against watchlists.
Disclaimer: This tool is intended for scanning, watchlist building, and identifying stocks that may deserve further research. This indicator is for educational and research purposes only. It is not financial advice. Always perform your own analysis and risk management before making trading decisions.
The PEG module looks for earnings-related gap-ups that meet multiple quality filters: minimum gap percentage, high relative volume, price above the 200-day moving average, and strong close location within the day’s range.
The indicator also tracks whether the most recent earnings event qualified as a PEG and whether that event remains active within a user-defined lookback period. A small table shows the most recent PEG value and volume spike giving an indication of the momentum generated by the PEG.
The HVE/HVY module identifies major volume events:
- HVE: Highest Volume Ever
- HVY: Highest Volume in a Year
This can help traders quickly spot stocks with institutional-style volume, earnings momentum, and recent high-impact price/volume behavior.
Alerts are included for:
- New PEG detected
- Qualified PEG active
- HVE within lookback
- HVY within lookback
All fields that drive the outcome are configurable.
Add this indicator to favorites. Then you can use pine-screener against watchlists.
Disclaimer: This tool is intended for scanning, watchlist building, and identifying stocks that may deserve further research. This indicator is for educational and research purposes only. It is not financial advice. Always perform your own analysis and risk management before making trading decisions.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。