Hma Ea - page 14

 

HMA_v2 usage

I have a question about using HMA_v2 from within an EA. When I drop the indicator on a chart and set ColorMode to 1 I see all three colors. Yellow which I assume is "neutral", LightBlue for "up trend" and Tomato for "down trend". The problem I have is from my EA I know when the trend is up and when the trend is down but not when it is neutral. Will someone please tell me how to know when the trend is neutral. I grabbed the first five values returned from the indicator. If trend > 0 then up, if trend < 0 then down so I assumed that trend = 0 was neutral but it seems trend will always be 1 or -1. Please help.

Thanks!

Here are sample values taken at the start of new bars.

ind_buffer0 Uptrend Dntrend ind_buffer1 trend

1.2796 2147483647.0000 1.2796 1.2790 -1.0000

1.2860 1.2860 2147483647.0000 1.2857 1.0000

1.2858 2147483647.0000 1.2858 1.2855 -1.0000

1.2820 1.2820 2147483647.0000 1.2824 1.0000

 

Yellow color does not mean "neutral", because it's a signal or 1st bar with a different slope than previous.

So you should use trend buffer(-1 or 1) in your EA.

icwalter:
I have a question about using HMA_v2 from within an EA. When I drop the indicator on a chart and set ColorMode to 1 I see all three colors. Yellow which I assume is "neutral", LightBlue for "up trend" and Tomato for "down trend". The problem I have is from my EA I know when the trend is up and when the trend is down but not when it is neutral. Will someone please tell me how to know when the trend is neutral. I grabbed the first five values returned from the indicator. If trend > 0 then up, if trend < 0 then down so I assumed that trend = 0 was neutral but it seems trend will always be 1 or -1. Please help.

Thanks!

Here are sample values taken at the start of new bars.

ind_buffer0 Uptrend Dntrend ind_buffer1 trend

1.2796 2147483647.0000 1.2796 1.2790 -1.0000

1.2860 1.2860 2147483647.0000 1.2857 1.0000

1.2858 2147483647.0000 1.2858 1.2855 -1.0000

1.2820 1.2820 2147483647.0000 1.2824 1.0000
 

Igorad - With the new 5 digit pricing, the TesterReportv1.1.mq4 shows x10 the values. I've taken a peek at the program code but there is nothing I can adjust to compensate as far as I can make out. Could you suggest a solution?

 

.zip files for Settings and Statements

My computer has WinRar and when I download any of the Settings or Statements .zip files then try to extract them, I get a message "The archive is either in unknown format or corrupted". Do I need to change something in the file name before it will open? Cheers - magnificant work has been done on this thread.

 

May be you have old version of Winrar.

Download new one: https://www.mql5.com/en/forum/173397/page11

 

Final and current best set of files to use

Hi

I have read the total thread and the good work done. I have downloaded what I think are the latest or best revisions to use for each file type. The large number of versions has got me a little confused. Is it possible to re-post the final revision set of the required files to use to run the HMA EA with a simple instruction on what to load? Cheers

 

Updated the "gbpusd" version too : hmaexpert_v2_gbpusd_nmc.mq4

_______________________

This one also need "HMA_v2" indicator in order to work (it can be donloaded from here Forex TSD - forex forum - Download HMA_v2.mq4 among other places) and "Efficiency_v1.1" indicator (from this post : Hma Ea )

 
newdigital:
I checked right now.

I went to post #1, saw the words

"HMAExpert_v2 with Efficiency indicator as a filter is here."

so I clicked on the link and checked the version 2 on this post https://www.mql5.com/en/forum/177753/page3 and it is not a problem.

This EA is using 2 indicators:

Efficiency_v1.1 and HMA_v2 indicators.

No need to attach indicators to the chart.

Just place them in indicators folder and compile.

Or use the version I tested (EAs attached).

And do not forget about 2 indicators.

Updated "eurusd" version that avoids compiler warnings : hmaexpert_v2_eurusd_nmc.mq4

It needs "HMA_v2" indicator in order to work (it can be donloaded from here Forex TSD - forex forum - Download HMA_v2.mq4 among other places) and "Efficiency_v1.1" indicator (from this post : https://www.mql5.com/en/forum/177753/page3 )

 

And finally the "usdjpy" version updated too : hmaexpert_v2_usdjpy_nmc.mq4

PS: same indicators needed by this one as for the previous two experts

 

Updated HMA experts version 2.1 : hmaexpert_v2.1_nmc.mq4

Files: