Need help with a custom indicator (HMA hulls moving average)
-
I'm trying to add HMA (Hulls Moving Average) into my EA, I'm having troubles with adding in a condition for the bot to pick up when the HMA turns Green or Red. I'm not sure what condition to add to have the bot pick up when it switches to enter and exit trades.
Any help is very much appreciated!here is the indicator:
0_1569271763481_hma-trend-indicator.mq4 -
The indicator has 2 buffers. The sequenceit shows values in price is:
- long (green) -> price display
- short (red) -> price display
- long (green) -> price display AND short (red) -> price display // In this case there is a change in direction.
I would use one of the block "Indicator is visible" or Indicator is invisible" if you just want to check the HMA trend.
In case you want to catch the colour change, you may try "Indicator appear" or "indicator disappear", but I haven't use those blocks, yet.
-
@scottpapetti I clicked the stuff together how I would start with it.
0_1569278250322_HMA_Sample.mq4Maybe that helps you for starting.
-
what I did with my HMA was simply, you load it on a chart and confirm which colour refers to which buffer <colour not important>. upload the indicator to my indicators and on the condition box select, my indicators on LHS, select the buffer > and on the RHS use value and numerical 1. There is a post here somewhere that all buffers return a high value when triggered <cant remember it at the moment> it returns a value 0 if not triggered.
2. I just ran a draw line at this buffer, to confirm it was reading the buffer as sometimes the colours are just painted.
3. you will have to do it on bar 1It took a bit off research to find a HMA that gave buffers for me to read
-
@sli1-0 said in Need help with a custom indicator (HMA hulls moving average):
HMA that gave buffers for me to read
sli1-0 can you please share the HMA that allow to read the buffers ?
-
@zackry Hi, Im interested in finding the same thing but I would like it for MT5 instead of MT4, any suggestions would be appreciated cheers