Forum

how to return an array of 2 ints?

Hi, I need to write a function that returns 2 file handles, which are just ints, so I thought to declare the function like int[] getFileHandles(); but MT5 didn't support returning an anonymous sized array, and wouldn't let me return a pointer to it or even to specify the size like int*

When is CheckOpenLong called?

posted this question under General, but this seems like a better place... I'm creating my first EA following the instructions in MQL5 Wizard: How to Create a Module of Trading Signals My init function gets called and returns true. I set a break point in CheckOpenLong but the debugger never breaks

Is there a bug generating history data in Time Series?

I notice when testing some of the MT5 history loader examples that they will load a weeks worth of data beginning at 00:00 on Monday , finishing at 22:59 on Friday. The next week then begins again at 00:00 Monday (all of these time appear to be GMT+1 hr) This creates a 49 hour gap until the next