Trading View Pine Script
Trading View Pine Script
atr50 = ta.atr(50)
atr60 = ta.atr(60)
if (buy)
lbl = label.new(bar_index, low, "buy")
label.set_color(lbl, color.green)
label.set_yloc(lbl, yloc.belowbar)
label.set_style(lbl, label.style_label_up)
if (sell)
lbl = label.new(bar_index,high, "sell")
label.set_color(lbl, color.red)
label.set_yloc(lbl, yloc.abovebar)
label.set_style(lbl, label.style_label_down)