Market Stats Panel for Period Returns and Yearly Seasonality
Summary
This TradingView indicator builds a visual dashboard of an asset’s recent returns and historical yearly price patterns. Its performance boxes display percentage changes over one week, one month, three months, six months, year to date, and one year. A separate comparison plot draws monthly observations for selected years across a January-to-December layout, with controls for the year range, percentage or absolute price display, and panel dimensions. The stated purpose is descriptive: it lets users compare annual paths and review recent performance in one chart view.
The code requests daily and monthly market data and uses chart drawings and labels to render the dashboard. It does not provide a trading rule, backtest, or evidence that seasonality predicts future returns. Historical comparisons can depend on the requested symbol, available data, and timeframe; the code also uses lookahead settings for some higher-timeframe requests, which may affect how values appear historically. Treat the panel as a visualization aid, and verify its calculations and data alignment before relying on the displayed figures.
Key ideas
- The panel summarizes asset returns across several recent horizons, including year to date.
- A yearly comparison view plots monthly observations across selected calendar years.
- Users can choose percentage or absolute price scaling and adjust display dimensions.
- The indicator is descriptive and does not establish a predictive seasonal effect.
- Data-request and lookahead behavior may affect historical values and should be checked.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.