OPEN-SOURCE SCRIPT

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:[\b] Do your own research before making any decisions financially.
nrootrootTrend Analysis

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer