B124 - MT4 Last error 132 market closed - hyper activity

Hello i have see this error 132 with more brokers on more strategies .
Failed modification for "market closed". in the photo i have send one example of this error, but other people also found the same mistake.

Non-retryable error: 132  ::  market is closed
2019.10.03 23:00:01.147    EUH1Strategy 1.45.131 EURUSD,H1: OrderModifyReliable v36:     Failed to execute modify after 10000 retries

Orders cannot be changed clearly because the market is closed, and with many EAs mt4 falls, and an email arrives from the Broker of hyper activity.

How to solve this problem?

Attachments
errorlogEA.txt
(756.48 KiB)
foto2.png
(285.63 KiB)
  • Votes +1
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority Normal

History

FC
#1

Kenzo105

03.10.2019 23:32

Task created

fG
#2

Gianfranco

04.10.2019 10:59
Voted for this task.
fG
#3

Gianfranco

04.10.2019 10:59
i have some errors
h
#4

hankeys

04.10.2019 12:02
are you using latest MQL code? because 10000 retries are only for general purposes, mostly because of "trade context is busy"


there were times in the old builds, where 10000 retries were also for bad price error, and thus MQL code firing to a broker new orders, which cant be placed and this could lead to hyperactivity and some intervention from broker side


int retry_attempts       = 10000; // general retry attempts

int retry_attempts_bad_price   = 3;  // retry attempts if the error is bad price

double sleep_time       = 2.0;

double sleep_maximum       = 20.0;

FC
#5

Kenzo105

04.10.2019 12:49
Hi Hankeys, yes I'm using the latest code.

could the problem be solved trying to know if the market is open or closed before making the order, or after the first failed attempt for the closed market you could avoid having the operations repeated ...?


I think it is possible to continue to repeat the operations until the market opens without orders being sent to the broker ...


TB
#6

Tomas Brynda

28.11.2019 09:55

Status changed from New to Fixed

Hi Kenzo105,

I suggest using OpenBarDelay parameter in your EA so it delays order execution on bar open.

It is useful in situations when the broker for example doesn't process orders a few minutes after midnight.

But keep in mind that in may have an impact on strategy's results and they may not match with SQ. It is useful only on higher timeframes.


Or a second option is to set Limit Time Range trading option so it trades only in a specified time range.


Hope it helps


Best regards,

Tomas


Votes: +1

Drop files to upload

or

choose files

Max size: 5MB

Not allowed: exe, msi, application, reg, php, js, htaccess, htpasswd, gitignore

...
Wait please