---
title: Enabling Auto Trading in MT5
description: In order for your EA to take or manage trades, Auto Trading has to be enabled in MT5 and the individual settings. A quick way to verify if your EA has auto trading enabled is to check the top right…
url: "https://www.desiretotrade.com/docs/enabling-auto-trading-in-mt5/"
updated: "2024-12-03"
category: "MetaTrader 5 EAs - General Documentation"
---

# Enabling Auto Trading in MT5

In order for your EA to take or manage trades, Auto Trading has to be enabled in MT5 and the individual settings.

A quick way to verify if your EA has auto trading enabled is to check the top right corner and if it has a "Gray Hat" then it means that Auto-Trading is disabled for the EA, It if has a "Blue Hat" then it means that the EA will be able to manage and take trades.

**Auto Trade Disabled (Gray Hat)**

[![](https://www.desiretotrade.com/wp-content/uploads/2024/12/Gray-Hat-mt5.png)](https://www.desiretotrade.com/wp-content/uploads/2024/12/Gray-Hat-mt5.png)

 

**Auto Trade Enabled (Blue Hat)**

[![](https://www.desiretotrade.com/wp-content/uploads/2024/12/Blue-Hat-mt5.png)](https://www.desiretotrade.com/wp-content/uploads/2024/12/Blue-Hat-mt5.png)

If your EA shows the Gray Hat follow the next tutorial to enable Auto Trading

---

## Enable Automated Trading in MT5

Make sure that “Allow automated trading” is checked in the “Expert Advisors” tab of the options

[![](https://www.desiretotrade.com/wp-content/uploads/2024/12/MT5-Allow-Auto-Trading.png)](https://www.desiretotrade.com/wp-content/uploads/2024/12/MT5-Allow-Auto-Trading.png)

## Verify Automated Trading Is Enabled in MT5

Check that your Automated trading icon is turned on (this is a quick way to check if automated trading is allowed)

[![](https://www.desiretotrade.com/wp-content/uploads/2024/12/MT5-Auto-Trading-Disabled.png)](https://www.desiretotrade.com/wp-content/uploads/2024/12/MT5-Auto-Trading-Disabled.png)

If the icon shows the stop icon then you can click on it to enable automated trading.

If automated trading is allowed then the icon will look as follows

[![](https://www.desiretotrade.com/wp-content/uploads/2024/12/MT5-Auto-Trading-Enabled.png)](https://www.desiretotrade.com/wp-content/uploads/2024/12/MT5-Auto-Trading-Enabled.png)

## Enable Automated Trading in the Expert Advisor (EA)

Finally, make sure that your individual EA has trading permissions by going to the EA settings and making sure that the option is checked as shown below.

[![](https://www.desiretotrade.com/wp-content/uploads/2024/12/MT5-EA-Auto-Trading.png)](https://www.desiretotrade.com/wp-content/uploads/2024/12/MT5-EA-Auto-Trading.png)

Once the steps are done you should see the Blue Hat in your EA

**Auto Trade Enabled (Blue Hat)**

[![](https://www.desiretotrade.com/wp-content/uploads/2024/12/Blue-Hat-mt5.png)](https://www.desiretotrade.com/wp-content/uploads/2024/12/Blue-Hat-mt5.png)
