Download MetaTrader 5

MQL5 code for Maximum price

To add comments, please log in or register
Nought Saif
Nought Saif 2016.01.10 08:03 
I got maximum or minimum price of selected bars in MQL4.


    int highesht_bar=iHighest(_Symbol,PERIOD_CURRENT,MODE_HIGH,15,1);

   int lowest_bar=iLowest(_Symbol,PERIOD_CURRENT,MODE_LOW,15,1);

 And for highest or lowest price.




But I did not found those code in MQL5 language. Anyone please help me!

Trinh Dat
Trinh Dat 2016.01.10 11:21  

Find it here

Migrating from MQL4 to MQL5
Migrating from MQL4 to MQL5
  • 2010.05.17
  • Sergey Pavlov
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