מעודכן

Multi-Period Performance Table [everget]

8 432
Hello friends,
I'm returning to the fascinating world of TradingView publications. Over time, I've accumulated many unpublished ideas — both open- and closed-source — that I now plan to share, alternating between the two. It felt like a shame to let so much valuable work remain unseen. The story isn't over yet — so today, we kick off a new series of invite-only scripts, starting with this indicator.

🛠️ How It Works
  • The script analyzes your selected number of years of price data, calculating returns for each month, quarter, and season
  • Advanced algorithms compute comprehensive statistics, including the mean, median, standard deviation, and extremes for each period
  • Data is presented in an intuitive table with optional heatmap coloring that makes patterns immediately stand out
  • Sorting of any column allows you to quickly identify the best and worst performing periods
🔥 Key Features
  • Pine Script V6 – leverages the latest version for better performance
  • Custom number of years to aggregate statistics
  • Complete breakdown for all 12 months (Jan-Dec)
  • Quarter (Q1, Q2, Q3, Q4) statistics
  • Season (Winter, Spring, Summer, Fall) statistics
  • Year/Year-to-Date (YTD) statistics
  • Enable/disable Right-side statistics for each row
  • Enable/disable Bottom statistics for each column
  • Heatmap mode with 10 palettes
  • Sortable columns
  • Customizable table
  • Optimized performance - efficient calculations for smooth operation
  • Universal compatibility – runs smoothly across all assets, timeframes, and market conditions — from euphoric peaks to capitulation lows

📸 Visual Examples

Monthly view
תמונת-בזק

Quarterly view
תמונת-בזק

Seasonal view
תמונת-בזק

Clean table mode - without heatmaps
תמונת-בזק

Default heatmap palette
תמונת-בזק

June column sorted in descending order to quickly identify best/worst years
תמונת-בזק

Turbo palette - high contrast
תמונת-בזק

Spectral palette - professional look
תמונת-בזק

Red/Yellow/Blue palette - classic style
תמונת-בזק

My similar indicators that are also worth paying attention to
Monthly Returns Analytics [everget]

Monthly % Return [everget]


Still here? Unlock the full potential of multi-period market analysis — and take your trading to the next level today! 🚀

👋Good luck!
הערות שחרור
  • Added palette tooltips to settings
  • Code cleanup
הערות שחרור
  • Made minor internal fixes
הערות שחרור
  • Added Pine Screener filters, enabling you to scan your watchlist for performance % across various periods
תמונת-בזק
הערות שחרור
  • Added new "Right-side Statistics" input group with toggles for Min, Mean, Median, Max, and Stdev columns
  • Added new "Bottom Statistics" input group with toggles for Min, Mean, Median, Max, and Stdev rows
  • Split the combined "Border Color | Width" input into two separate inputs for clearer configuration
  • Renamed "Heatmap Palette" toggle to "Use Heatmap Palette"
  • Each period type (Months, Quarters, Seasons, Year) now uses its own dedicated color scale at all times, including when multiple periods are displayed together
  • Switched standard deviation calculation to the unbiased estimator (N-1) for consistency across all stats
  • Made internal refactoring & optimizations
Monthly Columns with only Min & Max Statistics Selected:תמונת-בזק
הערות שחרור
  • Updated internal library dependencies
  • Applied minor code refactoring and cleanups
הערות שחרור
  • Added a Seasons Hemisphere setting: with Southern selected, the season columns use Southern hemisphere names (Dec-Feb is Summer) in the table, the Sort list and the Pine Screener
  • The palette tooltip now lists every palette with its gain, neutral and loss colors
  • Clarified existing tooltips and added new ones for Last N Years, Seasons Hemisphere, Sort and both statistics groups
  • Settings that do not apply are now greyed out
  • The Sort by Column list now shows readable column names
  • Input values are no longer shown in the status line
  • Sorting now reorders the table only, so Pine Screener and Data Window values always refer to the current year
  • Periods before a symbol's history begins are now shown as N/A and left out of the statistics
  • Statistics that cannot be calculated are now shown as N/A
  • A 0% change now takes the neutral color
  • Updated internal library dependencies
  • Applied code refactoring and cleanups

כתב ויתור

המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.