Download MetaTrader 5

Indicator within an EA

To add comments, please log in or register
MQL5 language supports OpenCL. Try it!
jimstow
27
jimstow 2016.01.20 21:48 
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
9644
Keith Watford 2016.01.20 22:23  

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
14532
whroeder1 2016.01.21 14:37  
Don't do that. Just get the value of the indicator. Detailed explanation of iCustom - MQL4 forum
jimstow
27
jimstow 2016.01.26 18:52  
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