indicator · on price · open source

DeMark Pivot Points indicator

DeMark Pivot Points is a free open-source indicator. DeMark pivots adapt the X-input based on whether the prior bar was bearish, bullish, or a… Deepwick Script runs a subset of Pine Script.

v1Updated 3 Oct 2026▲ 0 users
Running…
Loading chart…

What DeMark Pivot Points does

DeMark pivots adapt the X-input based on whether the prior bar was bearish, bullish, or a doji — making the resulting PP reflect the directional character of the prior session rather than a neutral average.

  • Bullish prior bar → X weights the high twice; bearish → the low.
  • Plots PP plus the single R1/S1 reaction bands.
  • Good minimalist alternative when the chart is cluttered with too many levels.

Source code

Deepwick Script, a subset of Pine Script · read-only

//@version=6
indicator("DeMark Pivot Points", overlay=true)
colorLight2 = input.color("color.aqua", "Color  Light2")
colorUp = input.color("color.green", "Color  Up")
colorDown = input.color("color.red", "Color  Down")
x = close[1] < open[1] ? ta.highest(high, 1)[1] + 2 * ta.lowest(low, 1)[1] + close[1] : close[1] > open[1] ? 2 * ta.highest(high, 1)[1] + ta.lowest(low, 1)[1] + close[1] : ta.highest(high, 1)[1] + ta.lowest(low, 1)[1] + 2 * close[1]
pp = x / 4
r1 = x / 2 - ta.lowest(low, 1)[1]
s1 = x / 2 - ta.highest(high, 1)[1]
p_PP = plot(pp, "PP", color=colorLight2, linewidth=2)
p_R1 = plot(r1, "R1", color=colorUp, style=plot.style_linebr)
p_S1 = plot(s1, "S1", color=colorDown, style=plot.style_linebr)

Comments

No comments yet.

Sign in to comment.