Please help on iMA function ! - page 2

 
WHRoeder:
  1. Why didn't you post the results. Had you, I would have seen the error immediately instead of the 1/10 side track. Since 1/10 can not be exactly represented by floating point numbers, 1/10.+1/10.+1/10.+1/10.+1/10.+1/10.+1/10.+1/10.+1/10.+1/10. is not equal 1.000000, so your Sum(C/10) will not be exactly the same as Sum(C)/10. But since you are only summing 10 numbers, the results are within 16 decimals places. (Sum a million numbers and you'll be off notably.)
  2. You must read the manual better. Ima( sym, tf, period, shift, method, applied price, iBar) applied price NOT Series arrays.

  3. tonny: Is a troll and spammer and spammer

    Please do not feed the troll.

Ha ha roeder you are so backward new improvements made it make 1,400,000 from $200 in the same period https://www.mql5.com/en/forum/135177/page4



 

You must read the manual better. Ima( sym, tf, period, shift, method, applied price, iBar) applied price NOT Series arrays.

// double x = iMA(NULL,0,10,0,MODE_SMA,MODE_CLOSE,1); // MODE_CLOSE = 3 = PRICE_LOW
   double x = iMA(NULL,0,10,0,MODE_SMA,PRICE_CLOSE,1);

Exactly ! PRICE_CLOSE instead of MODE_CLOSE. Thank you.