Back to Templates

Track and Analyze Forex News Trading Results with MyFxBook and Google Sheets

Last update

Last update 2 days ago

Share


Forex News Trading Result Data

This n8n template simulates the results if we take every trade based on the previous workflow: https://n8n.io/workflows/8340-automated-forex-news-alert-system-with-forex-factory-and-telegram/

Use Cases

  1. Analyze which news events have a higher probability of generating profit.
  2. Decide on Take Profit and Stop Loss levels for specific currency pairs or news events.

Currency Pairs

EURUSD, GBPUSD, AUDUSD, NZDUSD, USDJPY, USDCHF, USDCAD, XAUUSD

Limitations

  1. We use High, Low, and Live Prices from MyFxBook. These values may differ depending on the broker.
  2. Spread widening and slippage will vary across brokers.
  3. Price gaps may occur over weekends.
  4. Profit/Loss also depends on when the trade is closed.

How It Works

  • Each day, the workflow checks if the Sheets have empty High and Low Price values.
  • It queries MyFxBook for updated High and Low Prices for Date+1 (the next trading day after opening a buy/sell position) using the HTTP Request node.
  • The response from the HTTP Request is parsed.
  • If new High and Low data are available, the workflow retrieves the date.
  • It scrapes the new High and Low Price data and calculates the multiplier for the respective currency pair.
  • Example: USDJPY prices have 3 decimals, so the multiplier is 1000.
  • Sheets are updated with High, Low, Points Up, and Points Down.
  • The workflow checks if the buy/sell position results in profit or loss.
  • Example: if we have a EURUSD Buy position and Points Up > 0, then there is a possibility of profit.
  • Points Up can be negative if the new High Price remains below the Buy position entry price.
  • If we have a Buy position and Points Up ≤ 0, then there is a possibility of a loss.

How to Use

Requirements

  • Enable the Google Drive API in Google Cloud Console.
  • Provide Google Sheets credentials.

Need Help?

Join the Discord or ask in the Forum!

Thank you!