Converting Pine Script code from TradingView to MQL4/EX4 Expert Advisor

 
Hi there, I have some code in Pine Script for indicators on TradingVeiw that I would like to change in the same code on MQL4/EX4 to attach code to MetaTrader4 charts and possibly add also some functions to create a bot that makes trades basing on such indicators. How can I convert the code?
 
Hire freelancers, at the top of every pages.
Reason: