Forum

Wrong Chinese translation of MqlTradeRequest

MqlTradeRequest as documented in https://www.mql5.com/en/docs/constants/structures/mqltraderequest has "position" field and "position_by" field --- all indicate the ticket number. But in Chinese version, it is translated as "价格": a major misleading translation

How does tester deal with price gaps?

When testing my EA, I found some strange behavious of the tester: In 2017.04.24 01:02, when there apears a big gap in EURUSD M1 chart, my EA opens & closes some orders at prices that shoul NOT exist. Even when I set the tester to run in "fatest mode with open price only ", it still interpolates some

Looking for sscanf() function in MQL?

Hi, I'm looking for a function that can retrieve numeric values from a formatted string . MQL has functions like printf(), StringFormat, etc, to format values to string, but I just can not find a "formatted input" function, i.e., like C's "sscanf()". Anyone has a clue? Thanks

How to access data arrays of a custom indicator from inside the EA?

Hello all, I want to access data arrays of my custom indicator and write these data to a file for analysis. The data array in the custom indicator is like: //--- indicator buffers double profit[]; and within my EA, I want to get values of profit[] as well as its size ( ie. ArraySize(profit)

Why OrderOpenTime() returns wrong time?

Hi, I'm getting wierd result using OrderOpenTime() function. When I place a OP_BUYLIMIT order, it's time (as shown in MT4 terminal) is correct (server time). BUT when it becomes a real BUY order , it's OrderOpenTime changes to about 1 hour later of the current server time! Why could this happen