how can i attach indicator to EA

 

Hello

I have an indicator that for example send alert for buy or sell

How can i use it to EA for auto following of indicator ?

I mean how can i force EA to follow indicator alert ?

For example:

if(indicator-test-alert==sell)
ordersend(buy position)

else 
if (indicator-test-alert==buy)
ordersend(sell position)
Thanks
 
trader92:

Hello

I have an indicator that for example send alert for buy or sell

How can i use it to EA for auto following of indicator ?

I mean how can i force EA to follow indicator alert ?

For example:

Thanks
iCustom()
 
Just get the value of the indicator into the EA and do what you want with it. See Detailed explanation of iCustom - MQL4 forum
Reason: