OANDA is one of the most popular brokers for automated trading, thanks to its well-documented REST API and reliable practice account environment. If you have been considering automated trading bots for your OANDA account, this guide walks through the process from start to finish.
With the right platform, you can go from zero to a live automated bot in under five minutes, starting with a practice account so no real money is at risk while you evaluate the system.
Why OANDA for Automated Trading?
OANDA stands out among brokers for several reasons that matter specifically for algorithmic execution:
- REST API -- OANDA provides a modern, well-documented API that supports account queries, order placement, position management, and real-time pricing. This is the foundation that automated platforms connect to.
- Practice accounts -- OANDA offers free practice accounts with simulated funds and live market pricing. This lets you test automated strategies in real conditions without financial risk.
- Broad instrument coverage -- CFDs on equity indices, forex, precious metals, energy, and commodities are all available through a single account.
- Competitive spreads -- Tight spreads matter more for automated systems that may execute frequently. OANDA typically offers competitive pricing on major instruments.
Step-by-Step Setup
The following steps describe how to connect an OANDA account to Stratagium. The general process is similar for any API-based trading platform.
1Create an OANDA Account
If you do not already have an OANDA account, sign up at oanda.com. Start with a practice account -- it is free and uses live market data with simulated funds. You can upgrade to a live account later when you are ready.
2Generate an API Token
Log into your OANDA account portal. Navigate to "Manage API Access" (under My Account or My Services, depending on your region). Generate a new API token. Copy it securely -- you will need it in the next step. This token gives read and trade access to your account. You can revoke it at any time to instantly disconnect any external platform.
3Create a Stratagium Account
Sign up at stratagium.ai. The registration takes about 30 seconds. You will be asked for your name, email, and a password. No credit card is required for demo access.
4Connect Your Broker
In your Stratagium dashboard, navigate to Settings and select OANDA as your broker. Paste your API token and your OANDA account ID. The platform will verify the connection and confirm whether you are on a practice or live account.
5Configure Risk Parameters
Before deploying any bot, set your risk parameters. This includes your maximum risk per trade (as a percentage of equity), daily drawdown limit, and maximum number of trades per day. These settings are enforced by the risk engine independently of the trading algorithms.
6Deploy Your First Bot
Choose from the available algorithms. Each bot targets a specific instrument and uses a strategy validated through walk-forward testing across 6 years of market data. Start with one bot on one instrument to get familiar with how the system operates. You can add more as you gain confidence.
What Instruments Can You Trade?
Stratagium currently supports 15 instruments across OANDA, each with a dedicated algorithm optimised for that instrument's specific market characteristics:
- Equity indices -- SPX 500, NAS 100, Dow 30, DAX 40, Nikkei 225, Hang Seng, ASX 200
- Precious metals -- Gold (XAU/USD), Platinum (XPT/USD)
- Energy -- WTI Crude Oil, Brent Crude, Natural Gas
- Industrial metals -- Copper (XCU/USD)
- FX -- USD/JPY (intraday and daily timeframes)
Each algorithm has been validated using walk-forward methodology, meaning it was tested on data it was not trained on. This is a critical distinction from simple backtesting, which can produce misleading results through overfitting.
Monitoring and Control
Once a bot is deployed, you can monitor its activity through the Stratagium dashboard. You will see every signal generated, every trade executed, and every risk check that was applied. The dashboard displays real-time metrics including:
- Open positions and unrealised profit/loss
- Trade history with entry, exit, and risk details
- Risk engine status (daily limits, consecutive losses, exposure)
- Signal statistics (generated, filtered, executed)
You can pause or stop any bot at any time from the dashboard. You can also revoke API access from your OANDA account directly, which will immediately prevent any further automated execution.
Important: Start with Practice
The single most important recommendation is to start with a practice account. This gives you complete visibility into how the algorithms operate in live market conditions without any financial risk. Observe the trade frequency, the risk management in action, and the reporting before deciding whether to connect a live account.
Connect Your OANDA Account in 5 Minutes
Sign up for free, paste your API token, and deploy your first bot on a practice account. No credit card required.
Sign Up and Connect