this function is mainly used for trend detection by referring short term legs. by default i set 1 min, 3 min and 5 min for reference.
the most advantage of using this script is that it is not necessary to calculate again and again by using loop function. therefore comparing to the other RCI scrips, this one is little bit faster.
Have a fun!