Absolute Strength Histogram indicator creates two sets of data, how do i select which data to use in EA

 

Hi guys, i would really appreciate your help,
The absolute strength indicator produces two sets of data. A Green line and a red line, the theory is when the green line crosses above the red line - go long. and when the red line crosses above the green line - go Short.

If you use the indicator in an EA the data that gets put out by the indicator is whatever the highest line is. So if the green line is above the red line and its sitting at 0.0009 for example, then the indicator will put out 0.0009.

My question is, does anyone know how to use both sets of data from this one indicator (the green line and the red line).

i want to code it to go long when the green line crosses above the red, and go short when the Red crosses above the green.

 I have attached an image of what the indicator looks like on your chart.

Thank you

Files:
abh.PNG  35 kb
 

Indicators use buffers (arrays of doubles) to hold data that is plotted.

Typically you reference that buffer by number.

If you post the code of the "absolute strength indicator" you are using, it should be easy enough for someone to point out which buffers hold which plots.

For example, this version
https://www.mql5.com/en/code/16794

has four buffers—two for the main lines and two for the signals. These can be referenced in an EA using iCustom().

 
Anthony Garot:

Indicators use buffers (arrays of doubles) to hold data that is plotted.

Typically you reference that buffer by number.

If you post the code of the "absolute strength indicator" you are using, it should be easy enough for someone to point out which buffers hold which plots.

For example, this version
https://www.mql5.com/en/code/16794

has four buffers—two for the main lines and two for the signals. These can be referenced in an EA using iCustom().

Thanks Anthony, i sort of get what you are saying, i appreciate you taking the time to reply.
My issue is that i have had a look at the 'absolute strength histogram' indicators code and i can not seem to find the indicator buffers numbers.
https://www.mt5traders.com/absolute-strength-histogram-metatrader-4-forex-indicator/

I have posted a link above of where to view the indicator if you like.

Thank you

Absolute Strength Histogram Metatrader 4 Forex Indicator
Absolute Strength Histogram Metatrader 4 Forex Indicator
  • www.mt5traders.com
0 Absolute Strength Histogram Metatrader 4 Forex Indicator The Absolute Strength Histogram MT4 forex indicator draws buy/sell colored histogram bars in a separate Metatrader 4 window. The histogram bars are based on a mix of trend strength and a moving average. Green absolute histogram price bars indicate the trend is bullish and currency...