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 starting handle of the fork. Build with newPoint(time, price).

  • left: First side anchor, sets one tine of the fork.

  • right: Second side anchor, sets the other tine.

  • styles (optional) Adjust how the fork looks:

    • extendLines (optional): extend the pitchfork lines beyond their endpoints.

    • fillBackground (optional): fill the background area of the pitchfork.

    • median (optional): configuration for the median line levels (LinesLevels without the coeff field).

    • style: numeric style preset identifier.

    • transparency: transparency level (numeric).

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

circle-info

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.

triangle-exclamation

Warning

circle-check

Good Practice

Last updated