schiffPitchforkModified

The Modified Schiff Pitchfork is another twist on the classic pitchfork. It shifts the pivot point a little differently compared to the normal Schiff version, so the fork lines often fit sideways or consolidating markets better.

Think of it like this:

  • The classic pitchfork is strict.

  • The Schiff pitchfork smooths it out.

  • The Modified Schiff pitchfork adjusts even more, so you can track price action when the market isn’t trending in a straight line.

Syntax

schiffPitchforkModified(pivot, left, right, styles?)

Parameters

  • pivot The handle of the fork. Build it with newPoint(time, price) — for example:

    newPoint(time(40), low(40))
  • left The first side anchor. Example:

    newPoint(time(25), high(25))
  • right The second side anchor. Example:

    newPoint(time(12), low(12))
  • styles (optional) Customize how the fork looks:

    • linecolor: color of the fork lines (e.g., color.teal)

    • linewidth: thickness of the lines

    • linestyle: solid/dashed/dotted

    • median: style options for the center line

    • extendLines: true/false to extend lines into the future

    • fillBackground: optional shaded area

Return Value

  • string — A unique drawing id.

Example

This script draws a teal Modified Schiff Pitchfork every 30 candles using clear swing points.

This creates a teal Modified Schiff Pitchfork that adapts better when price is drifting sideways instead of making a strong trend.

Result

Tips

  • Use Modified Schiff when you want a pitchfork that handles choppy or sideways markets.

  • Great for spotting potential breakout zones inside ranges.

  • Try combining it with a horizontalRay to mark flat levels while the fork shows angled paths.

Warning

Good Practice

Last updated