Library / Finance, Invoices & Accounting
Finance, Invoices & Accounting
Trade forex with OANDA orders across three strategies and Telegram alerts
Runs EMA, RSI and MACD strategies every 5 minutes during market hours, places risk-sized OANDA orders with stop-loss and take-profit, and posts trade alerts to Telegram.
What it does
## Forex Multi-Strategy Trading Bot with OANDA and Telegram Alerts Who is this for? Forex traders who want to automate signal detection and order execution across multiple technical strategies on an OANDA practice account, with real-time Telegram notifications. What it does Runs three independent trading strategies (EMA Momentum, RSI Breakout, MACD Crossover) in parallel every 5 minutes during market hours. When a signal fires, it calculates position size based on account balance and risk percentage, places a market order on OANDA with stop-loss and take-profit, and sends a detailed alert to Telegram. How it works 1. Schedule Trigger fires every 5 minutes 2. Time Filter blocks execution during weekend market closures 3. Three parallel paths set instrument, timeframe, and risk inputs 4. Each path fetches 50 candles from OANDA and runs its strategy logic 5. Signals merge and are filtered — only BUY/SELL pass through 6. Account balance is fetched from OANDA 7. Position size, stop-loss, and take-profit are calculated from risk % 8. A market order is placed on OANDA with SL/TP 9. A formatted alert is sent to a Telegram group topic Setup steps 1. Create an OANDA practice account and generate an API token 2. Add the token as a Bearer Auth credential in n8n 3. Create a Telegram bot via BotFather and add the API credential 4. Update the three Set Inputs nodes with your account IDs, instrument, timeframes, risk %, and Telegram chat/topic IDs 5. Activate the workflow
The steps
- Run Every 5 Minutes
- Time Filter
- Set Inputs
- Fetch Candles (Strategy1)
- Fetch Candles (Strategy2)
- Fetch Candles (Strategy3)
- Strategy1: Momentum EMA
- Strategy2: RSI Breakout
- Strategy3: MACD Crossover
- Get Account Balance
- Send Telegram Message
- Place OANDA Order
- Combine Strategy Signals
- Calculate Position Size
19 steps in total.
Similar automations
Finance, Invoices & AccountingLog Trades into Google Sheets from Telegram with Gemini15 stepsAlerts & NotificationsSend Forex News Sentiment Alerts to Telegram with Gemini17 stepsAlerts & NotificationsSend Forex Sentiment Alerts to Discord with Gemini18 stepsEmail AutomationGenerate procurement category strategies with OpenAI, Google Docs, and Gmail8 steps