From MQL4 MODE_TICKVALUE to MQL5

 

Hi

why at the back test i get different result of the tickvalue between MQL4 and MQL5


1. when i run a back test at MQL4 OF MODE_TICKVALUE i get value of 0.96 (base currency USD trade symbol USDJPY)

   Comment(MarketInfo(NULL,MODE_TICKVALUE));

2. but when i run a back test at MQL5 for the same pair i get value of 0.87  (base currency USD trade symbol USDJPY)

Comment(SymbolInfoDouble(_Symbol,SYMBOL_TRADE_TICK_VALUE));

3. when i run it on live chart the result are same 0.96


I was read the  migrating from MQL4 to MQL5 and its look like the code its ok but still i get a different result


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

Migrating from MQL4 to MQL5
Migrating from MQL4 to MQL5
  • 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.