Download MetaTrader 5

iMAOnArray

To add comments, please log in or register
chera
86
chera  

Could you suggest function or technique similar to iMAOnArray in MQL5?

 

double  iMAOnArray(
   double       array[],          // array with data
   int          total,            // number of elements
   int          ma_period,        // MA averaging period
   int          ma_shift,         // MA shift
   int          ma_method,        // MA averaging method
   int          shift             // shift

   ); 

Enrico Lambino
4361
Enrico Lambino  
chera:

Could you suggest function or technique similar to iMAOnArray in MQL5?

 

double  iMAOnArray(
   double       array[],          // array with data
   int          total,            // number of elements
   int          ma_period,        // MA averaging period
   int          ma_shift,         // MA shift
   int          ma_method,        // MA averaging method
   int          shift             // shift

   ); 

There is a great article about migration to MQL5, it can be found here:

https://www.mql5.com/en/articles/81

It also includes translation for iMAOnArray on MQL5.

Migrating from MQL4 to MQL5
Migrating from MQL4 to MQL5
  • 2010.05.17
  • Sergey Pavlov
  • www.mql5.com
This article is a quick guide to MQL4 language functions, it will help you to migrate your programs from MQL4 to MQL5. For each MQL4 function (except trading functions) the description and MQL5 implementation are presented, it allows you to reduce the conversion time significantly. For convenience, the MQL4 functions are divided into groups, similar to MQL4 Reference.
To add comments, please log in or register