Page 40 of 75

Re: Convert MT4 indicators to MT5

Posted: Mon Apr 08, 2024 4:07 am
by JohnnyRy
Argh... Timeframe references at H1 or higher in MQL5 are not the same as in MQL4. My previous fix in version 3 blew up the middle timeframes. My bad. Fixed in version 4 which organically calculates the current timeframe from seconds:


Re: Convert MT4 indicators to MT5

Posted: Mon Apr 08, 2024 7:02 am
by pytason
JohnnyRy wrote: Mon Apr 08, 2024 4:07 am Argh... Timeframe references at H1 or higher in MQL5 are not the same as in MQL4. My previous fix in version 3 blew up the middle timeframes. My bad. Fixed in version 4 which organically calculates the current timeframe from seconds:


Candle_OutsideBar_HL_LEV_v4.ex5
Thank you so much.
Really appreciated

Re: Convert MT4 indicators to MT5

Posted: Thu Apr 11, 2024 7:59 am
by Madsakz169
I need help converting these two MT4 indicators to MT5

Re: Convert MT4 indicators to MT5

Posted: Thu Apr 11, 2024 11:43 pm
by JohnnyRy
pytason wrote: Mon Apr 08, 2024 7:02 am Thank you so much.
Really appreciated
FYI... I added stop levels to version 5 without changing the version number at mt5-inside-bars-with-1-1-risk-reward-st ... 75773.html.

Re: Convert MT4 indicators to MT5

Posted: Wed Apr 17, 2024 6:33 pm
by jbara19
jbara19 wrote: Sun Apr 07, 2024 9:27 pm hey guys
i need this simple indicator on mt5 can any one convert mq4 file to mq5 file please?
no one helps?

Re: Convert MT4 indicators to MT5

Posted: Thu Apr 18, 2024 12:32 am
by JohnnyRy
jbara19 wrote: Wed Apr 17, 2024 6:33 pm no one helps?
Unfortunately, that indicator is copyrighted by an MQL5.com seller, and I'm prohibited from reverse engineering such code by MQL5.com terms because I'm another MQl5.com seller. Although 217 lines of code may be simple in MQL4, incorporation of 3 standard MQL5 indicators will likely be about 300 lines of code. If no one else chimes in to help you, I suggest that you search YouTube for "Writing a Metatrader 5 Indicator Step by Step." It will explain the indicator handles, arrays, and CopyBuffers required in MQL5 among other code elements.

Re: Convert MT4 indicators to MT5

Posted: Thu Apr 18, 2024 6:34 am
by mrtools
jbara19 wrote: Sun Apr 07, 2024 9:27 pm hey guys
i need this simple indicator on mt5 can any one convert mq4 file to mq5 file please?
Try.

Re: Convert MT4 indicators to MT5

Posted: Fri Apr 19, 2024 10:05 pm
by jbara19
JohnnyRy wrote: Thu Apr 18, 2024 12:32 am Unfortunately, that indicator is copyrighted by an MQL5.com seller, and I'm prohibited from reverse engineering such code by MQL5.com terms because I'm another MQl5.com seller. Although 217 lines of code may be simple in MQL4, incorporation of 3 standard MQL5 indicators will likely be about 300 lines of code. If no one else chimes in to help you, I suggest that you search YouTube for "Writing a Metatrader 5 Indicator Step by Step." It will explain the indicator handles, arrays, and CopyBuffers required in MQL5 among other code elements.

thanks a lot for replying

Re: Convert MT4 indicators to MT5

Posted: Fri Apr 19, 2024 10:13 pm
by jbara19
mrtools wrote: Thu Apr 18, 2024 6:34 amTry.
there are no words to thank you properly for your contribution to this site and the hole community
so i just say thank you mate a lot and a lot
truly appreciate it

Re: Convert MT4 indicators to MT5

Posted: Sat Apr 27, 2024 9:37 am
by DaveTrader
Jedidiah wrote: Fri Nov 24, 2023 12:32 am I hope Dear kvak, Mr.Tools,
if you have time, please convert the following indicators into the MT5 version.
gratitude
I am having no luck searching for an mt5 Sema123Triangle or 2nd DOT indicator. Does anyone know where to find? If not, I would like to kindly request the conversion of the Sema indi provided by Jedidiah. Thank you for your time and consideration for mine and Jedidiah’s requests.