HurstIndex function

calculate the Hurst Index The Hurst index can be used to measure whether returns are mean reverting, totally random, or persistent.