float

A number with a fractional part, written 1.5. It has no fields. Most market data is float: the bar’s prices, its volume and the averaged prices are all float series.

float(const float value) → const float
float(input float value) → input float
float(series float value) → series float
float(simple float value) → simple float
ParameterTypeRequired
valueconst floatyes

Returns const float or input float or series float or simple float

indicator("Volume as a float")
plot(float(volume))

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