<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Smart Algotrade</title>
    <description>The latest articles on DEV Community by Smart Algotrade (smart_algotrade).</description>
    <link>https://dev.to/smart_algotrade</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Forganization%2Fprofile_image%2F16131%2F7802490f-1dda-43f4-a8ad-f2447b6efbb4.png</url>
      <title>DEV Community: Smart Algotrade</title>
      <link>https://dev.to/smart_algotrade</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/smart_algotrade"/>
    <language>en</language>
    <item>
      <title>MT4 Expert Advisor Not Trading? 10 Fixes (Error 4109, 0 and More)</title>
      <dc:creator>Smart Algotrade</dc:creator>
      <pubDate>Sun, 15 Nov 2026 14:39:16 +0000</pubDate>
      <link>https://dev.to/smart_algotrade/mt4-expert-advisor-not-trading-10-fixes-error-4109-0-and-more-fm0</link>
      <guid>https://dev.to/smart_algotrade/mt4-expert-advisor-not-trading-10-fixes-error-4109-0-and-more-fm0</guid>
      <description>&lt;p&gt;If your Expert Advisor (EA) is not trading, the good news is that the cause is almost never the EA itself. In most cases it is a single setting in MetaTrader 4, and you can find it in a couple of minutes. This guide walks through every common reason, starting with the fastest checks.&lt;/p&gt;

&lt;h2&gt;
  
  
  The short answer
&lt;/h2&gt;

&lt;p&gt;Check these five things in order. Together they solve the large majority of cases:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The &lt;strong&gt;AutoTrading&lt;/strong&gt; button in the toolbar is switched on.&lt;/li&gt;
&lt;li&gt;The chart shows a &lt;strong&gt;smiley face&lt;/strong&gt;, not a sad one, next to the EA name.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Allow live trading&lt;/strong&gt; is ticked in the EA's settings.&lt;/li&gt;
&lt;li&gt;The EA is attached to the right &lt;strong&gt;symbol and timeframe&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The &lt;strong&gt;Experts&lt;/strong&gt; and &lt;strong&gt;Journal&lt;/strong&gt; tabs show no errors.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If all five look right and it still does nothing, keep reading.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Check the smiley face first
&lt;/h2&gt;

&lt;p&gt;When you attach an EA to a chart, MT4 shows its name in the corner of the chart with a small face next to it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Smiley face:&lt;/strong&gt; the EA is running and can trade.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sad face:&lt;/strong&gt; the EA is running but cannot trade.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No name at all:&lt;/strong&gt; the EA is not attached, or it failed to load.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A sad face almost always points to one of the next two sections. No name at all usually means the file is in the wrong folder - see this step-by-step guide on &lt;a href="https://www.smartalgotrade.com/install-expert-advisor-into-metatrader-4/" rel="noopener noreferrer"&gt;how to install an Expert Advisor into MetaTrader 4&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. The AutoTrading button is off
&lt;/h2&gt;

&lt;p&gt;This is the most common reason. The &lt;strong&gt;AutoTrading&lt;/strong&gt; button is a master switch for every EA in the terminal. When it is off, it shows red and every chart shows a sad face.&lt;/p&gt;

&lt;p&gt;Click it once to switch it on - it should turn green. MT4 can switch it off again by itself when you change account or load a different profile. If it keeps turning off, open &lt;strong&gt;Tools → Options → Expert Advisors&lt;/strong&gt; and untick the options that disable automated trading on those changes.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. "Allow live trading" is not ticked
&lt;/h2&gt;

&lt;p&gt;AutoTrading is the global switch; each EA also has its own permission. Right-click the chart, choose &lt;strong&gt;Expert Advisors → Properties&lt;/strong&gt;, open the &lt;strong&gt;Common&lt;/strong&gt; tab and tick &lt;strong&gt;Allow live trading&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;If this box is empty, the EA runs but cannot place orders, and MT4 reports &lt;strong&gt;error 4109&lt;/strong&gt; in the Experts tab. While you are there, check the &lt;strong&gt;Long &amp;amp; Short&lt;/strong&gt; setting - if it allows one direction only, the EA ignores every signal in the other.&lt;/p&gt;

