Indicator within an EA

 
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?
 

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. 

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

Thank You.

Reason: