EA optimizing in MT4 and Mt5

 

The EA is optimizing OK in the MT4 version but not working in the MT5 version.

This is what it is telling me.


2022.12.11 16:13:46.240 Core 04 genetic pass (0, 326) tested with error "wrong timeframe request in Open Prices mode" in 0:00:00.013

2022.12.11 16:13:46.243 MQL5 Cloud USA common synchronization completed

2022.12.11 16:13:46.243 Core 05 genetic pass (0, 330) tested with error "wrong timeframe request in Open Prices mode" in 0:00:00.009


2022.12.11 16:14:07.778 MQL5 Cloud USA genetic pass (0, 444) tested with error "wrong timeframe request in Open Prices mode" in 0:00:00.135 (PR 275)


I have previously tested an EA in both versions


thanks for any feedback

regards
 

You know that MT4 and MT5 are similar but incommensurable?

An EA for MT4 has to be migrated to MT5: 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.
 
Carl Schreiber #:

You know that MT4 and MT5 are similar but incommensurable?

An EA for MT4 has to be migrated to MT5: https://www.mql5.com/en/articles/81

Yes, I know.

Two different versions are downloaded to suit each MT and used, which I have done ok before.

Just don't why this giving me this outcome.

 

The EA makes trades on a 15min time frame.

I have downloaded the data in 1min time frames and seems to have solved the problem.

I will just have to make a phone call tomorrow to clarify that the outcome is dependable.

regards

Reason: