My one of first scripts. Show High and Low.
study("Price Action", overlay=true) //Definition of High and Low High = high[1]>high[2] and high[1]>high Low = low[1]<low[2] and low[1]<low //Drawing High and Low plotshape(High, style=shape.triangledown, location=location.abovebar, color = red, offset=-1) plotshape(Low, style=shape.triangleup, location=location.belowbar, color = green, offset=-1)