CC
This sample EA https://www.mql5.com/en/code/8714
shows methods to call built in and standard indicators
-BB-
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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!