plotarrow
Draws an arrow on each bar, sized from a number you supply.
It is the odd one out among the markers: plotshape and plotchar take a condition, this takes a value. It also has no location, no shape, no size and no text — where an arrow sits follows from the number.
plotarrow(series float series, const string title, series color colorup, series color colordown, input int offset, input int minheight, input int maxheight, const bool force_overlay) → void| Parameter | Type | Required | Description |
|---|---|---|---|
series | series float | yes | The number the arrow is drawn from. Required. Not a condition. |
title | const string | no | The name of the drawing. Const-form. |
colorup | series color | no | The colour used in one direction. Series-form, so it may differ on every bar. |
colordown | series color | no | The colour used in the other direction. Series-form. |
offset | input int | no | Shifts the drawing along the chart. Input-form, so it is fixed for the run of the script. |
minheight | input int | no | Lower bound on the arrow’s height. Input-form. |
maxheight | input int | no | Upper bound on the arrow’s height. Input-form. |
force_overlay | const bool | no | Sets this drawing’s overlay, separately from the script-wide setting. |
Returns void — void.
indicator("Body size as arrows")
plotarrow(close - open, title = "Body")See also text and markers
Part of the function index.
Ready to put this into practice?
Try GoCharting Premium
Unlock advanced orderflow, market profile, options desk, and real-time data — everything you just read about, live in your charts.