After some request, I think I could fix the problems.
Version 1.2:
► With the problem in pine to recognize constant value in function returns, I made a version of some build-in functions like EMA, RMA, wpr, percentrank, stoch to work;
► With that, after some research I change the old smma function to a new formula and renamed the old one to "SSMA - Simplest Smoothed Moving Average".
Maybe with this fix, the script will take a longer time to load, but probably until January, I will take some time to remake this script with a litter version.
If anyone notice some other bugs, please report me.