plotarrow
Draws an arrow on each bar where series is not 0 and not na: up below the bar for a positive value, down above it for a negative one. Larger values get longer arrows: the largest absolute value on screen gets maxheight pixels, the others in proportion, never below minheight.
plotarrow(series: float, title: const string = na, colorup: color = na, colordown: color = na, offset: const int = 0, minheight: const int = 5, maxheight: const int = 100, show_last: const int = na, display: const string = "all", editable: const bool = true, force_overlay: const bool = false)
Parameters
seriesfloat: The value per bar: positive draws an up arrow, negative a down arrow, 0 and na nothing.titleconst string: Its name in the legend and the settings.colorupcolor: the color of up arrows (na: the chart up color)colordowncolor: the color of down arrows (na: the chart down color)offsetconst int: shifts it by this many bars: positive moves it right (into the future), negative left (at most 500)minheightconst int: the shortest arrow in pixels (1 to 100)maxheightconst int: the longest arrow in pixels (1 to 100, at least minheight)show_lastconst int: draw only on the newest this many bars (na: all)displayconst string: display.none does not draw it; every other display.* value (default display.all) draws it.editableconst bool: Accepted for scripts from Pine and ignored: it changes nothing on PROLYNT.force_overlayconst bool: Accepted for scripts from Pine and ignored: it draws in the script pane.
Example
plotarrow(close - open, "Body")