Home > Blog > MT5 Chart Setup Basics — A Complete Guide to Initial Configuration for Running EAs

MT5Chart SetupEA InstallationInitial ConfigurationHow To

MT5 Chart Setup Basics — A Complete Guide to Initial Configuration for Running EAs

Published: 2026-05-18Read time: about 3 min
This article reflects information as of its publish date. EA performance figures (PF, DD, annual return) change with live trading and re-validation — check the latest on the EA pages. See the latest EA results

MT5 Chart Setup Basics — A Complete Guide to Initial Configuration for Running EAs

When you first install MT5 and start running an EA, there are several settings that are easy to overlook. In particular, forgetting to enable "Allow Automated Trading" or "Allow DLL Imports" is the most common reason an EA fails to execute any trades. This article walks through every setting you must verify during MT5's initial configuration.

MT5 Global Settings (Tools → Options)

After launching MT5, open Tools → Options (Ctrl+O) and verify the following.

"Trade" Tab Settings

SettingRecommended ValueReason
Stop LevelBroker defaultNo change needed
Slippage30–50Prevents order rejections during fast-moving markets
ReportExcel or AutoConvenient for monthly report management

"Expert Advisors" Tab Settings (Most Critical)

Getting this tab wrong will prevent your EA from running at all.

SettingValueRequired?
Allow Automated TradingCheck this boxRequired
Allow DLL ImportsCheck this boxDepends on the EA
Allow Imports of External ExpertsCheck this boxDepends on the EA
Allow Sending EmailsOptionalOptional

If "Allow Automated Trading" is not checked, the EA will never open a position. This is the single most common cause of the "EA isn't doing anything" problem.


Pre-Attachment Checklist Before Adding an EA to a Chart

Verify the "Auto Trading" Button in the Toolbar

MT5's top toolbar has an "Auto Trading" button.

Button is bright green → Auto Trading ON  (EA will run)
Button is grey         → Auto Trading OFF (EA will not run)

Even if you enabled "Allow Automated Trading" in Options, if this toolbar button is off, the EA will not trade. Check both.


Chart Timeframe Settings

Each EA must be attached to its designated timeframe.

EA NameRequired Timeframe
GOLD EMA ATR EAH1 (1-Hour)
GOLD Asia Range BreakH1
GOLD BB BreakoutH1
GOLD MTF TrendH1 (D1 data is fetched automatically)
GOLD Breakout EAD1 (Daily)
USDJPY Trend PullbackH4 (4-Hour)
EURUSD EMA RSI EAH1
GBPUSD Scalp EAM15 (15-Minute)

Attaching an EA to the wrong timeframe will cause it to behave incorrectly. Right-click the chart and select "Properties" to confirm the current timeframe.


Chart Color Settings

Colors do not directly affect EA behavior, but using a comfortable setup is important when monitoring charts for extended periods.

  1. Right-click on the chart → "Properties"
  2. Click the "Colors" tab
  3. Background: Black or dark navy
  4. Foreground: White
  5. Candlesticks: Bullish = Green, Bearish = Red

If running on a VPS, reducing screen brightness helps lower power consumption.


EA Parameter Window

When you drag an EA onto a chart, a settings window appears. Configure it as follows.

"Common" Tab

SettingValueNotes
Allow Automated TradingONEA will not run without this
Allow DLL ImportsONRequired for some EAs

"Inputs" Tab

This tab contains the EA's parameters. At minimum, verify the following:

  1. MagicNumber — Assign a unique number to each EA when running multiple EAs simultaneously
  2. UseFixedLot — false recommended (auto-calculates lot size from risk %)
  3. RiskPercent — 0.5–1.0 recommended
  4. UseMarginCheck — true recommended
  5. MinMarginLevel — 200 recommended

Managing Multiple Charts

When running several EAs at once, the number of open charts grows quickly. Here are settings to keep things organized.

Arranging Windows

From MT5's menu, go to Window → "Tile Horizontally" or "Tile Windows" to view all charts at once.

Saving Templates

Once a chart is configured, right-click it → "Template" → "Save Template" to preserve your settings. You can then apply the same configuration to new charts quickly.


Common Issues and Solutions

EA Is Not Opening Any Trades

Troubleshooting steps:

  1. Confirm the Auto Trading toolbar button is ON
  2. Confirm "Allow Automated Trading" is ON in the EA's settings window
  3. Confirm the chart is on the correct timeframe
  4. Confirm that EA parameters like AllowBuy / AllowSell are set to true
  5. Check the Experts tab for any error messages

"Trade is not allowed" Error

This error appears when the broker does not permit EA trading on the account type. Check your account type. XMTrading and Exness both allow EA trading.

EA Is Attached but the Smiley Face Icon Is Grey

The EA is on the chart, but automated trading is turned off. Click the Auto Trading button in the top toolbar to enable it.

"Cannot load DLL" Error

This occurs when an EA requires a DLL but the DLL permission is disabled. Go to Tools → Options → Expert Advisors → enable "Allow DLL Imports," then restart MT5.


Summary: Pre-Launch EA Configuration Checklist

  • Tools → Options → Expert Advisors → "Allow Automated Trading" is ON
  • Tools → Options → Expert Advisors → "Allow DLL Imports" is ON
  • The "Auto Trading" toolbar button is green
  • The EA is attached to a chart with the correct timeframe
  • "Allow Automated Trading" is ON in the EA parameter window
  • MagicNumber does not conflict with any other EA
  • RiskPercent is set to an appropriate value (0.5–1.0)
  • No errors appear in the Experts tab

FAQ

Q: What is the difference between MT5 and MT4?

MT5 is the successor to MT4. Key differences include: (1) support for more timeframes, (2) faster EA execution, (3) the ability to backtest multiple currencies simultaneously, and (4) EAs written in MQL5 will not run on MT4. All EAs on this site are MT5-only.

Q: If I close the chart, does the EA stop?

Yes. If you close MT5 or the chart, the EA stops. To keep it running 24 hours a day, you need to leave MT5 running on a VPS at all times.

Q: Can I use the same MT5 installation for both a demo account and a live account?

Yes. MT5 supports multiple profiles that you can switch between. However, if you want to run both demo and live simultaneously, it is recommended to install MT5 twice (using the Portable version) or run one instance on a separate VPS.

Q: Can the EA run in the background?

Yes, the EA continues to run even if you minimize MT5. However, if you fully exit MT5, the EA stops. The typical setup is to keep MT5 running on a VPS at all times and connect via Remote Desktop only when you need to check on things.


5-Day Email Course (Free)

Get one email a day covering the essentials of FX automated trading, how to read backtests correctly, and tips for choosing a broker.

* Privacy strictly protected. You can unsubscribe at any time.