I need you to convert Pinescript code to latest Pinescript Tradingview version#4 format. Script should work the same way as original after conversion. I will require to provide source code before job approval. Please pay attention this job has nothing to do with MQL4 or MQL5 languages.