indicator · on price · open source

Doji indicator

Doji is a free open-source indicator by @deepwick. Doji: open and close are virtually equal, signalling indecision between buyers and sellers. Deepwick Script runs a subset of Pine Script.

Deepwick · @deepwickv1Updated 3 Nov 2026▲ 0 users
Running…
Loading chart…

What Doji does

Doji: open and close are virtually equal, signalling indecision between buyers and sellers. Body less than 10% of the candle range.

  • Yellow bar highlights the indecision.
  • Powerful when it appears after a strong trend — the market is pausing.
  • Watch the next candle for confirmation of direction.

Source code

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

//@version=6
indicator("Doji", overlay=true)
threshold = input.float(0.1, "Body/Range threshold", minval=0.01, maxval=1, step=0.01)
colorFill = input.color("color.yellow", "Color  Fill")
bodySize = math.abs(close - open)
range = high - low
doji = range > 0 and bodySize / range < threshold
barcolor(doji ? colorFill : na)
plotshape(doji, "Doji", style=shape.diamond, location=location.abovebar, color=colorFill, text="D")
alertcondition(doji, "Doji", "Doji candle printed")

Comments

No comments yet.

Sign in to comment.