Page 45 of 75

Re: Convert MT4 indicators to MT5

Posted: Fri May 24, 2024 7:24 am
by opita
I'll give it a test run thank you

Re: Convert MT4 indicators to MT5

Posted: Fri May 24, 2024 8:05 am
by opita
Sadly, it did not work.
The settings all look good, but it doesn't seem to work.

Appreciate the effort.

Re: Convert MT4 indicators to MT5

Posted: Fri May 24, 2024 8:08 am
by JohnnyRy
opita wrote: Fri May 24, 2024 8:05 am Sadly, it did not work.
The settings all look good, but it doesn't seem to work.

Appreciate the effort.
Thanks for testing. I'll have a slower look at the code and repost it if I can fix it.

EDIT: I can see that the indicator loops through symbols within the standard iMA and iATR functions inside OnCalculate. With the additional requirements of indicator handles which are of the integer type and CppyBuffer in MQL5, I unfortunately cannot devise a way to loop through the handles inside OnCalculate. I hope that someone else who knows how to do so will chime in to your respectful request.

Re: Convert MT4 indicators to MT5

Posted: Sat May 25, 2024 4:22 am
by JohnnyRy
opita wrote: Fri May 24, 2024 8:05 am Sadly, it did not work.
The settings all look good, but it doesn't seem to work.

Appreciate the effort.
Here's another version coded in "long form" with 64 internal indicator buffers. I attached it to a EURUSD chart, and it spit out some alerts but then stalled because I don't have access to the stock index symbols in the indicator.

Note that the symbols are hardcoded into the indicator, so the symbols input is disabled now. Changes to the list of symbols will require code edits.

EDIT: I found an uncoverted line of code in version 2.1. I converted it and replaced the attached file with version 2.2.


Re: Convert MT4 indicators to MT5

Posted: Sat May 25, 2024 12:37 pm
by opita
Ohh wow, I see what you did. That is a lot of hard code. Thank you for doing that.
I'll test it at market open.

Re: Convert MT4 indicators to MT5

Posted: Sat May 25, 2024 6:23 pm
by DaveTrader

Re: Convert MT4 indicators to MT5

Posted: Sun Jun 16, 2024 9:44 pm
by ggblake
Pleasant day,
Can anyone take up the challenge of converting this mt4 indicator to mt5? Much thanks

Re: Convert MT4 indicators to MT5

Posted: Wed Jun 19, 2024 8:47 pm
by atish28
hello can someone convert these to ex5
thank you

Re: Convert MT4 indicators to MT5

Posted: Sat Jul 13, 2024 2:02 am
by lukgoku
Hi Guys,

is anyone able to convert this indicator for mt5?

Re: Convert MT4 indicators to MT5

Posted: Sat Jul 13, 2024 4:45 am
by oratilek11
Good day, may you please help in the conversion of this indicator to mt5 ,it would be much appreciated. Thank you!