Attachments forums

List of attachments posted on this forum.


All files on forums: 134126

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

trade3925, Mon Jul 06, 2020 6:50 pm

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.
All files in topic