MT5 Chart Setup Basics — A Complete Guide to Initial Configuration for Running EAs
Contents
- MT5 Global Settings (Tools → Options)
- "Trade" Tab Settings
- "Expert Advisors" Tab Settings (Most Critical)
- Pre-Attachment Checklist Before Adding an EA to a Chart
- Verify the "Auto Trading" Button in the Toolbar
- Chart Timeframe Settings
- Chart Color Settings
- Dark Theme (Recommended)
- EA Parameter Window
- "Common" Tab
- "Inputs" Tab
- Managing Multiple Charts
- Arranging Windows
- Saving Templates
- Common Issues and Solutions
- EA Is Not Opening Any Trades
- "Trade is not allowed" Error
- EA Is Attached but the Smiley Face Icon Is Grey
- "Cannot load DLL" Error
- Summary: Pre-Launch EA Configuration Checklist
- FAQ
- Q: What is the difference between MT5 and MT4?
- Q: If I close the chart, does the EA stop?
- Q: Can I use the same MT5 installation for both a demo account and a live account?
- Q: Can the EA run in the background?
- Related Pages
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
| Setting | Recommended Value | Reason |
|---|---|---|
| Stop Level | Broker default | No change needed |
| Slippage | 30–50 | Prevents order rejections during fast-moving markets |
| Report | Excel or Auto | Convenient for monthly report management |
"Expert Advisors" Tab Settings (Most Critical)
Getting this tab wrong will prevent your EA from running at all.
| Setting | Value | Required? |
|---|---|---|
| Allow Automated Trading | Check this box | Required |
| Allow DLL Imports | Check this box | Depends on the EA |
| Allow Imports of External Experts | Check this box | Depends on the EA |
| Allow Sending Emails | Optional | Optional |
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 Name | Required Timeframe |
|---|---|
| GOLD EMA ATR EA | H1 (1-Hour) |
| GOLD Asia Range Break | H1 |
| GOLD BB Breakout | H1 |
| GOLD MTF Trend | H1 (D1 data is fetched automatically) |
| GOLD Breakout EA | D1 (Daily) |
| USDJPY Trend Pullback | H4 (4-Hour) |
| EURUSD EMA RSI EA | H1 |
| GBPUSD Scalp EA | M15 (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.
Dark Theme (Recommended)
- Right-click on the chart → "Properties"
- Click the "Colors" tab
- Background: Black or dark navy
- Foreground: White
- 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
| Setting | Value | Notes |
|---|---|---|
| Allow Automated Trading | ON | EA will not run without this |
| Allow DLL Imports | ON | Required for some EAs |
"Inputs" Tab
This tab contains the EA's parameters. At minimum, verify the following:
- MagicNumber — Assign a unique number to each EA when running multiple EAs simultaneously
- UseFixedLot — false recommended (auto-calculates lot size from risk %)
- RiskPercent — 0.5–1.0 recommended
- UseMarginCheck — true recommended
- 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:
- Confirm the Auto Trading toolbar button is ON
- Confirm "Allow Automated Trading" is ON in the EA's settings window
- Confirm the chart is on the correct timeframe
- Confirm that EA parameters like AllowBuy / AllowSell are set to true
- 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.
Related Pages
Related
2026-06-19
MT5 EA Not Working or Not Placing Trades — Won't Start vs Won't Trade, Fixed
2026-06-12
ERR_NO_MONEY in MQL5: Fix 'Not Enough Money' (134 & 10019)
2026-05-28
Verified Results (Revised): FXEA365 Tested All Strategies on MT5 with 132 Files — 5 Variants Passed (1 Core + 2 Support + 2 Martingale)
2026-05-22
Best Free XAUUSD EA for MT5 in 2026 | Backtest-Verified Gold Trading Bots
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.