string

A piece of text, written between double quotes: "length". Titles, messages and instrument details are strings. The str namespace holds the functions that work on them. No fields.

string(const string value) → const string
string(input string value) → input string
string(series string value) → series string
string(simple string value) → simple string
ParameterTypeRequired
valueconst stringyes

Returns const string or input string or series string or simple string

indicator("String conversion")
alert(string("breakout"))
plot(close)

See also values and types

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.
Upgrade