Forum

Error message 131 - Invalid Trade Volume.

I wrote an EA that is running perfectly on a demo MT4 account. When I copied it to a live MT4 account, I get an error message 131 - Invalid Trade Volume. The demo account is running under Windows 11 on a Microsoft Surface and the live account is running under Windows 10 on a Dell. I have checked

Is it possible to run multiple currency pairs in the same account at the same time?

I tried bringing up multiple charts in the same platform but since OrderSelect() does not use a MagicNumber, when it is true for one pair, it is true for all pairs, so I tried the following: for(int i = 0; i<2; i++) switch (i) { case 0: { ChartClose(0);

Retrieving Current Time Frame From EA

Is there a way to retrieve the current time frame in minutes with an EA? I tried using PERIOD_CURRENT but it only returns zero