📈 Automated Trading System
From TradingView Strategy to MT4/MT5
EA Version

Detailed Video Tutorial

📁 Step 1: Copy EA file to Experts folder

For MetaTrader 4:

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

For MetaTrader 5:

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

🌐 Step 2: Grant URL permissions to 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 with real money)

⚙️ Step 3: Enable Algo Trading

On the toolbar:

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

Check status:

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

🔧 Step 4: Configure EA

Drag EA to chart:

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

Configure parameters:

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

🔍 Check operation

Check EA log:

  • Open "Experts" tab in 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

Test connection:

  • Create signal from TradingView
  • Check if EA receives orders
  • Check if orders are executed

🚨 Troubleshooting common errors

Error 1: "WebRequest failed"

  • Cause: URL permissions 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:
    • Enable AutoTrading button on toolbar
    • Check if EA is green on chart

Error 3: "Invalid license"

  • Cause: Wrong or expired license key
  • Solution:
    • Check license key, verify that the license key you entered matches the package on the website, for EA users you can set your own license key
    • Renew license if needed, you can log into the website to view orders and click renew
    • Contact: https://tradingauto.org

Error 4: "OrderSend failed"

  • Cause: Insufficient account balance
  • Solution:
    • Check account balance
    • Check trading hours
    • Check spread

📞 Support

Contact support:

Reference documentation:

  • API Documentation: https://api1.tradingauto.org/docs
  • Message Creator: https://tradingauto.org/pages/jsonmessenger

⚠️ Important notes

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

🎉 Complete!

Now the EA will automatically enter orders when there are alerts from tradingview

This guide was last updated: [Current date]
EA Version: 1.00
Author: Quang Autotrade
Chat Support