This example shows how to display arrows on the chart.
study('plotarrow example', overlay=true) data = close >= open h = 25 plotarrow(data ? 1 : 0, colorup=red, maxheight=h, minheight=h) plotarrow(data ? -1 : 0, colordown=lime, maxheight=h, minheight=h)