indicator · on price · open source

Three White Soldiers indicator

Three White Soldiers is a free open-source indicator by @deepwick. Three White Soldiers: three consecutive bullish candles, each opening within the previous… Deepwick Script runs a subset of Pine Script.

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

What Three White Soldiers does

Three White Soldiers: three consecutive bullish candles, each opening within the previous body and closing above it. Strong continuation / reversal pattern after a downtrend.

  • Green bar colour on the third candle; alert fires only on completion.
  • Reliable when bodies are roughly equal and each opens near the prior close.

Source code

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

//@version=6
indicator("Three White Soldiers", overlay=true)
colorUp = input.color("color.green", "Color  Up")
s1 = close[2] > open[2]
s2 = close[1] > open[1] and close[1] > close[2]
s3 = close > open and close > close[1]
ts = s1 and s2 and s3
barcolor(ts ? colorUp : na)
plotshape(ts, "Three White Soldiers", style=shape.square, location=location.belowbar, color=colorUp, text="3WS")
alertcondition(ts, "Three White Soldiers", "Three White Soldiers confirmed")

Comments

No comments yet.

Sign in to comment.