Local Terminal (EA)

A local terminal is MetaTrader 5 running on your own PC or VPS, with the TradeHookX EA on one chart. Every signal you send is executed there - as long as that computer is on.

In simple words

The EA is a little robot you put inside MT5. You give it your license key (its "password"), and from then on it listens for your signals and places the trades. If your computer is switched off, the robot sleeps too - that is why many people use a cloud terminal instead.
Watch: Connect MetaTrader 52:58 minAll videos
0:00 / 2:58

On Advanced or Professional?

You can use a Cloud Terminal instead: MT5 runs on our servers 24/7 with the EA already installed - nothing to install. See Cloud Terminals.

Step by step

1

Create a local terminal

Open Terminals → Local Terminals and click Create Local Terminal. You get a license key - a code like TB-1A2B3C4D-... - and the setup instructions.

On Advanced / Professional a small window first asks you to confirm: this license slot is then used for your own MT5. To move it to the cloud later you must delete the local terminal first (its key is removed and the cloud terminal gets a new one).

The Local Terminals tab with the EA download and instructions
Local Terminals - your license key, the EA download and the setup steps
2

Download the EA

Click Download EA v2.40 (MetaTrader 5). The file is TradeHookX_EA.ex5 - ready to use, nothing to compile. MetaTrader 4 is coming soon.

3

Put it into MetaTrader 5

In MT5 open File → Open Data Folder, go to MQL5 → Experts and copy the file there. Restart MT5, or right-click Expert Advisors in the Navigator and choose Refresh.

4

Allow the robot to trade

Tools → Options → Expert Advisors, tick both:

required settings
[x] Allow algorithmic trading
[x] Allow DLL imports

DLL imports are needed because the EA uses a Windows connection library to talk to TradeHookX - you do not need to add any web address to MT5.

MT5 Options, Expert Advisors tab, with both settings ticked
Both highlighted boxes must be ticked
5

Attach it to ONE chart and enter your license key

Drag TradeHookX_EA onto any one chart - which symbol does not matter. In the Inputs tab paste your license key and click OK. Make sure Algo Trading in the MT5 toolbar is green.

EA input
LicenseKey = TB-XXXXXXXX-XXXXXXXX-XXXXXXXX
EA inputs with the LicenseKey field
Paste the license key from the Terminals page

One chart trades every symbol

The EA on one chart trades ALL symbols. An alert "buy GBPUSD" opens GBPUSD even if the EA sits on a EURUSD chart.

Attach the EA to one chart only

Two charts with the EA on the same account would fight over the same signals. TradeHookX blocks a second chart automatically - remove the EA from the extra chart.

Is it working?

  • •MT5: the EA icon on the chart is active and the Experts tab shows "TradeHookX EA v2.40 Starting"
  • •Terminals page: the card shows Connected (green) within a few seconds
  • •Alert Builder → Test on one of your alerts → the signal shows Executed in the Signal Log
Chart with the EA attached and algo trading on
Healthy: EA on one chart, algo trading on, terminal Connected in the portal

The local terminal card

PartWhat it does
Connected / Reconnecting / OfflineConnected = the EA spoke to us in the last 30 seconds. Reconnecting = a short gap. Offline = no contact for 2 minutes or more.
LIVE / DEMO, HEDGING / NETTINGWhat kind of account the EA reported.
SymbolsTranslate TradingView symbol names to your broker's names - see Symbol Mapping.
EA SettingsRisk limits for this terminal - see Terminal Settings & Risk.
TradesLive open positions and pending orders with profit / loss.
MissedSignals that arrived while the terminal was offline. They were NOT executed - open them by hand if you still want them.
KillBlock every signal on this terminal - see Kill Switch.
Rename (pencil)Give the terminal your own name and a colour.
Delete license / Remove terminalRemoves it. If the terminal leads or follows a copy group, you are told which groups - reassign or leave them first, or force-delete.

Updating the EA

When a new version is released, download the new TradeHookX_EA.ex5, replace the old file in MQL5/Experts and restart MT5. The chart keeps its settings and license key. Still running the old file called tradehookx_EA_v221? Remove it from the chart once, attach TradeHookX_EA and enter your license key again.

Trading by hand next to a cloud terminal

If your account already runs on a TradeHookX cloud terminal, do NOT also attach the EA on your own PC with the same license - it would steal the cloud terminal's signals, so TradeHookX refuses it ("This license runs on your TradeHookX cloud terminal"). You can still log into the same MT5 account on your PC or phone and trade by hand.