BUG - Notifications: not enough space for notification ...

To add comments, please log in or register


I know that high frequency notifications will fill and crash queue.

My use case is that I have 16 charts running on 1 minute chart and signals sometimes happen from multiple charts at once.

I know there is some limit on sending per second or minute, but it seems that the platform is not designed for fault tolerant recovery (i.e. when a fault happens e.g. too_many_messages). It should fail to send those messages in that time period but continue to function correctly when normal rate of messaging is restored.

Instead I get error Notifications: not enough space for notification ...

After this platform does not work any more to send notifications.

How do you clear the queue?

"Send less" is not an answer.

How do you clear the queue? e.g restart platform, clear config file, or call some function flush_queue?

It appears that restarting does clear queue, but is there a way to clear it programmatically?




Hi George,


Did you ever get a solution (programatical) for this? I have the same problem 


close your MT4 platform and logon again and rerun your test.

geodepe: "Send less" is not an answer.
  1. Send less (per message and per minute) is the answer. Perhaps you should read the manual.
    Strict use restrictions are set for the SendNotification() function: no more than 2 calls per second and not more than 10 calls per minute. Monitoring the frequency of use is dynamic. The function can be disabled in case of the restriction violation.
    SendNotification - Common Functions - MQL4 Reference

  2. I suggest you lock a mutex before using the function, wait  six seconds after the send before unlocking it. Problem fixed.
    Prevent EA from opening trades at the same time across 2 or more pairs? (Steve) - MQL4 and MetaTrader 4 - MQL4 programming forum

To add comments, please log in or register