PROTECTED SOURCE SCRIPT
已更新 Pivot Points High/Low-Based | Trendlines - S/R - Fib by ysfgnr

Pivot Points High/Low-Based | Trendlines – S/R – Fib
This indicator is a professional-grade technical analysis tool built entirely on Pivot Points High/Low logic, designed to provide clear market structure, dynamic trendlines, Support & Resistance zones, and advanced Fibonacci analysis — all in one fully integrated system.
The script is engineered with a strong focus on UI–logic consistency, mathematical accuracy, repaint awareness, and real-world trading usability.
________________________________________
Core Features
1. Pivot Points High / Low Detection
• Uses ta.pivothigh() and ta.pivotlow() with fully customizable left/right bar lengths
• Pivot points are visually marked with clean, non-intrusive labels
• Repaint behavior is transparent and documented: pivot points may update until right-side bars are fully confirmed
• Pivot history is efficiently managed to avoid memory overflow
________________________________________
2. High-to-High & Low-to-Low Trendlines
• Automatically draws trendlines based on confirmed pivot structures
• Supports Linear and Logarithmic price scales
• Live projection extends trendlines into the future with mathematically precise slope calculations
• Trendline style (solid / dashed / dotted), color, and width are fully customizable
Optional breakout confirmation:
• Confirmed on candle close (close-based crossover)
• Or intrabar detection using high/low values
________________________________________
3. Pivot-Based Support & Resistance Zones
• Dynamically creates Support and Resistance zones directly from pivot points
• Zones are drawn using candle body logic for more realistic price interaction
• Automatic zone extension and mitigation
• Zones are removed only after a confirmed candle close beyond the zone
• Clean visual design with adjustable colors and opacity
Built-in Zone Entry (Touch) Alerts:
• Support Zone Entry
• Resistance Zone Entry
Each zone triggers only once to prevent alert spam.
________________________________________
4. Advanced Fibonacci System
Two fully separated Fibonacci modes are included.
Classic Fibonacci (A → B)
• Standard retracement and extension levels
• Automatically adapts to bullish and bearish pivot sequences
• A and B labels clearly mark the impulse structure
Extension Fibonacci (A → B → C)
• Continuation-based Fibonacci projections
• Automatically detects valid ABC structures
• Draws retracement, extension, and overextension levels
• Includes optional A, B, and C labeling
Fibonacci calculations support:
• Linear or Logarithmic scaling
• Precise ratio-to-color mapping
• Optional price values and percentage change display
• Automatic cleanup when switching modes to prevent visual clutter
________________________________________
5. Price Scale Awareness (Linear vs Logarithmic)
• Trendlines and Fibonacci levels remain mathematically consistent with the chart scale
• Logarithmic calculations are applied only when price values are greater than zero
• Invalid logarithmic operations and edge-case errors are prevented
________________________________________
6. Alerts System
Trendline Breakout Alerts:
• High-to-High trendline breakout
• Low-to-Low trendline breakout
Zone Entry Alerts:
• Support Zone Entry
• Resistance Zone Entry
All alerts are clearly named, behaviorally consistent with UI descriptions, and designed to avoid repaint-based false signals.
________________________________________
Design Philosophy
This indicator was built with the following principles:
• No hidden logic — everything is transparent and testable
• No repaint masking — pivot behavior is honest and documented
• Clean chart experience — aggressive cleanup prevents clutter
• Professional terminology — suitable for advanced traders and analysts
This is not a signal generator. It is a high-quality market structure and confluence analysis tool.
________________________________________
Important Notes
• Pivot points are inherently non-instant and may adjust until fully confirmed
• Logarithmic mode requires positive price values
• This tool does not provide trade advice and supports discretionary decision-making
________________________________________
Best Use Cases
• Market structure analysis
• Trend continuation and breakout confirmation
• Support and Resistance mapping
• Fibonacci-based confluence zones
• Multi-timeframe technical analysis
________________________________________
Final Words
If you are looking for a clean, reliable, and mathematically sound pivot-based indicator that combines trendlines, Support and Resistance zones, and Fibonacci analysis into a single cohesive system, this script is designed for that purpose.
This indicator is a professional-grade technical analysis tool built entirely on Pivot Points High/Low logic, designed to provide clear market structure, dynamic trendlines, Support & Resistance zones, and advanced Fibonacci analysis — all in one fully integrated system.
The script is engineered with a strong focus on UI–logic consistency, mathematical accuracy, repaint awareness, and real-world trading usability.
________________________________________
Core Features
1. Pivot Points High / Low Detection
• Uses ta.pivothigh() and ta.pivotlow() with fully customizable left/right bar lengths
• Pivot points are visually marked with clean, non-intrusive labels
• Repaint behavior is transparent and documented: pivot points may update until right-side bars are fully confirmed
• Pivot history is efficiently managed to avoid memory overflow
________________________________________
2. High-to-High & Low-to-Low Trendlines
• Automatically draws trendlines based on confirmed pivot structures
• Supports Linear and Logarithmic price scales
• Live projection extends trendlines into the future with mathematically precise slope calculations
• Trendline style (solid / dashed / dotted), color, and width are fully customizable
Optional breakout confirmation:
• Confirmed on candle close (close-based crossover)
• Or intrabar detection using high/low values
________________________________________
3. Pivot-Based Support & Resistance Zones
• Dynamically creates Support and Resistance zones directly from pivot points
• Zones are drawn using candle body logic for more realistic price interaction
• Automatic zone extension and mitigation
• Zones are removed only after a confirmed candle close beyond the zone
• Clean visual design with adjustable colors and opacity
Built-in Zone Entry (Touch) Alerts:
• Support Zone Entry
• Resistance Zone Entry
Each zone triggers only once to prevent alert spam.
________________________________________
4. Advanced Fibonacci System
Two fully separated Fibonacci modes are included.
Classic Fibonacci (A → B)
• Standard retracement and extension levels
• Automatically adapts to bullish and bearish pivot sequences
• A and B labels clearly mark the impulse structure
Extension Fibonacci (A → B → C)
• Continuation-based Fibonacci projections
• Automatically detects valid ABC structures
• Draws retracement, extension, and overextension levels
• Includes optional A, B, and C labeling
Fibonacci calculations support:
• Linear or Logarithmic scaling
• Precise ratio-to-color mapping
• Optional price values and percentage change display
• Automatic cleanup when switching modes to prevent visual clutter
________________________________________
5. Price Scale Awareness (Linear vs Logarithmic)
• Trendlines and Fibonacci levels remain mathematically consistent with the chart scale
• Logarithmic calculations are applied only when price values are greater than zero
• Invalid logarithmic operations and edge-case errors are prevented
________________________________________
6. Alerts System
Trendline Breakout Alerts:
• High-to-High trendline breakout
• Low-to-Low trendline breakout
Zone Entry Alerts:
• Support Zone Entry
• Resistance Zone Entry
All alerts are clearly named, behaviorally consistent with UI descriptions, and designed to avoid repaint-based false signals.
________________________________________
Design Philosophy
This indicator was built with the following principles:
• No hidden logic — everything is transparent and testable
• No repaint masking — pivot behavior is honest and documented
• Clean chart experience — aggressive cleanup prevents clutter
• Professional terminology — suitable for advanced traders and analysts
This is not a signal generator. It is a high-quality market structure and confluence analysis tool.
________________________________________
Important Notes
• Pivot points are inherently non-instant and may adjust until fully confirmed
• Logarithmic mode requires positive price values
• This tool does not provide trade advice and supports discretionary decision-making
________________________________________
Best Use Cases
• Market structure analysis
• Trend continuation and breakout confirmation
• Support and Resistance mapping
• Fibonacci-based confluence zones
• Multi-timeframe technical analysis
________________________________________
Final Words
If you are looking for a clean, reliable, and mathematically sound pivot-based indicator that combines trendlines, Support and Resistance zones, and Fibonacci analysis into a single cohesive system, this script is designed for that purpose.
版本注释
Pivot Points High/Low-Based | Trendlines – S/R – FibonacciThis indicator is a professional-grade technical analysis tool built entirely on Pivot Points High/Low logic, designed to provide clear market structure, dynamic trendlines, Support & Resistance zones, and advanced Fibonacci analysis — all in one fully integrated system.
The script is engineered with a strong focus on UI–logic consistency, mathematical accuracy, repaint awareness, and real-world trading usability.
Core Features
1. Pivot Points High / Low Detection
Uses ta.pivothigh() and ta.pivotlow() with fully customizable left/right bar lengths
Pivot points are visually marked with clean, non-intrusive labels
Repaint behavior is transparent and documented: pivot points may update until right-side bars are fully confirmed
Pivot history is efficiently managed to avoid memory overflow
2. High-to-High & Low-to-Low Trendlines
Automatically draws trendlines based on confirmed pivot structures
Supports Linear and Logarithmic price scales
Live projection extends trendlines into the future with mathematically precise slope calculations
Trendline style (solid / dashed / dotted), color, and width are fully customizable
Optional breakout confirmation:
Confirmed on candle close (close-based crossover)
Or intrabar detection using high/low values
3. Pivot-Based Support & Resistance Zones
Dynamically creates Support and Resistance zones directly from pivot points
Zones are drawn using candle body logic for more realistic price interaction
Automatic zone extension and mitigation
Zones are removed only after a confirmed candle close beyond the zone
Clean visual design with adjustable colors and opacity
Built-in Zone Entry (Touch) Alerts:
Support Zone Entry
Resistance Zone Entry
Each zone triggers only once to prevent alert spam.
4. Advanced Fibonacci System
Two fully separated Fibonacci modes are included.
Classic Fibonacci (A → B)
Standard retracement and extension levels
Automatically adapts to bullish and bearish pivot sequences
A and B labels clearly mark the impulse structure
Extension Fibonacci (A → B → C)
Continuation-based Fibonacci projections
Automatically detects valid ABC structures
Draws retracement, extension, and overextension levels
Includes optional A, B, and C labeling
Fibonacci calculations support:
Linear or Logarithmic scaling
Precise ratio-to-color mapping
Optional price values and percentage change display
Automatic cleanup when switching modes to prevent visual clutter
5. Price Scale Awareness (Linear vs Logarithmic)
Trendlines and Fibonacci levels remain mathematically consistent with the chart scale
Logarithmic calculations are applied only when price values are greater than zero
Invalid logarithmic operations and edge-case errors are prevented
6. Alerts System
Trendline Breakout Alerts:
High-to-High trendline breakout
Low-to-Low trendline breakout
Zone Entry Alerts:
Support Zone Entry
Resistance Zone Entry
All alerts are clearly named, behaviorally consistent with UI descriptions, and designed to avoid repaint-based false signals.
Design Philosophy
This indicator was built with the following principles:
No hidden logic — everything is transparent and testable
No repaint masking — pivot behavior is honest and documented
Clean chart experience — aggressive cleanup prevents clutter
Professional terminology — suitable for advanced traders and analysts
This is not a signal generator. It is a high-quality market structure and confluence analysis tool.
Important Notes
Pivot points are inherently non-instant and may adjust until fully confirmed
Logarithmic mode requires positive price values
This tool does not provide trade advice and supports discretionary decision-making
Best Use Cases
Market structure analysis
Trend continuation and breakout confirmation
Support and Resistance mapping
Fibonacci-based confluence zones
Multi-timeframe technical analysis
Final Words
If you are looking for a clean, reliable, and mathematically sound pivot-based indicator that combines trendlines, Support and Resistance zones, and Fibonacci analysis into a single cohesive system, this script is designed for that purpose.
受保护脚本
此脚本以闭源形式发布。 但是,您可以自由使用,没有任何限制 — 了解更多信息这里。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
受保护脚本
此脚本以闭源形式发布。 但是,您可以自由使用,没有任何限制 — 了解更多信息这里。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。