indicator · on price · open source
Marubozu indicator
Marubozu is a free open-source indicator. Marubozu: candle with a body covering at least 90% of the range and almost no wicks. Deepwick Script runs a subset of Pine Script.
Running…
Loading chart…
What Marubozu does
Marubozu: candle with a body covering at least 90% of the range and almost no wicks. Signals full commitment from one side.
- Green Marubozu (close near high) = strong bulls.
- Red Marubozu (close near low) = strong bears.
- Often the start of a strong directional move.
Source code
Deepwick Script, a subset of Pine Script · read-only
//@version=6
indicator("Marubozu", overlay=true)
bodyPct = input.float(0.9, "Body min % of range", minval=0.5, maxval=1, step=0.05)
colorUp = input.color("color.green", "Color Up")
colorDown = input.color("color.red", "Color Down")
body = (high - low) > 0 and math.abs(close - open) > (high - low) * bodyPct
maru = body
barcolor(maru ? (close > open ? colorUp : colorDown) : na)
plotshape(maru and close > open, "Bull Marubozu", style=shape.square, location=location.belowbar, color=colorUp, text="M")
plotshape(maru and close < open, "Bear Marubozu", style=shape.square, location=location.abovebar, color=colorDown, text="M")
alertcondition(maru and close > open, "Bull Marubozu", "Bullish Marubozu printed")
alertcondition(maru and close < open, "Bear Marubozu", "Bearish Marubozu printed")
No comments yet.
Sign in to comment.