How To Fix Error 4109 Trade Is Not Allowed In MT4

Error 4109 – Trade Is Not Allowed – is a very common error when working with Expert Advisors in Metatrader 4. The error is the result of a setting in the MT4 options and can be easily fixed.

What Is Error 4109 – Trade Is Not Allowed

Error 4109, or translated, Trade Is Not Allowed, is the error Metatrader 4 gives when an Expert Advisor is not allowed to trade.

When you load an Expert Advisor (EA) in your chart and this tries to submit orders automatically, MT4 checks if the operation is allowed.

The operation in particular is the function to submit orders OrderSend().

If the option is disabled then the EA cannot submit orders and triggers error 4109.

Error 4109 is just one of the many error codes in Metatrader and “Trade is not allowed” is the corresponding translation.

You can find the full list of error codes in this page.

Why Trade Is Not Allowed

This is a security measure to prevent automated trading.

Automated trading can be risky, so MT4 has options to completely disable it.

How To Check If Trading Is Allowed

When you load an Expert Advisor you can easily see if Metatrader allows automated trading or not.

How-To-Fix-Error-4109-Trade-Is-Not-Allowed-MT4-MQL4-OrderSend-1

Next to the name of the Expert Advisor you can see a face, if the face is sad it means that the EA cannot trade.

How-To-Fix-Error-4109-Trade-Is-Not-Allowed-MT4-MQL4-OrderSend-2

In this case if the EA tries to submit any order it receives error 4109 trade is not allowed.

You can also check for this error in the Experts tab of the Terminal section.

How To Fix Error 4109

Fix Error 4109 – Trade Is Not Allowed – is very simple and only requires to change 2 options.

Firstly enable Automated Trading in the MT4 Options under the Experts tab.

How-To-Fix-Error-4109-Trade-Is-Not-Allowed-MT4-MQL4-OrderSend-3

Once this is done you need to check in the EA properties that Live Trading is enabled.

How-To-Fix-Error-4109-Trade-Is-Not-Allowed-MT4-MQL4-OrderSend-4

The two options above result in having the smiling face next to the EA name.

How-To-Fix-Error-4109-Trade-Is-Not-Allowed-MT4-MQL4-OrderSend-5

Your EA can now submit, update, close and delete orders automatically.

Conclusion

Error 4109 is a common error when using Expert Advisors in MT4 and it means that “Trade is not allowed”, basically the EA cannot submit orders or changes to orders.

To Fix this error you need to enable automated trading in the MT4 options and enable live trading in the EA properties.

I hope this article was useful for you and I would appreciate if you could leave a comment for questions or feedback.

Leave a Comment