I saw that Juriks Moving average and its variation of the following script has been pretty popular on MT4/MT5 FX so I decided to try to recreate it in Tradingview.
The basic logic was taken from: Inspired by the script by one of the most active pinescripters in the early days.
The Jurik Moving average has been created by one of the most active pinescripters nowadays everget:
Those two did all the heavy lifting I am just putting all together.
Cheers to everyone and I hope you guys are a having better day than I am.