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

//@version=5
indicator("BuyPrice-1percent",  overlay=true)


//minus 1 percent variable

variableValue = (close*0.99)


labelText = str.tostring (variableValue)



ourLabel = label.new(x=bar_index, y=close, text= "-1%:  " + labelText, color=color.black, textcolor=color.white, style=label.style_label_right, size=size.large, textalign=text.align_right) 

label.set_x(id=ourLabel, x=bar_index[2])

label.delete(ourLabel[1]) 

