ninjactor fib (v6, Native Pivots, Non-Repainting)📐 Fibonacci Sequence Framework (Non-Repainting)
This indicator implements a structured Fibonacci sequence framework using confirmed, non-repainting pivots.
It automatically identifies Fibonacci boundaries, plots a precise Fibonacci level set with grouped color logic, and projects targets based on retracement depth.
The script is designed for clarity, accuracy, and object-based plotting, extending Fibonacci levels to the right while active and maintaining a clean chart by default.
🔹 Core Features
Non-Repainting Fractals
Uses confirmed 2-left / 2-right pivots (ta.pivotlow, ta.pivothigh)
Pivot labels are plotted on the correct historical bar
Automatic Fibonacci Boundary Detection
Long spreads:
Boundary 1 = pivot low (100%)
Boundary 2 = first pivot high after (0%)
Short spreads use the inverted logic
Direction can be set to Auto, Long Only, or Short Only
Exact Fibonacci Level Set
Retracements:
0.236 · 0.382 · 0.500 · 0.618 · 0.786 · 0.886
Extensions (targets):
1.127 · 1.272 · 1.618
Negative levels included:
-0.127 · -0.272 · -0.618
Grouped Color Logic
Red: 0.236 / 0.382 / 0.500 / 0.618, 1.618, negative levels
Blue: 0.786, 1.272, boundary lines
Green: 0.886, 1.127
Active target is highlighted with increased line thickness
Strict “Must Touch” Logic
Retracement levels are only considered valid if price actually touches them
Wick-based validation (not close-based)
Target hits must be touched exactly — no partial credit
Target Projection Rules
Retracements ≤ 0.618 → target = 1.618
0.786 retracement → target = 1.272
0.886 retracement → target = 1.127
Clean Object Management
Uses line and label objects (not plots)
Levels extend right while active
By default, only the current active spread is displayed
Optional history toggle to keep previous spreads
⚙️ Customization
Fully customizable color inputs
Adjustable opacity for:
Non-active levels
Active target line
Direction mode selection
History on/off control
📌 Notes
This is an indicator, not a strategy (no trade execution)
Designed for discretionary trading and confluence analysis
Built to be stable, readable, and Pine Script v6 compatible
Indicador Pine Script®






















