Tried to convert 50 lines of code from MT5 to MT4 and failed

1
I didn't really know where to post this so I'm making a new topic.

I have a simple MT5 indicator that I'm trying to convert to MT4 but I failed.
I looked online and there were a few articles saying that all I had to do was change the extension to .mq4 and it
would work fine but even though it compiled just fine, the indicator wasn't working correctly. So I looked at some of the
changes made in the language from MT4 to MT5 and tried to fix it but no cigar lol.|

Anyways I would really appreciate it if someone could help me fix this.
Here is a screenshot of MT4 and MT5 running it.
It's a chart scale indicator that should put the farthest bar to the right, right in the middle.

I've included the MT4 code I was working on and the original MT5 code.


Who is online

Users browsing this forum: Amazon [Bot], Bing [Bot], ChatGPT [Bot], IBM oBot [Bot], jmb1, kvak, Narutopips, Ruby [Bot], Sutatong and 97 guests