math.sqrt

The square root of number. It is defined for a number that is not negative.

math.sqrt(const float number) → const float
math.sqrt(input float number) → input float
math.sqrt(series float number) → series float
math.sqrt(simple float number) → simple float
ParameterTypeRequiredDescription
numberconst floatyesThe number to take the square root of.

Returns const float or input float or series float or simple float — The square root, as a float in the argument’s form.

indicator("Square root of volume")
plot(math.sqrt(volume))

See also math.abs · math.acos · math.asin

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