Bubbles BB futures
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © JHavez

//@version=5
indicator("Bulle BB futures", overlay=true, explicit_plot_zorder=true)
var UpperArrow = -5
//BB calculation
[Middle, Upper, Lower] = ta.bb(close,20,2)
//plot arrow
plotshape(open > Middle and open >= Upper and close >= Upper ? UpperArrow : na, "Fleche2", shape.triangledown, location.abovebar, color.orange, size = size.small)
plotshape(close < Middle and open <= Lower and close <= Lower ? UpperArrow : na, "Fleche2", shape.triangleup, location.belowbar, color.orange, size = size.small)
