Forum

zero divide error in ea mql4

Im new to Mql4 programming and in getting a zero divide error when I'm running this peace of code i got from another forum. Can any one help me fix this zero divide error please. And Kindly tell me how I fix it so that I learn. here is the code <Decompiled code deleted.>

imaonarray previous indicator's data iMA giving me wrong results

Hello I'm new to mql4 coding so please assist me in understanding why the results from the iMA() are correct yet the iMAOnArray() is giving me wrong results compared to the ones i have on the charts. Please review my code and assist me in getting the results as expected. Code attached. extern int