indicator · on price · open source
Three White Soldiers
Running…
Loading chart…
About
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
//@version=5
indicator("Three White Soldiers", overlay=true)
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 ? color.green : na)
plotshape(ts, "Three White Soldiers", style=shape.square, location=location.belowbar, color=color.green, text="3WS")
alertcondition(ts, "Three White Soldiers", "Three White Soldiers confirmed")
No comments yet.
Sign in to comment.