EA Installation on VPS
Complete installation guide for setting up AFSID Expert Advisors on a VPS using MetaTrader 4 or MetaTrader 5, including terminal setup, EA file placement, WebRequest URL configuration, license preparation, chart setup, final operation check, and VPS monitoring.
Why Install EA on VPS?
A VPS helps Expert Advisors run continuously without depending on your personal computer. With a properly configured VPS, MetaTrader can stay active 24/5 or 24/7, reduce connection interruptions, support automated license communication, and provide a more stable trading environment for AFSID trading systems.
1. Before You Start
Before installing any AFSID Expert Advisor on VPS, make sure you already have the required files and access.
Recommended Preparation
Prepare your broker account, VPS login, MetaTrader installer, EA file, license details, recommended setup, and required WebRequest URLs before starting installation. This will make installation faster and reduce setup errors.
2. Required MT4/MT5 WebRequest URLs
Some AFSID Expert Advisors may require MetaTrader WebRequest permission for license activation, license verification, server communication, or optional Telegram-related features. Add the URLs below inside MetaTrader before running the EA.
https://www.api.afs-id.com
This URL is used for AFSID license activation, product verification, and authorized account validation.
https://api.telegram.org
This URL is used only when the EA product supports Telegram notification or Telegram-related communication.
Important WebRequest Notice
If the required URL is not added correctly, license activation, product validation, or Telegram notification may not work properly. Always copy the URL exactly as written, including https:// and without extra spaces.
3. Step-by-Step Installation
Login to Your VPS
Open Remote Desktop Connection from your computer and connect to your VPS using the IP address, username, and password provided by your VPS provider.
- Windows: press Start and search for Remote Desktop Connection.
- Enter your VPS IP address.
- Login using the VPS username and password.
- Wait until the Windows VPS desktop is fully loaded.
Install MetaTrader 4 or MetaTrader 5
Download and install the correct MetaTrader platform from your broker. Use MT4 for MT4 products and MT5 for MT5 products.
- Open the broker website from the VPS browser.
- Download MT4 or MT5 installer from the broker client area.
- Install MetaTrader on the VPS.
- Open MetaTrader after installation is complete.
Login to Your Trading Account
Login to your trading account using the correct account number, password, and broker server.
- Open MetaTrader.
- Click File → Login to Trade Account.
- Enter account number, password, and trading server.
- Confirm that connection status is active at the bottom-right of MetaTrader.
Add WebRequest URLs in MetaTrader
Add the required URLs to allow MetaTrader and AFSID EA to communicate with the license activation server and optional Telegram API.
- In MetaTrader, click Tools → Options.
- Open the Expert Advisors tab.
- Enable Allow WebRequest for listed URL.
- Add: https://www.api.afs-id.com
- Add: https://api.telegram.org
- Click OK to save settings.
Open the MetaTrader Data Folder
The EA file must be placed inside the correct MetaTrader data folder, not only inside the normal desktop installation folder.
- In MetaTrader, click File → Open Data Folder.
- For MT4: open MQL4 → Experts.
- For MT5: open MQL5 → Experts.
- Copy the AFSID EA file into the Experts folder.
Restart MetaTrader
After copying the EA file and adding WebRequest URLs, restart MetaTrader so the platform can detect the Expert Advisor and apply the updated settings.
- Close MetaTrader completely.
- Open MetaTrader again.
- Check Navigator → Expert Advisors.
- Make sure the AFSID EA name appears in the Expert Advisors list.
Enable Automated Trading
Expert Advisor trading must be allowed from the MetaTrader settings and from the platform toolbar.
- MT4: click Tools → Options → Expert Advisors.
- MT5: click Tools → Options → Expert Advisors.
- Enable Allow automated trading / Allow algorithmic trading.
- Enable DLL imports only if required by the product instructions.
- Click OK and make sure AutoTrading / Algo Trading button is ON.
Open the Correct Chart and Timeframe
Open the symbol and timeframe required by the selected AFSID product. Each product may have specific symbol, pair, or timeframe requirements.
- Open Market Watch.
- Right-click and choose Show All if the symbol is not visible.
- Open the required symbol chart such as XAUUSD, EURUSD, GBPUSD, BTCUSD, or other supported pair.
- Select the recommended timeframe based on product instructions.
Attach the EA to the Chart
Drag the AFSID EA from Navigator to the correct chart, then review all input settings before running it.
- Open Navigator → Expert Advisors.
- Drag the AFSID EA to the chart.
- Open the Inputs tab and review product settings.
- Enter license/account information if required.
- Click OK to attach the EA to the chart.
Check EA and License Status
After the EA is attached, confirm that the EA is active, the license is accepted, and there are no connection or permission errors.
- Check the top-right corner of the chart for EA status.
- Make sure AutoTrading / Algo Trading is enabled.
- Check the Experts and Journal tab for error messages.
- Confirm that there are no license, symbol, timeframe, WebRequest, or permission errors.
Keep VPS and MetaTrader Running
After installation is complete, keep MetaTrader running on the VPS. You may close the Remote Desktop window, but do not shut down the VPS or close MetaTrader.
- Do not close MetaTrader after EA installation.
- Do not shut down or restart VPS unless necessary.
- You may disconnect Remote Desktop safely while MetaTrader stays running.
- Check VPS and MetaTrader regularly to make sure everything is still active.
4. Final Installation Checklist
Use this checklist before allowing the EA to run on a live account.
- VPS is active and connected.
- MetaTrader is installed from the correct broker.
- Trading account is logged in using the correct server.
- WebRequest is enabled in MetaTrader.
- https://www.api.afs-id.com has been added to WebRequest URL list.
- https://api.telegram.org has been added to WebRequest URL list if required.
- EA file is placed inside the correct MQL4/MQL5 Experts folder.
- MetaTrader has been restarted after copying the EA file.
- AutoTrading or Algo Trading is enabled.
- Correct symbol and timeframe are opened.
- EA has been attached to the chart.
- License or account activation is correct.
- Experts and Journal tabs show no critical errors.
- Lot size, risk setting, and account balance are suitable.
- VPS will remain active while EA is running.
5. Common Problems and Solutions
6. Video Tutorial
AFSID video tutorial for EA installation on VPS, MT4/MT5 setup, WebRequest configuration, license activation, and final EA checking will be added soon through the official AFSID YouTube channel or official support page.
Coming Soon
Video tutorial link will be updated once the official AFSID installation video is available. Until then, clients can follow this written guide or contact AFSID support for installation assistance.
7. Important VPS Operation Notes
VPS operation affects Expert Advisor performance. A stable VPS can help reduce interruptions, but it does not remove trading risk.
- Use a VPS location close to your broker server when possible.
- Keep MetaTrader open while the EA is running.
- Do not run too many MetaTrader terminals if the VPS specification is low.
- Restart VPS only when necessary and always check MetaTrader after restart.
- Use stable VPS provider with good uptime and reliable support.
- Monitor CPU, RAM, disk space, and connection stability.
- Check Experts and Journal tabs regularly if the EA does not behave as expected.
Risk Reminder
Installing an EA on VPS does not guarantee profit. Trading results may still be affected by market volatility, broker execution, spread, slippage, account settings, VPS stability, internet connection, trading risk, product configuration, and user decisions.
Need Installation Support?
If you need help with VPS setup, MT4/MT5 installation, WebRequest URL configuration, EA activation, license setup, or product configuration, please contact AFSID support through the official support channels.
