OPEN-SOURCE SCRIPT
מעודכן

Rolling Pivot Ribbon

863
Rolling Pivot Ribbon
This indicator displays historical and developing pivot levels across multiple days,
creating a dynamic "ribbon" effect as pivots roll forward through time.

DESIGNED FOR: Intraday timeframes (≤1D). Shows warning on higher timeframes.
USE CASE: Identify key support/resistance levels, track pivot evolution, and spot
price interaction zones with enhanced visual clarity.

WHY?
There comes a time in every Pinescript developer's evolution, they feel compelled to write a script that draws many lines, possibly triangles, into the future. This is mine. It's both totally useless, and a constant source of comfort to me.

KEY FEATURES:
• Multiple pivot calculation methods (Classic, Camarilla)
• Historical pivot tracking with configurable lookback period (default 4 days)
• Real-time "developing" pivots that update intraday based on current day's HLC
• Gradient fills between adjacent pivot levels for visual depth
• 13 pivot levels: PP, R1-R6, S1-S6

TASTY MODE (Advanced):
• Intelligent filtering: only shows lines that price has recently intersected
• Dynamic transparency: opacity adjusts based on intersection frequency
• Auto-cleanup: removes stale lines that haven't been touched in X days
• Smart extensions: lines that see more action project further into the future
• Focus mode options to reduce chart clutter

VISUAL CONTROLS:
• Toggle individual pivot levels on/off
• Customizable colors and transparency for lines and fills
• Flexible label positioning (left-align or right-align)
• Adjustable projection length for pivot lines (defaults to 1. Set to 0 for just a ribbon)
הערות שחרור
Updates:
  1. Added support for Fibonacci, Woodie, and DM pivot types (previously supported just Classic and Camarilla
  2. Added ability to display historical (horizontal) pivot levels, not just current day
הערות שחרור
(fixed chart preview - no code change)
הערות שחרור
Version 1.2 - Bug Fixes
  • Fixed "Left align historical pivot labels == false" bug that was not truncating the line past the end of day projection
  • Fixed timezone issue - using the chart timezone does not handle daily savings transitions. Allow user to define daily session start time relative to EST
  • Fixed bug that exceeded 500 bars into the future on >2 minute timeframes (now truncates projection)
  • Fixed bug that did not handle (in getBarsPerDay()) non-24 trading sessions when drawing the developing pivot

כתב ויתור

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