Well I had to check the code again and found that my understanding of the original code was slightly wrong. So a minor tweak has been done. But regardless of that this indicator has the tendency to perform different on different assets. Also I believe number of bars on the chart effect it because of the cumulative average.
I would encourage everyone who is willing to use it to please read the original TradingView description for further clearance as the Author explains some of its peculiarities in description and comments.