How can I convert a Pinescript code to MQL5 code for mt5?

 

Guys How can I re-write a piece of pinescript code in Metaeditor. I have nearly zero knowledge in coding but my aim is basically running a strategy that I run on Tradingview on mt5 as well. 

Cmfm = ((close-low) - (high-close)) / (high - low), Cmfv = Cmfm * volume, cmf = sma(Cmfv, 21) / sma(volume,21)


This is the pine script code. Can you help me re-write it for mt5