Hour-Stats

The figures from this indicator are drawn from fifteen years of historical price action. Although we strive for accuracy, errors may occur—these figures shouldn’t be the sole basis for any trading decision. Past performance is not indicative of future results. Trade at your own risk.
Trade at Your Own Risk: This indicator is provided for educational and informational purposes only. It does not constitute financial advice. Always do your own analysis and manage your risk appropriately when trading.
Based on NQStats Hour Stats. Find more information here: https://nqstats.com/hour-stats
The Hour-Stats indicator provides a comprehensive, at-a-glance view of key hourly price levels and sweep-based statistics directly on your chart. It’s designed to help you:
Divide the session into 20-minute buckets with vertical lines and mark each bucket’s center.
Track the current hour’s range (high/low) in real time.
Display the previous hour’s high (PHH), mid (PHM), low (PHL), and the current hour’s open as horizontal lines and labels at the top of the next hour.
Overlay “formation percentages” for each 20-minute bucket—showing how often price in past history fell into each low-, mid-, or high-bucket for that hour.
Detect the first “sweep” of the prior hour’s high or low, then annotate the open-return, mid-return, and opposite-side return percentages (“sweep-stats”) a few bars after the hour.
Key Inputs
Vertical Line Color/Style/Width: Customize the bucket dividers.
Prev Hour High/Mid/Low/Open Colors & Styles: Tune the horizontal lines and labels.
Formation Label Colors & Sizes: Adjust the percentage callouts.
Sweep-Stat Text Color/Size & Offset: Control where and how the sweep statistics are plotted.
How to Use
Load the script on an intraday chart (minutes-based).
Watch the 20-minute buckets form within each hour—ideal for monitoring early vs. late-hour behavior.
Observe the PHH/PHM/PHL/Open markers at the top of each hour to gauge the prior hour’s range and current opening level.
Note the sweep-stats when price first breaks the prior hour’s boundary—use these percentages to inform your entries, exits, or risk management.
This is based on 15 years of price action. These stats may be wrong and shouldn't be relied on for your trade decisions. Use at your own risk.
Script su invito
Solo gli utenti autorizzati dall'autore hanno accesso a questo script e ciò richiede solitamente un pagamento. Puoi aggiungere lo script ai tuoi preferiti, ma potrai utilizzarlo solo dopo aver richiesto l'autorizzazione e averla ottenuta dal suo autore - per saperne di più leggi qui. Per maggiori dettagli, segui le istruzioni dell'autore qui sotto o contatta direttamente jheick4094.
TradingView NON consiglia di pagare o utilizzare uno script a meno che non ci si fidi pienamente del suo autore e non si comprenda il suo funzionamento. Puoi anche trovare alternative gratuite e open-source nei nostri script della comunità.
Istruzioni dell'autore
Attenzione: prima di richiedere l'accesso, leggi la nostra guida per gli script su invito.
Declinazione di responsabilità
Script su invito
Solo gli utenti autorizzati dall'autore hanno accesso a questo script e ciò richiede solitamente un pagamento. Puoi aggiungere lo script ai tuoi preferiti, ma potrai utilizzarlo solo dopo aver richiesto l'autorizzazione e averla ottenuta dal suo autore - per saperne di più leggi qui. Per maggiori dettagli, segui le istruzioni dell'autore qui sotto o contatta direttamente jheick4094.
TradingView NON consiglia di pagare o utilizzare uno script a meno che non ci si fidi pienamente del suo autore e non si comprenda il suo funzionamento. Puoi anche trovare alternative gratuite e open-source nei nostri script della comunità.
Istruzioni dell'autore
Attenzione: prima di richiedere l'accesso, leggi la nostra guida per gli script su invito.