plotchar
The same marker as plotshape, with one character in place of a shape from the fixed set.
It draws exactly one character. Pass a longer string and it is cut to the first character, with no warning and no error, so pass the character you want.
plotchar(series bool series, const string title, const string char, input location location, series color color, input int offset, const string text, series color textcolor, input size size, const bool force_overlay) → void| Parameter | Type | Required | Description |
|---|---|---|---|
series | series bool | yes | The condition. Required. The character appears where it holds. |
title | const string | no | The name of the drawing. Const-form. |
char | const string | no | The character to draw. A const string, not a member of a fixed set. Only its first character is used. |
location | input location | no | Which member of the location set the character sits at. |
color | series color | no | The character’s colour. Series-form. |
offset | input int | no | Shifts the drawing along the chart. Input-form. |
text | const string | no | Text carried alongside the character. Const-form. |
textcolor | series color | no | The colour of that text. Series-form. |
size | input size | no | Which member of the size set to draw at. |
force_overlay | const bool | no | Sets this drawing’s overlay, separately from the script-wide setting. |
Returns void — void.
indicator("Up bars, marked with a character")
plotchar(close > open, title = "Up", char = "u", location = location.belowbar, color = color.green)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.