Install the Mast EA on MT5
Install Mast Guard, allow WebRequest, pair it with the code from the app, and keep the terminal running.
The EA closes positions and locks you out while your terminal runs. It does not stop orders before they fill.
Before you start: MT5 build 6060 or later, on Windows, macOS or Linux. One terminal per account.
Steps
- Download Mast Guard from Accounts, your MT5 account, Install EA.
- In MT5: File, Open Data Folder, MQL5, Experts. Copy the file there, then refresh the Navigator.
- Tools, Options, Expert Advisors: tick "Allow algorithmic trading" and "Allow WebRequest for listed URL", and add
https://api.mastrules.com. - Drag Mast Guard onto one chart. Paste the pairing code shown in the web app. Click OK.
- Make sure the Algo Trading button is on. The Mast panel on the chart turns to "Connected".
Keep it running
The EA only acts while the terminal is open and connected. A Windows VPS or MQL5 hosting keeps it on all day. For MQL5 hosting, click "Prepare MQL5 hosting" in the app first, paste that code into the EA, then migrate.
Deleting the EA's files never unlocks anything. Without its saved state, the EA becomes stricter until it hears from Mast.