How to integrate indicators into an EA.

[Deleted]  

I have been working on an EA for a while, but I can't seem to figure out how to integrate an indicator into an EA. I even created an EA with EA Builder to see how they would integrate, but I still don't understand. For example, I used BB as the indicator and in the EA it references:

iBands(NULL, 0, 20, 2, 0, PRICE_CLOSE, MODE_LOWER, Current + 0);

However, the indicator has this line:

MovingBuffer[i]=iMA(NULL,0,BandsPeriod,BandsShift,MODE_SMA,PRICE_CLOSE,i);


These don't match up and I can't figure out how the EA gets the right info from the Indicator. Could someone point me to some documentation that would make better sense of this?


Thanks!

[Deleted]  

CC

This sample EA https://www.mql5.com/en/code/8714

shows methods to call built in and standard indicators

-BB-