How to Automate TradingView Alerts on OANDA (MT4 and MT5)
OANDA connects to TradingView's trading panel for manual trades, but alerts can't place trades on their own. To automate them, send each alert as a webhook to a bridge, and an EA in your OANDA MT4 or MT5 terminal places the order. US accounts get MT4 for forex, and the FIFO rule means trades with stops need unique sizes.
We make TradingView Link, an EA bridge. We aren't affiliated with OANDA and earn nothing from the links on this page. Every OANDA detail below comes from OANDA's own websites and help centre, checked December 2026. OANDA runs several companies with different offers, so check which one holds your account.
Which OANDA entity gives you MT4 or MT5?
OANDA's division page assigns clients by residence. Your entity decides which MetaTrader version you can automate:
| Entity | MetaTrader | TradingView |
|---|---|---|
| US: OANDA Corporation | MT4, forex | Same account |
| UK: OANDA Europe | MT4 or MT5 | Yes |
| EU: OANDA TMS | MT5 | CFDs account |
| Select countries: OANDA Global Markets | MT5 only | Same account |
- US: OANDA's account comparison lists "OANDA Web platform and mobile and tablet apps, plus TradingView and MT4". Its MT4 page answers "Can you trade cryptocurrency on MetaTrader 4 with OANDA?" with "You can't", so MT4 is for forex pairs.
- UK: the account comparison puts MT4 on the v20 account and MT5 on OANDA One.
- OANDA Global Markets: "As of 7th October 2024, we do not support trading on MetaTrader 4 (MT4)", its help centre says. It serves a list of countries including Chile, Colombia, Indonesia, Malaysia, Mexico, the Philippines, Taiwan, Thailand, the UAE and Vietnam.
- No minimum deposit at the US, UK or global entity: "There is no minimum deposit or minimum balance required to open or maintain an OANDA account".
Can one OANDA account trade from TradingView and run an EA?
In the US, yes. OANDA's sub-account page lists where a v20 MT4 sub-account takes orders: "OANDA mobile, OANDA web, OANDA desktop*, MT4 desktop, MT4 web, MT4 mobile, TradingView". It adds that "the definitive system of record" is "the v20 account", "not the MT4 account that is linked to the v20 account". So an EA in MT4 and your clicks on TradingView's panel trade the same balance.
OANDA Global Markets says the same about MT5: it
"connects to OANDA's own proprietary mobile app and
TradingView, giving you a unified trading experience". On TradingView, its symbols carry suffixes such as
EURUSD.ONE or EURUSD.SML.ONE, depending on the account type.
TradingView's panel is for placing trades by hand, and an alert only sends a message, so automating alerts still needs a bridge. Give your alert trades their own magic number to keep them apart from manual ones.
What does the FIFO rule mean for US accounts?
US accounts follow OANDA's FIFO requirement, which requires "all trades that have a take profit (TP), stop loss (SL), or trailing stop (TS) to be a unique size". Two open EURUSD trades of 0.10 lots, both with a stop loss, aren't allowed: the second is cancelled.
- The EA isn't told. OANDA says MT4 has the same restrictions, "However, OANDA is unable to inform customers of these cancellations when they are running expert advisors (EAs), although they will still receive a message in their MT4 Mailbox."
- Vary the size. If a strategy can open a second trade on the same pair, give each entry a
different
q=, such as 0.11 and 0.12 lots, or send one entry and add to it only without stops. - Check the Mailbox after your first live alerts, so a cancelled trade doesn't go unnoticed.
The FIFO rule applies only to OANDA Corporation. In the UK, OANDA One with MT5 has "Hedging is always enabled", while v20 accounts net by default and can open a sub-account with hedging enabled.
How do you write the alert for an OANDA account?
Line 1 is your webhook password, and each line after it is one command:
YourWebhookPassword
long EURUSD q=0.11 sl=300 tp=600 m=4101 sl and tp are distances in points, your broker's smallest price step, so on a 5-digit
EURUSD quote sl=300 is a 30-pip stop. The odd size, 0.11 lots, leaves room for other trades on the
pair under FIFO. The numbers are only an example, not a recommendation. To close the strategy's trades:
YourWebhookPassword
flat EURUSD m=4101 Copy each symbol exactly as your MT4 or MT5 Market Watch shows it. OANDA's MT4 guide says to right-click Market Watch and choose Show All to see every pair. Our symbol mapping guide covers names that differ between TradingView and your broker.
How do you connect TradingView to OANDA, step by step?
- Get a TradingView plan with webhooks, which start at Essential, and turn on 2-factor authentication. Our plan comparison has the details.
- Open an OANDA account with MetaTrader: a v20 MT4 sub-account in the US, MT4 or OANDA One with MT5 in the UK, or MT5 at OANDA Global Markets.
- Log in to it in the MT4 or MT5 desktop terminal. OANDA says the login ID and server are in its HUB.
- Create a webhook in TradingView Link, then install the EA, allow WebRequest and DLL imports, and attach it to one chart, as in the MT4 guide or the MT5 guide.
- Keep the terminal running on a PC or a Windows VPS. Our VPS guide explains when you need one.
- Send a test alert on an OANDA demo account, with the same symbols and sizes, before you go live.
Will OANDA pay for your VPS or TradingView plan?
- VPS: OANDA works with BeeksFX and Liquidity Connect, and in the US says "Join our Elite Trader program and we'll cover your VPS subscription". Elite Trader starts at $10,000,000 of volume each calendar month.
- TradingView plan (US): a 3-month free subscription to Essential, Plus or Pro for $10,000, $100,000 or $1,000,000 of notional volume. It is "Open to clients who have not placed a trade in the preceding 4 months" and the "Offer ends December 31, 2026."
- Server time: "MT4 daily candles close at
5 PM EST (GMT+2)". On UK MT5 the server is
"set to GMT +2 in winter and GMT +3 in summer". Session
filters in an alert (
s=) use this server time.
What does it cost?
- TradingView: a plan with webhooks, from Essential, unless OANDA's offer covers it.
- TradingView Link: $0 on the Free plan (5 alerts per month, about 20 seconds each), or $4.99/month for Basic (500 alerts per day). See all plans.
- OANDA: spreads, with no minimum deposit. Its global entity lists "Commission US$0" on its standard account.
Trading leveraged products is risky. This page summarizes OANDA's public pages as of 3 December 2026, and it isn't financial advice. TradingView Link isn't affiliated with OANDA, TradingView or MetaQuotes.
Frequently asked questions
Can I connect TradingView to OANDA?
Yes, in two ways. OANDA's own connection lets you trade from TradingView's charts by hand. To have alerts place trades automatically, send them as webhooks to a bridge, and an EA in your OANDA MT4 or MT5 terminal places the orders.
Is my OANDA TradingView account the same as my MT4 account?
In the US, yes. OANDA's v20 MT4 sub-account takes orders from MT4 and from TradingView, and OANDA says the v20 account, not the linked MT4 account, is the system of record. OANDA Global Markets also connects one MT5 account to its app and TradingView.
Can US traders automate TradingView alerts on OANDA?
Yes, on MT4, which OANDA Corporation offers for forex. Mind the FIFO rule: every trade with a stop loss, take profit or trailing stop must be a unique size, and OANDA can't warn an EA when it cancels one. Crypto can't be traded on OANDA's US MT4.
Does OANDA offer MT5?
Not in the US. OANDA's UK entity offers MT5 on its OANDA One account, its EU entity offers MT5, and OANDA Global Markets offers MT5 only, having stopped supporting MT4 on 7 October 2024.
Does OANDA allow EAs?
Yes. OANDA says MT4 lets you build your own expert advisors or buy them from third parties, and its global entity calls MT5 an "ideal environment for EA traders". US accounts must still follow the FIFO rule.
Will OANDA pay for my VPS or TradingView plan?
A VPS only for very active traders: OANDA covers the VPS of US Elite Traders, which needs $10 million of volume a month. In the US, OANDA also offers three months of TradingView Essential, Plus or Pro for trading volume, to clients who haven't traded in 4 months, until 31 December 2026.
Sources
- OANDA: divisions and who they serve
- OANDA US: TradingView, account comparison, sub-account differences, MetaTrader 4, FIFO requirement, MT4 candle times, TradingView guide, TradingView offer, VPS partners and Elite Trader
- OANDA UK: platforms, account differences, MetaTrader 5 and TradingView guide
- OANDA Global Markets: MT4 support, account comparison, eligible countries and TradingView guide
- OANDA TMS (EU): TradingView
- OANDA: minimum deposit
- TradingView: pricing and plan table
- TradingView: about webhooks
All checked December 2026.
Related guides
- How to connect TradingView to MT5
- How to connect TradingView to MT4
- PineConnector alternative with MT4 support
- Best TradingView to MT5 bridges, compared
- Free TradingView to MT5 bridge: what you get for $0
- Free and cheapest TradingView to MT4 bridges
- TradingView trade copier for MT4 and MT5: three types compared
- How to automate a TradingView strategy on MT4 and MT5
- TradingView to MT5 not working? How to fix it
- Prop-firm EA rules: FTMO, FundedNext and The5ers
- TradingView webhook to MT5 and MT4: URL, message format and examples
- TradingConnector alternative for MT4 and MT5
- WebhookTrade alternative for MT4 and MT5
- How to convert Pine Script to MQL5, and when not to
- Does TradingView's free plan have webhooks? Plans compared
- Do you need a VPS for TradingView to MT5?
- How to automate a TradingView strategy on FTMO
- FundedNext TradingView automation: EA rules and setup
- E8 Markets TradingView automation: EA rules and MT5 setup
- FXIFY TradingView automation: EA rules and MT5 setup
- Funded Trading Plus TradingView automation: EA rules and MT5 setup
- The5ers TradingView automation: can you use an EA?
- FundingPips TradingView automation: can you use an EA?
- Alpha Capital Group TradingView automation: can you use an EA?
- How to run multiple strategies on one MT5 account with magic numbers
- TradingView alert stop loss and take profit on MT4 and MT5
- How to close MT4 and MT5 trades from a TradingView alert
- TradingView alert lot size and risk per trade on MT4 and MT5
- TradingView to MT5 symbol mapping: names and suffixes at 9 brokers
- TradingView indicator alerts to MT5: buy, sell and exit alerts
- TradingView alert limit and stop orders on MT4 and MT5
- TradingView alert session and trading hours filter on MT4 and MT5
- TradingView alerts to multiple MT5 and MT4 accounts with alert sharing
- TradeSgnl alternative: pricing, MT4 support and TradeSgnl vs PineConnector
- How to send TradingView alerts to Telegram and MT5
- MetaConnector alternative: pricing, MT4 support and MetaConnector vs PineConnector
- SignalForge alternative: pricing, hosting and SignalForge vs PineConnector
- TradingView.to alternative: TradingView To Anywhere vs TradingView Link
- TradersPost alternative for MT4 and MT5: TradersPost vs TradingView Link
- AlgoWay alternative for MT4 and MT5: AlgoWay vs TradingView Link
- PineHook alternative for MT4 and MT5: PineHook vs TradingView Link
- How to connect TradingView to Exness (MT4 and MT5)
- How to automate TradingView alerts on Pepperstone (MT4 and MT5)
- How to automate TradingView alerts on IC Markets (MT4 and MT5)
- How to automate TradingView alerts on XM (MT4 and MT5)
- How to automate TradingView alerts on Vantage (MT4 and MT5)
- How to automate TradingView alerts on Fusion Markets (MT4 and MT5)
- How to automate TradingView alerts on RoboForex (MT4 and MT5)
- How to automate TradingView alerts on JustMarkets (MT4 and MT5)
- How to automate TradingView alerts on Axi (MT4 and MT5)
- How to automate TradingView alerts on Eightcap (MT4 and MT5)
- How to automate TradingView alerts on Tickmill (MT4 and MT5)
- Pricing: plans, limits and what else you pay for
- Full documentation: alert syntax, EA settings and troubleshooting
- FAQ: trials, billing and signal limits