Open=High pine script for Trading view

Copy and paste below script in pine editor:



// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at
// © sandeshk0101
indicator(“OH”, overlay = true)
[do,dh,dl] =, “D”, [open,high,low], lookahead=barmerge.lookahead_on)
day_open= open
day_high= high
//plot(dh, title=”High”,,    linewidth=2, trackprice=true)
//plot(do, title=”Open”, color=color.yellow, linewidth=2, trackprice=true)
//plot(dl, title=”Low”,,  linewidth=2, trackprice=true)
if day_open == day_high,high,”OpenHigh”, yloc = yloc.abovebar, color = color.white, style = label.style_arrowdown)

Leave a Comment

Your email address will not be published. Required fields are marked *