make EA with a indicator

 

Dear guys

I want to make a EA base on indicator buy or sell signals. Bui I don't have source code of that indicator. Now how can I make the EA. I mean how can sent msg or get buy or sell signals from that indecator

 
dralialadin:

Dear guys

I want to make a EA base on indicator buy or sell signals. Bui I don't have source code of that indicator. Now how can I make the EA. I mean how can sent msg or get buy or sell signals from that indecator

Call the Indicator from your EA using iCustom() . . . Detailed explanation of iCustom - MQL4 forum
 

If you can display the indicator on your chart and it exposes the calculated values in the data window you can use iCustom to give you teh values that you could use to make trading decisions.

e.g.   BBUP1m15=iCustom(NULL,15,"BollingerBands",21,0,1.0,1,1);   The last but one is the position of the information you want.


Hope that might help. 

Reason: