Download MetaTrader 5

Indicator within an EA

To add comments, please log in or register
jimstow
27
jimstow  
The indicators I see are only within an Indicator. Can you have an indicator within an EA and, if so, how do you set up the buffers? Also how does the EA code sense the indicator signals?
Keith Watford
Moderator
10064
Keith Watford  

You can access an indicator's data with iCustom.

An EA doesn't have buffers, so if you want to write the indicator code into an EA's code, you will have to use arrays. 

whroeder1
15086
whroeder1  
Don't do that. Just get the value of the indicator. Detailed explanation of iCustom - MQL4 forum
jimstow
27
jimstow  
WHRoeder:
Don't do that. Just get the value of the indicator. Detailed explanation of iCustom - MQL4 forum

Thank You.

To add comments, please log in or register