Heikin Ashi Mini Bar
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © rsu9111

//@version=5
indicator("Heikin Ashi Mini Bar",overlay=true,scale=scale.none)

[hc,ho,hl,hh]= request.security(ticker.heikinashi(syminfo.tickerid), timeframe.period,[ close,open,low,high])

color   bullColorInput = input.color(#00FF00ff, "Bull")
color   bearColorInput = input.color(#FF0080ff, "Bear")

barhigh=input.session("1", "Bar High", options=["1", "2", "3", "4", "5"])
plot(200,show_last=1,editable=false,color=color.new(color.white,100))

plot(str.tonumber(barhigh),style=plot.style_columns,color=hc>ho?bullColorInput:bearColorInput,histbase=0)