&lt;p&gt;To make this the default, tick &lt;strong&gt;Allow automated trading&lt;/strong&gt; in &lt;strong&gt;Tools → Options → Expert Advisors&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Wrong chart, symbol or timeframe
&lt;/h2&gt;

&lt;p&gt;Most EAs are built for specific pairs and a specific timeframe. On the wrong chart, the EA may wait forever because its conditions never occur. Running more than one EA? Give each its own chart - here is how to &lt;a href="https://www.smartalgotrade.com/algo-trading-blog/run-multiple-expert-advisors-one-mt4-account/" rel="noopener noreferrer"&gt;run multiple Expert Advisors on one MT4 account&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Watch out for &lt;strong&gt;symbol suffixes&lt;/strong&gt;. Many brokers name pairs &lt;code&gt;EURUSD.m&lt;/code&gt;, &lt;code&gt;EURUSDpro&lt;/code&gt; or &lt;code&gt;EURUSD-ECN&lt;/code&gt;. An EA that expects plain &lt;code&gt;EURUSD&lt;/code&gt; may not recognise the symbol and never trade.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Market closed or no new tick
&lt;/h2&gt;

&lt;p&gt;An EA's &lt;code&gt;OnTick()&lt;/code&gt; runs only when a new price tick arrives. Attach it at the weekend or in a quiet holiday session and it will sit still until the market moves. That is normal, not a fault.&lt;/p&gt;

&lt;p&gt;Also check the connection indicator in the bottom-right corner - it should show traffic, not &lt;em&gt;No connection&lt;/em&gt; or &lt;em&gt;Invalid account&lt;/em&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Read the Experts and Journal tabs
&lt;/h2&gt;

&lt;p&gt;Open the Terminal window with &lt;strong&gt;Ctrl+T&lt;/strong&gt;. &lt;strong&gt;Experts&lt;/strong&gt; shows messages from the EA; &lt;strong&gt;Journal&lt;/strong&gt; shows messages from the platform and the broker. The codes you are most likely to see (meanings from the MQL4 documentation):&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Error&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;th&gt;What to check&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Broker blocks automated trading&lt;/td&gt;
&lt;td&gt;Ask broker support to enable EA trading&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4109&lt;/td&gt;
&lt;td&gt;Trade is not allowed&lt;/td&gt;
&lt;td&gt;Allow live trading and AutoTrading&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;133&lt;/td&gt;
&lt;td&gt;Trade is disabled&lt;/td&gt;
&lt;td&gt;Account type or investor password&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;134&lt;/td&gt;
&lt;td&gt;Not enough money&lt;/td&gt;
&lt;td&gt;Free margin and lot size&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;131&lt;/td&gt;
&lt;td&gt;Invalid trade volume&lt;/td&gt;
&lt;td&gt;Lot below the minimum or wrong step&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;130&lt;/td&gt;
&lt;td&gt;Invalid stops&lt;/td&gt;
&lt;td&gt;SL or TP too close to price&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;132&lt;/td&gt;
&lt;td&gt;Market is closed&lt;/td&gt;
&lt;td&gt;Trading hours for that symbol&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;146&lt;/td&gt;
&lt;td&gt;Trade context is busy&lt;/td&gt;
&lt;td&gt;Too many EAs trading at once&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;If the tabs are silent, the EA is probably running normally and waiting for a signal.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Error 0: the broker blocked EA trading
&lt;/h2&gt;

&lt;p&gt;The order fails with &lt;strong&gt;error 0&lt;/strong&gt; even though AutoTrading is green and the chart shows a smiley face. The problem is not in MT4 - the broker has blocked automated trading on your account.&lt;/p&gt;

