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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.