
A Pine Script indicator that tracks and analyzes consecutive winning and losing streaks in financial data, providing insights into trend persistence and market behavior.
Explore complementary indicator rolesHow it works
The indicator calculates winning and losing streaks by comparing consecutive closing prices and tracking their sequential performance. It identifies continuous price movements where the closing price is higher or lower than the previous day, excluding minimal price change scenarios like Doji candles.
By maintaining arrays of historical streak data, the system computes maximum and average streak lengths. The indicator generates visual representations through histograms, enabling traders to understand the length and frequency of consecutive winning and losing periods in their trading instrument.
Why it may be useful
Streak analysis provides critical insights into market dynamics and trading psychology by revealing patterns of price movement persistence. It helps traders understand autocorrelation in financial time series, where past returns potentially influence future price movements, offering a statistical approach to trend evaluation.
By objectively analyzing streak patterns, traders can develop more robust risk management strategies and avoid behavioral biases like the 'hot-hand fallacy'. The indicator supports more informed decision-making by quantifying trend continuity and helping traders recognize potential strategy weaknesses or market regime changes.
When to explore it
The streak tracking indicator is most effective in markets with clear trending characteristics, such as stocks, commodities, or forex pairs exhibiting consistent directional movements. It performs best in timeframes that allow sufficient data points to generate meaningful statistical insights, typically daily or hourly charts.
Traders should utilize this indicator when evaluating strategy performance, assessing market momentum, and developing risk management protocols. It is particularly useful during periods of market transitions, helping identify potential trend reversals or continuations based on historical streak patterns.
Keep exploring
What we’ve verified
Access, alerts and repainting behaviour have not been independently verified for this indicator. Check the creator’s current publication and settings.
General descriptions and classifications are recovered research. Verified details above identify the specific checks we have completed. Check the creator’s current publication for later changes.

![Goertzel Browser [Loxx] chart preview](/_next/image?url=%2Fmedia%2F29045.png&w=3840&q=90&dpl=dpl_Jt27hmzh6tNsGuJ13vyBBWgv8XSW)




![Volume Delta Imbalance Index [PhenLabs] chart preview](https://s3.tradingview.com/o/OLThVX4r.png?v=1739900428)