How to use iCustom with this indicator

To add comments, please log in or register
rooky06
101
rooky06  

Hello

I would like to use this indicator (Absolute Strenght Histogram.mq4) in an EA.

I would like to catch the AlertLine Signal  (vertical lines on main chart) but i can't fint the output (only 2 buffers, the lines in the separate window).

How can I do ?

Thank you for help

Chart

William Roeder
20248
William Roeder  
rooky06: i can't fint the output (only 2 buffers,
#property indicator_buffers 2 
#property indicator_color1 clrBlue
#property indicator_color2 clrRed
Why do you expect anything other than two?
Just get the value(s) of the indicator(s) into the EA and do what you want with it.
You should encapsulate your iCustom calls to make your code self-documenting.
          Detailed explanation of iCustom - MQL4 and MetaTrader 4 - MQL4 programming forum
rooky06
101
rooky06  
whroeder1:
Why do you expect anything other than two?
Just get the value(s) of the indicator(s) into the EA and do what you want with it.
You should encapsulate your iCustom calls to make your code self-documenting.
          Detailed explanation of iCustom - MQL4 and MetaTrader 4 - MQL4 programming forum

Sorry my english is not good but i can catch the 2 buffers.

I need to catch the 2 lines in the main chart

William Roeder
20248
William Roeder  
rooky06: I need to catch the 2 lines in the main chart
Those are objects, you can't use iCustom.

No need to catch them, just look at the buffers.

   SetIndexBuffer(0,SigBulls); 
   SetIndexBuffer(1,SigBears); 
:
   SetIndexBuffer(8,b1);
   SetIndexBuffer(9,b2);
:
if (SigBulls[i]>0 && SigBulls[i+1]==0 && b2[i]>0) DrawArrow(i,"up");
if (SigBears[i]>0 && SigBears[i+1]==0 && b1[i]>0) ...
rooky06
101
rooky06  

@whroeder1 thank you i understand

To add comments, please log in or register