PROTECTED SOURCE SCRIPT

Single Line Fibs with Strict Overlap Check

84
Single Line Fibs with Strict Overlap Check
Overview:

The "Single Line Fibs with Strict Overlap Check" indicator is a sophisticated tool designed for technical analysts and traders focusing on Elliott Wave theory. This indicator overlays Fibonacci retracement and extension levels on a price chart, specifically tailored for a single zigzag line (Line 2), to identify potential support, resistance, and impulse wave targets. It incorporates a strict overlap check to ensure valid impulse waves, adhering to Elliott Wave principles.

Key Features:

Zigzag Detection: Utilizes pivot highs and lows based on customizable lengths (White ZigZag: 2 bars, Yellow ZigZag: 15 bars) to construct a zigzag pattern.
Fibonacci Levels:
Retracements: 0.236, 0.382, 0.5, 0.618, 0.786 (gray, 50% transparency).
B Wave Extensions: 1.236, 1.386 (orange, 50% transparency).
Impulse Extensions: 1.0, 1.236, 1.386, 1.618 (green, 50% transparency), drawn from the next pivot low if valid.
Wave Count Filter: Displays Fibonacci levels only when the internal wave count from Line 1 reaches or exceeds a user-defined threshold (default: 5).
Overlap Validation: Implements a strict overlap check per Elliott Wave rules. If the next pivot low overlaps the previous high, no Impulse extensions are drawn, and a red 'X' (50% transparency) marks the invalid pivot low.
Customization:
White ZigZag Length: Adjusts the sensitivity of the initial pivot detection.
Yellow ZigZag Length: Sets the primary zigzag length.
Min Line 1 Waves for Line 2 Fib: Defines the minimum wave count threshold.
Enable Overlap Removal: Toggles the overlap validation feature.
Usage:

Apply the indicator to your chart (e.g., 30-minute timeframe).
Adjust input parameters to match your trading strategy (e.g., length2 = 15, waveThreshold12 = 5).
Observe Fibonacci levels appearing at pivot highs when the wave count threshold is met. Impulse extensions will only plot after a valid pivot low below the previous high.
Use the red 'X' as an alert for invalid impulse waves, indicating potential trend reversals or corrections.
Interpretation:

Retracements: Identify potential support levels within the upwave.
B Wave Extensions: Highlight extended correction targets.
Impulse Extensions: Project potential price targets for the next wave, valid only if the overlap check passes.
Red 'X': Signals an invalid impulse wave, suggesting a review of wave structure.
Limitations:

Designed for a single zigzag line; multi-line analysis requires additional customization.
Performance may vary with highly volatile instruments or short timeframes due to pivot sensitivity.
Author: Developed by ScottDog for TradingView users, this indicator leverages advanced Pine Script v6 features for precise wave analysis.

Version: 1.0 (Fail-Safe)

Last Updated: June 24, 2025

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.