OPEN-SOURCE SCRIPT
Fibonacci Pivot Oscillator

FIB PIVOT OSCILLATOR - Price Position Indicator
See exactly WHERE your price sits between Fibonacci pivot levels. This oscillator normalizes price position relative to classic Pivot Points, giving you a clear view of market structure.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 WHAT DOES IT DO?
Instead of cluttering your chart with multiple pivot lines, this indicator displays a single oscillator showing WHERE price is within the pivot range. Instantly see if price is in support or resistance territory.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ HOW IT WORKS
1. Calculates Standard Pivot Point from previous period:
Pivot = (High + Low + Close) / 3
2. Applies Fibonacci ratios to determine Support/Resistance levels:
• R1/S1 = Pivot ± (Range × 38.2%)
• R2/S2 = Pivot ± (Range × 61.8%)
• R3/S3 = Pivot ± (Range × 100%)
3. Normalizes current price position on a fixed scale:
• +100 = Price at R3 (100% Fib extension)
• +61.8 = Price at R2
• +38.2 = Price at R1
• 0 = Price at Pivot Point
• -38.2 = Price at S1
• -61.8 = Price at S2
• -100 = Price at S3
4. Adds a 9-period EMA signal line for momentum confirmation
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 SIGNALS
- BUY: Price crosses ABOVE the Pivot (oscillator crosses above 0)
- SELL: Price crosses BELOW the Pivot (oscillator crosses below 0)
- Optional: Display all Fibonacci level crossings
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 HOW TO USE
- Oscillator > 0 → Price in RESISTANCE zone (bullish bias)
- Oscillator < 0 → Price in SUPPORT zone (bearish bias)
- Extreme values (±100) → Price at major Fib levels, watch for reversals
- Histogram color intensity reflects momentum strength
- Use signal line crossovers for additional confirmation
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ SETTINGS
- Period: Daily, Weekly, or Monthly pivot calculation
- Display: Toggle histogram, position line, zones, info table
- Signals: Show/hide BUY/SELL and secondary Fib crossings
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 ALERTS INCLUDED
- Pivot crossover (main BUY/SELL)
- R1, R2, R3 breakouts
- S1, S2, S3 breakdowns
See exactly WHERE your price sits between Fibonacci pivot levels. This oscillator normalizes price position relative to classic Pivot Points, giving you a clear view of market structure.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 WHAT DOES IT DO?
Instead of cluttering your chart with multiple pivot lines, this indicator displays a single oscillator showing WHERE price is within the pivot range. Instantly see if price is in support or resistance territory.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ HOW IT WORKS
1. Calculates Standard Pivot Point from previous period:
Pivot = (High + Low + Close) / 3
2. Applies Fibonacci ratios to determine Support/Resistance levels:
• R1/S1 = Pivot ± (Range × 38.2%)
• R2/S2 = Pivot ± (Range × 61.8%)
• R3/S3 = Pivot ± (Range × 100%)
3. Normalizes current price position on a fixed scale:
• +100 = Price at R3 (100% Fib extension)
• +61.8 = Price at R2
• +38.2 = Price at R1
• 0 = Price at Pivot Point
• -38.2 = Price at S1
• -61.8 = Price at S2
• -100 = Price at S3
4. Adds a 9-period EMA signal line for momentum confirmation
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 SIGNALS
- BUY: Price crosses ABOVE the Pivot (oscillator crosses above 0)
- SELL: Price crosses BELOW the Pivot (oscillator crosses below 0)
- Optional: Display all Fibonacci level crossings
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 HOW TO USE
- Oscillator > 0 → Price in RESISTANCE zone (bullish bias)
- Oscillator < 0 → Price in SUPPORT zone (bearish bias)
- Extreme values (±100) → Price at major Fib levels, watch for reversals
- Histogram color intensity reflects momentum strength
- Use signal line crossovers for additional confirmation
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ SETTINGS
- Period: Daily, Weekly, or Monthly pivot calculation
- Display: Toggle histogram, position line, zones, info table
- Signals: Show/hide BUY/SELL and secondary Fib crossings
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 ALERTS INCLUDED
- Pivot crossover (main BUY/SELL)
- R1, R2, R3 breakouts
- S1, S2, S3 breakdowns
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.