All indicators

Auto Pitchfork, Fib Retracement and Zig Zag by DGT

Mar 29, 2021

Static chart image
Support and ResistanceDrawing ToolFibonacci

The Auto Pitchfork, Fib Retracement and Zig Zag by DGT indicator automates the plotting of Andrews' Pitchfork variations, Fibonacci retracements, and Zig Zag pivots to help traders identify geometric cycles and key support or resistance levels.

Usage

The Usage section describes how the script can be used, including how main settings affect the interpretation and output.

  • Identifying Trends and Reversals: Traders can use the automated pitchforks to find median line targets and boundary reactions. Typically, buying occurs near the lower trendline or median line support, while selling occurs near the upper trendline or median line resistance.
  • Market Adaptability: The indicator provides multiple pitchfork types to suit different market conditions:
    • Original Andrews' Pitchfork: Best suited for strong, clearly trending markets.
    • Schiff and Modified Schiff: More effective in corrective or sideways markets. The Modified version behaves similarly to a parallel channel.
  • Fibonacci Analysis: The built-in Fibonacci retracement tool identifies potential price exhaustion levels based on the same pivots used for the pitchforks.
  • Zig Zag Visualization: Use the Zig Zag feature to filter out market noise and focus on significant structural highs and lows.

Details

The script is constructed using pivot detection logic based on deviation and depth. It automatically selects the last three significant pivot points to anchor the pitchfork and Fibonacci levels.

  • Andrews' Pitchfork: Based on the principle that price frequently returns to the median line. It uses three points: a starting point (pivot 1) and a subsequent reaction high/low (pivots 2 and 3).
  • Schiff Variations: These modify the origin point of the pitchfork to account for slower-moving trends or consolidations, providing a flatter slope.
  • Pivot Thresholds: The "Deviation" setting uses a multiplier based on the Average True Range (ATR) to determine the significance of a price move, while "Depth" ensures a minimum bar count between pivots to prevent over-sensitivity.

Settings

Pitchfork Settings

  • First/Second Pitchfork Type: Enables the tool and selects the calculation method (Original, Schiff, Modified Schiff, or Inside).
  • Deviation: A multiplier affecting how much price must deviate from a previous pivot to form a new one.
  • Depth: The minimum number of bars required between pivots.
  • Pitchfork Level Labels: Choose to display levels, prices, both, or none.
  • Extend Pitchfork Lines: Extends the geometric lines indefinitely to the right of the chart.
  • Median Line & Levels: Individual toggles and styling options (color, width, style) for the median line and various Fibonacci-based internal/external levels.

Visuals and History

  • Background Transparency: Adjusts the opacity of the shaded areas between pitchfork levels.
  • Historical Pitchforks/Fibonacci Levels: Determines how many previous sets of levels remain visible on the chart.

FAQ

How do I adjust the sensitivity of the pivot points? You can modify the "Deviation" and "Depth" settings. Increasing these values will result in fewer, more significant pivots, while decreasing them will capture smaller price swings.

When should I use the Modified Schiff Pitchfork instead of the Original? The Modified Schiff is ideal for markets that are trending less aggressively or moving in a sideways, channel-like fashion, whereas the Original version is designed for sharp, steep trends.

How can I access this indicator? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

Free indicator

Get free access to this indicator on the platforms below.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.