Seasonality Window Analyzer PROSeasonality Window Analyzer measures how any asset has historically performed during a specific calendar window — defined by a start date and end date (day/month) — across every year of available history.
Set your seasonal window once and the indicator automatically scans all historical data, isolating each year's price action within that exact period and recording the return from open to close of the window, the maximum intra-period rise, and the maximum intra-period drawdown.
The results table lists every year individually with full color-coding, paginated for readability across long histories, with a persistent statistics panel always visible showing: Average Return, Median, Win Rate, Cumulative Return, Average Rise, Average Drop, Best Year, Worst Year, Sharpe Ratio, and Sortino Ratio.
Controls:
— Start/End Day & Month: define any calendar window (e.g. 9 Apr → 7 Jun)
— Start From Year: restrict the sample to a specific regime
— Rows per page / Page: navigate long histories without losing the stats panel
Works on any asset and any chart timeframe — data is always read at daily resolution for precision. No repainting.
Designed for: macro analysts, seasonal traders, and researchers who want to quantify recurring calendar patterns across equities, commodities, forex, crypto, and indices.
Pine Script®指标






















