Hi, i am trying to convert a tradingview indicator into mt4 but i am not expert in either language and this is out of my reach so i wonder if i could get some help here (sorry if this is not the place for asking it).
The indicator is a divergence indicator that finds if there is a divergence between the price and a indicator (rsi,macd,cci,stoch…) and if there is a divergence it gives +1 so if 4 of them give divergence at the same time it will return 4 (red or green depending bullish or bearsih , orange and light green for hidden ones)
You can find the full code here: https://www.tradingview.com/script/LXz2NC1b-Multiple-divergences-NON-REPAINT-by-PeterO/
PD: I want to backtest a strategy that uses this indicator, so if its not possible to convert it into mql4, i would appreciate a conversion to prorealcode, to try the strategy there.
Thanks for your attention!