Skip to content
Algo Trade Analytics Docs

math.sqrt() - Pine Script Function

Square root of any number >= 0 is the unique y >= 0 such that y^2 = number.

math.sqrt(number) → const float
NameTypeDescription
numberconst int/floatThe number to use in the calculation.

The square root of number.