&lt;p&gt;Nothing in the terminal will fix it. Contact your broker's support, give them your account number, mention error 0, and ask them to enable automated (EA) trading.&lt;/p&gt;

&lt;h2&gt;
  
  
  8. Not enough margin or wrong lot size
&lt;/h2&gt;

&lt;p&gt;If free margin is too low, the broker rejects the order with &lt;strong&gt;error 134&lt;/strong&gt; - common on small accounts after a few losses.&lt;/p&gt;

&lt;p&gt;If the EA calculates a lot size below the minimum (usually 0.01) or off the broker's lot step, the order fails with &lt;strong&gt;error 131&lt;/strong&gt;. A free &lt;a href="https://github.com/smartalgotrade-sudo/mt4-lot-size-calculator" rel="noopener noreferrer"&gt;MT4 lot size calculator script&lt;/a&gt; helps you check the right size, and this guide explains &lt;a href="https://www.smartalgotrade.com/algo-trading-blog/how-much-money-do-you-need-to-start-algo-trading/" rel="noopener noreferrer"&gt;how much money you need to start algo trading&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  9. Investor password or account type
&lt;/h2&gt;

&lt;p&gt;MT4 accounts have two passwords. The &lt;strong&gt;master&lt;/strong&gt; password allows trading; the &lt;strong&gt;investor&lt;/strong&gt; password is read-only. Logged in with the investor password, every order fails with &lt;strong&gt;error 133&lt;/strong&gt;. Log in again with the master password, and confirm with your broker that your account type allows automated trading.&lt;/p&gt;

&lt;h2&gt;
  
  
  10. Your computer went to sleep
&lt;/h2&gt;

&lt;p&gt;An EA only works while MT4 is open and connected. If the computer sleeps, shuts down or loses internet, the EA stops. That is why traders who run EAs full-time use a low-cost &lt;strong&gt;VPS&lt;/strong&gt; that stays online 24/7.&lt;/p&gt;

&lt;h2&gt;
  
  
  Can an EA run on the MT4 mobile app?
&lt;/h2&gt;

&lt;p&gt;No. The MT4 apps for Android and iPhone do not run Expert Advisors. You can watch the trades, but the EA must run on the desktop terminal or a VPS.&lt;/p&gt;

&lt;h2&gt;
  
  
  When the EA is working but just not trading
&lt;/h2&gt;

&lt;p&gt;Sometimes nothing is wrong: smiley face, AutoTrading green, clean tabs. The EA is simply waiting for its conditions. Some strategies trade several times a day; others wait days for a setup.&lt;/p&gt;

&lt;p&gt;Check how often the EA normally trades by looking at its backtest - here is &lt;a href="https://www.smartalgotrade.com/algo-trading-blog/how-to-read-an-mt4-backtest-report/" rel="noopener noreferrer"&gt;how to read an MT4 backtest report&lt;/a&gt;. If it hardly trades even in its own backtest, or the results look too good to be true, read &lt;a href="https://www.smartalgotrade.com/algo-trading-blog/why-most-expert-advisors-fail/" rel="noopener noreferrer"&gt;why most Expert Advisors fail&lt;/a&gt; and &lt;a href="https://www.smartalgotrade.com/algo-trading-blog/how-to-spot-a-scam-expert-advisor/" rel="noopener noreferrer"&gt;how to spot a scam Expert Advisor&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Final thoughts
&lt;/h2&gt;

&lt;p&gt;An EA that is not trading is rarely broken. Work through the checks in order: AutoTrading, the smiley face, Allow live trading, the chart, then the Experts and Journal tabs. Most problems end in the first two minutes.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://www.smartalgotrade.com/algo-trading-blog/mt4-expert-advisor-not-trading/" rel="noopener noreferrer"&gt;Smart Algotrade Algo Trading Blog&lt;/a&gt;. Smart Algotrade develops automated Forex trading robots for MetaTrader 4.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Risk warning: Forex and CFD trading involves significant risk of loss.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>mql4</category>
      <category>trading</category>
      <category>tutorial</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
