Skip to content
NEWMeet Alaaddin, your AI genie with a voice. trig8n launches 1 January 2027. See what is new

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

  1. Run Every 5 Minutes
  2. Time Filter
  3. Set Inputs
  4. Fetch Candles (Strategy1)
  5. Fetch Candles (Strategy2)
  6. Fetch Candles (Strategy3)
  7. Strategy1: Momentum EMA
  8. Strategy2: RSI Breakout
  9. Strategy3: MACD Crossover
  10. Get Account Balance
  11. Send Telegram Message
  12. Place OANDA Order
  13. Combine Strategy Signals
  14. Calculate Position Size

19 steps in total.

Similar automations