This script contains no trading value. This is no indicator. It is only showing how to use a powerful editor feature:
To collapse (hide, fold) and expand (unhide, unfold) some blocks of your code.
Don't tell me you never wished it was there ;) Well - it is!
How to enable it? Look at line 4 of this script. It starts with //, but then there is this "opening curly bracket" - it marks where block of code starts. It produces that small arrow near number "4" of the code line, which you can click. You close the block with "closing curly bracket" in line 18.
Next breakthrough editor feature like that will be Search&Replace. Stay tuned!
********* Forex / Indices / Commodities traders who want to start AUTO-TRADING might want to take a look at tradingconnector.com, which allows no-latency trades execution from TradingView to MT4.