📈 Automated Trading System
From TradingView Strategy to MT4/MT5

EA Version - Detailed Setup Guide

Detailed Video Guide

📁 Step 1: Copy the EA file to the Experts folder

Cho MetaTrader 4:

  • Find the MT4 folder:
    • In the MT4 interface, select the menu File → Open Data Folder
    • Navigate to the folder: MQL4\Experts\
    • Copy the file tradingview.ex4 to the folder Experts

Cho MetaTrader 5:

  • Find the MT5 folder:
    • In the MT5 interface, select the menu File → Open Data Folder
    • Navigate to the folder: MQL5\Experts\
    • Copy the file tradingview.ex5 to the folder Experts

🌐 Step 2: Grant URL permission to the EA

Open Expert Advisors settings:

  • MT4: Tools → Options → Expert Advisors
  • MT5: Tools → Options → Expert Advisors

Configure WebRequest:

  • Enable "Allow WebRequest for listed URL" ✅
  • Add URL to the list:
    http://api1.tradingauto.org
  • Click "Add" after each URL
  • Click "OK" to save

Other permissions to enable:

  • ✅ Allow DLL Imports
  • ✅ Allow External Experts
  • ✅ Allow Live Trading (if you want to trade real money)

⚙️ Step 3: Enable Algo Trading

On the toolbar:

  • Find the "AutoTrading" button (green play button icon)
  • Click to enable (the button will turn green)
  • Or: View → Toolbars → Standard → Enable AutoTrading

Check status:

  • AutoTrading button green = Enabled
  • AutoTrading button gray = Disabled

🔧 Step 4: Configure the EA

Drag the EA to the chart:

  • Open Navigator (Ctrl + N)
  • Find "Expert Advisors"
  • Find the "tradingview" EA
  • Drag the EA to any chart

Configure parameters:

  • "Inputs" tab:
    Webhook_URL: https://api1.tradingauto.org/webhook (this is the webhook address to enter in TradingView) Message_Creator_URL: https://tradingauto.org/pages/jsonmessenger (this is the address to create messenger commands for TradingView strategy alerts) License_Key: [Enter license key] (Just enter the license key you registered on the website)
  • "Common" tab:
    • ✅ Allow live trading
    • ✅ Allow DLL imports
    • ✅ Allow external experts
    • ✅ Allow WebRequest for listed URL
  • Click "OK" to save the configuration

🔍 Check operation

Check EA log:

  • Open the "Experts" tab trong Terminal
  • Look for messages:
    [INFO] Valid license, expires on: [date]
    [INFO] Registered active_clients to server
    [INFO] New orders received successfully!

Check status:

  • EA button on chart green = Running
  • EA button on chart gray = Stopped
  • EA button on chart red = Error

Check connection:

  • Create a signal from TradingView
  • Check if the EA receives the order
  • Check if the order is executed

🚨 Troubleshooting common errors

Error 1: "WebRequest failed"

  • Cause: URL permission not granted
  • Solution:
    • Go to Tools → Options → Expert Advisors
    • Enable "Allow WebRequest for listed URL"
    • Add: http://api1.tradingauto.org
    • Restart MT4/MT5

Error 2: "EA not working"

  • Cause: AutoTrading not enabled
  • Solution:
    • Turn on the AutoTrading button in the toolbar
    • Check if the EA is green on the chart

Error 3: "License invalid"

  • Cause: License key is wrong or expired
  • Solution:
    • Check the license key, confirm it matches the package on the website, the EA user can set the license key themselves
    • Renew the license if needed, log in to the website to view your order and click renew
    • Contact: https://tradingauto.org

Error 4: "OrderSend failed"

  • Cause: Account balance insufficient
  • Solution:
    • Check account balance
    • Check trading hours
    • Check spread

📞 Support

Contact support:

Reference documents:

  • API documentation: https://api1.tradingauto.org/docs
  • Create Message: https://tradingauto.org/pages/jsonmessenger

⚠️ Important note

  • Always test on a demo account first
  • Do not turn off the EA while trading
  • Check license key regularly
  • Monitor logs regularly
  • Backup EA configuration

🎉 Complete!

Now the EA will automatically enter orders when alerted by TradingView

This guide was last updated: [Current Date]
EA version: 1.00
Author: Quang Autotrade