Attachments forums

List of attachments posted on this forum.


All files on forums: 135714

Re: [MM] MURREY MATH lines - Results are the name of the game.

global, Sun Jul 30, 2023 11:09 pm

global wrote: Fri Jul 28, 2023 1:42 pm Hi all,

I thoroughly searched the forum without success for an MQ4 Murrey Math lines indicator that draws not only the Murrey Math lines based on the current bar but that can also automatically draw the historical MM lines as shown in the screenshot below of the murrey_math_fixperiod.mq5 mq5 indicator that does this. Can someone please let me know if there is an mq4 indicator that can do this and if not, then can someone please convert the murrey_math_fixperiod.mq5 indicator below to mq4? Thank you very much and God bless.


Image
Thanks to Mr. Tools for pointing out to me that murrey_math_fixperiod.mq5 uses the murrey_math.mq5 to do it's calculations. I attached both files here. I was able to easily translate the murrey_math.mq5 into murrey_math.mq4 simply by changing the file extension to mq4 and initializing the i variable at the beginning of the start() function.

Unfortunately, I was unable to translate the murrey_math_fixperiod.mq5 to a working murrey_math_fixperiod.mq4 because it uses the CopyBuffer() and BarsCalculated() functions that are unique to mql5 only and not needed for mql4 indicators. It seems like all murrey_math_fixperiod.mq5 is doing different from murrey_math.mq5, is that it has an option to calculate the Murrey Math lines for any timeframe of your choice. If that timeframe option can be added directly into murrey_math.mq4 that would be much better, so if anyone can figure out how to do that, that would be great. Anyway, attached below are the original mq5 and my mq4 translated versions of the indicators.

One other point. I noticed that even if the same input values for CalculationPeriod=64 and StepBack=0 are used, the MM line prices displayed by murrey_math.mq4 don't match the lines displayed by other standard Murrey Math indicators and I don't know why. Test it yourself and you will see what I mean. I'm particularly interested in getting the murrey_math.mq4 line prices to match other standard MM indicator lines so I can see the historical line levels instead of only the most current levels so I can review how my closed trades interacted with those historical MM levels.
All files in topic