Bar Chart
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © Full_Trade

//@version=5
indicator("Bar Chart")
colorh = if (high>high[1]) and (low<low[1])
    color.blue
else if (high<high[1]) and (low>low[1])
    color.black
else if (high>high[1]) and (low>low[1])
    color.green
else 
    color.red
plotbar(low, low, low, high, color=colorh)
plotbar(high, high, high, low, color=colorh)
plot(close, color=color.red, style = plot.style_circles)