Absolute Strength Histogram indicator creates two sets of data, how do i select which data to use in EA
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().
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](https://c.mql5.com/36/28/absolute-strength-histogram-metatrader.png)
- www.mt5traders.com
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
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