hmm ??
Do you know there is an iMA-EA-example: Moving Average.mq4 in you expert folder?
What about changing this acc. to your ideas?
gooly:
I know this EA, but I am taking a complete different approach. Just tell me if there is something wrong with the code. Why am I not getting any values?
hmm ??
Do you know there is an iMA-EA-example: Moving Average.mq4 in you expert folder?
What about changing this acc. to your ideas?
ernest02: Just tell me if there is something wrong with the code. Why am I not getting any values?
How should we know? You have nine variables where you don't show their type or value! There are no mind readers here. Why didn't you trap GetLastError()?
MAlong = iMA(NULL,0,ShiftLong,PeriodLong,MethodLong,PRICE_CLOSE,0);
I would guess should be
MAlong = iMA(NULL,0,PeriodLong,ShiftLong,MethodLong,PRICE_CLOSE,0);
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 am writing a simple EA based on Moving Averages but my code returns zero values. It does not make sense to me.
Can somebody help please? Here is the code that returns no values / or zeroes for the variables defined (MAlong, MAmedium and MAshort):