OztheWoz

Nth Root

A couple days ago I was searching for a user function that would allow be to take the nth root of any number. After not being able to find a function, I realized that the nth root is just the the inverse of the nth power. Here I've created a user defined function free to use by everybody that goes off of this. I used this function in my "Pythagorean Averages" script to help calculate the geometric average where p=0.

Disclaimer: Do your own research before making any decisions financially.
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?