Marubozu CANDLESTICK PATTERN 
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © pinescripter_maroc

//@version=5
indicator("Marubozu",overlay = true)




condition = math.abs(open-close) > 3*math.avg(math.abs(open-close),15)/2

plotcandle(open,high,low,close,color=condition and open<close?color.green:na,
     wickcolor=condition and open<close ?color.blue:na)


plotcandle(open,high,low,close,color=condition and open>close?color.orange:na,
     wickcolor=condition and open>close ?color.orange:na)


plotshape(open<close?condition:na,style=shape.triangleup,color=color.green,text="Bullish",textcolor = color.green)
     

plotshape(open>close?condition:na,style=shape.triangledown,color=color.orange,text="Bearish",textcolor = color.orange)