Difference in EA values

 

Hi All,

I'm new to the forum and to mql4. Have just tried to create a simple ea that I can use in MetaTrader 4. Got a bit of an issue.


I'm using MA and MACD as indicators in the ea. But when I Print the ma and macd values per bar, they are different to what I see on the chart after I run the indicator... would there be a reason for this or am I doing something really wrong.

Have attached the mql4 file with this post. Any help would be very much appreciatedf.

Kind Regards

Jesse

Files:
impusehea.mq4  7 kb
 
The values from the indicators will only match what you get from iMACD/iMA if you use the Exact Same parameters used in iMACD/iMA.
 

Hi WHRoeder,

Thanks for your reply. When I run the EA in the Strategy Tested, it draws the price chart but after it finished it also draws the two indicators MA and MACD... Would these not have the same values as iMA and iMACD...?