OPEN-SOURCE SCRIPT

Retracement FiboNacci

199
🎯 Core Functionality
Automatic Swing Detection: Uses ZigZag algorithm to detect significant price swings

Dual Modes:

Fibonacci Retracements - Traditional price-based levels

Fibonacci Time Zones - Time-based projections

Multi-Timeframe Analysis: Works on any timeframe while detecting swings from higher timeframes

⚙️ Customization Options
Fibonacci Levels:

Fully customizable Fibonacci levels (0%, 23.6%, 38.2%, 50%, 61.8%, 78.6%, 100%)

Individual color selection for each level

Toggle on/off specific levels as needed

Display Settings:

Line Styling: Choose between Solid, Dashed, or Dotted lines

Line Thickness: Adjustable from 1 to 5 pixels

ZigZag Visibility: Toggle base ZigZag line display

Label Management:

Fibonacci Labels: Show percentage retracement levels

Price Labels: Display actual price values

Flexible Positioning:

Left, Right, Both sides, or Auto-centering

Independent control for Fib and Price labels

Option to hide labels completely

🔧 Technical Specifications
ZigZag Parameters:

Depth: 12 bars

Deviation: 1%

Backstep: 2 bars

Real-time Updates: Automatically redraws when new swings are detected

Clean Interface: Removes old drawings to prevent chart clutter

Usage Scenarios
📈 Trend Analysis
Identify retracement levels during pullbacks

Spot potential reversal zones at key Fibonacci levels

Measure swing magnitudes for position sizing

⏰ Time Projections
Use Time Zone mode for forecasting potential reversal times

Combine price and time analysis for confluence

🎨 Visual Customization
Color-code important levels (e.g., 61.8% as golden ratio)

Adjust label sizes for better readability

Choose line styles that complement your chart setup

Ideal For
Swing traders identifying entry/exit points

Position traders finding optimal accumulation zones

Technical analysts validating support/resistance levels

Multi-timeframe analysts correlating higher timeframe structure

Pro Tips
Combine with Volume: Confirm reactions at Fibonacci levels with volume spikes

Multiple Timeframes: Use higher timeframe Fibonacci levels for major S/R

Confluence Trading: Look for Fibonacci levels aligning with previous support/resistance

Risk Management: Use Fibonacci extensions for profit targets

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。