METATRADER PROP FIRM AUTOMATION

TradingView to prop firms on MetaTrader 4 and 5

Route TradingView strategy and indicator alerts into any MetaTrader 4 or 5 prop firm terminal that permits Expert Advisors — with percentage or pip SL/TP, fixed-lot sizing and partial close controls.

Always verify your prop firm's current terms on third-party Expert Advisors, copy-trading rules and maximum daily drawdown before enabling automated execution.

SETUP WORKFLOW

How to connect in three steps

Install the TradeAdapter EA

Download the MT5 or MT4 Expert Advisor build inside your TradeAdapter account and place it in MQL4/Experts or MQL5/Experts.

Enable Algo Trading & WebRequest

In MetaTrader open Tools → Options → Expert Advisors, tick Allow Algorithmic Trading and add https://mt.tradeadapter.com to Allow WebRequest.

Configure lot sizing & SL/TP alerts

Set order_contracts in lots in your TradingView alert JSON, include percentage or pip stop_loss/take_profit values and rehearse on a free trial / demo account first.

KEY CAPABILITIES

Execution features and controls

Stop loss & take profit in every alert

Pass target_type as percentage or pips directly inside your TradingView JSON so protective levels attach immediately at order placement.

Broker symbol suffix handling

Use the MT5 EA TradingView_Symbol input and symbol-alignment settings when your prop server appends suffixes such as .raw or .pro.

Position & lot size discipline

Control order_contracts directly from TradingView or configure EA volume scaling inputs inside your MetaTrader terminal.

Partial closing & strategy reversal

Send strategy alerts that close part of an open position or flip exposure without rewriting Pine Script into MQL4/MQL5.

ALERT PAYLOADS

Copy-ready TradingView alert JSON

MetaTrader EA alert with percentage SL/TP

Replace YOUR_MT_ACCOUNT_NUMBER with your challenge or funded MT4/MT5 login ID; keep order_contracts in lots.

{
  "mt_trading_account": "YOUR_MT_ACCOUNT_NUMBER",
  "platform": "metatrader",
  "time": "{{timenow}}",
  "ticker": "{{ticker}}",
  "order_type": "Market",
  "order_contracts": "{{strategy.order.contracts}}",
  "order_action": "{{strategy.order.action}}",
  "order_price": "{{strategy.order.price}}",
  "target_type": "percentage",
  "stop_loss": "0.01",
  "take_profit": "0.02",
  "market_position": "{{strategy.market_position}}",
  "market_position_size": "{{strategy.market_position_size}}",
  "prev_market_position": "{{strategy.prev_market_position}}",
  "prev_market_position_size": "{{strategy.prev_market_position_size}}",
  "strategy_number": "1"
}
FAQ

Frequently asked questions

TradeAdapter connects to any MetaTrader 4 or MetaTrader 5 account where the broker or prop firm allows Expert Advisors and WebRequest. Always review the prop firm's current EA policy before running on a funded or challenge account.

Yes. Because the Expert Advisor executes inside your MT4/MT5 terminal, most prop traders run MetaTrader on a dedicated VPS with Algo Trading enabled so alerts fill 24/7.

For MetaTrader 4 and 5 accounts, yes — the Expert Advisor runs inside your terminal, so MT4/MT5 must stay online with Algo Trading enabled (often on a VPS). Direct API brokers run server-to-server without MetaTrader.