Skip to main content
0
T

Tradingview To Oanda

Use TradingView alerts' webhook functionality to post orders to OANDA's API

Rating

0.0

Votes

0

score

Downloads

0

total

Price

Free

API key required

Works With

Claude CodeCursorWindsurfVS CodeDeveloper tool

About

TradingView to OANDA

Summary

I'm setting up a web.py server that can run on PythonAnywhere (uploaded there through GitHub) which listens to TradingView alerts on a URL (i.e. webhook) and posts orders (and sets stop-losses, etc.) on OANDA through their API

Things to consider

  • A sell order isn't actually handled as a sell order, but as closing all open positions for the given instrument.
  • Note that if this signal is sent to OANDA when the markets are closed, it will be cancelled.
  • A buy order is handled as a limit order with a Good-Til-Date 15 minutes in the future.
  • That means that if it is sent when the markets are closed, it will most likely cancel (unless of course the markets open within those 15 minutes)

Supported parameters

Required parameters

  • action either buy or sell
  • ticker a six-letter ticker without any separator (e.g. EURUSD)
  • close the price you want to buy the instrument at (ignored for sells, see Things to consider)

Optional parameters and their defaults

  • units the size of the position to open as a positive integer, in the currency of the instrument (e.g. in Euros for "EURUSD" or gold for "XAUEUR"). Defaults to 500
  • trailing_stop_loss_percent the percentage points below close on which to start the trailing stop loss as a positive decimal. (E.g. to set it 5% below, enter 0.05.) Defaults to 0.01, i.e. 1%. See OANDA's documentation on trailing stops for more information.
  • take_profit_percent the percentage points above close to set the take profit at as a positive decimal. When the market reaches this point, the position is automatically closed. Defaults to 0.06, i.e. 6%
  • trading_type either live or practice, used to select the respective API key and account ID from your credentials.json file. Defaults to practice

Any other parameters will not be handled, but are sent along. That means you will see them in your server logs.

Don't lose this

Three weeks from now, you'll want Tradingview To Oanda again. Will you remember where to find it?

Save it to your library and the next time you need Tradingview To Oanda, it’s one tap away — from any AI app you use. Group it into a bench with the rest of the team for that kind of task and you can pull the whole stack at once.

⚡ Pro tip for geeks: add a-gnt 🤵🏻‍♂️ as a custom connector in Claude or a custom GPT in ChatGPT — one click and your library is right there in the chat. Or, if you’re in an editor, install the a-gnt MCP server and say “use my [bench name]” in Claude Code, Cursor, VS Code, or Windsurf.

🤵🏻‍♂️

a-gnt's Take

Our honest review

This plugs directly into your AI and gives it new abilities it didn't have before. Use TradingView alerts' webhook functionality to post orders to OANDA's API. Once connected, just ask your AI to use it. It's completely free and works across most major AI apps. This one just landed in the catalog — worth trying while it's fresh.

Tips for getting started

1

Tap "Get" above, pick your AI app, and follow the steps. Most installs take under 30 seconds.

2

Heads up: this needs an API key to work. You'll get one from the service's website (usually free). The setup guide tells you exactly where.

What's New

Version 1.0.06 days ago

Imported from GitHub

Ratings & Reviews

0.0

out of 5

0 ratings

No reviews yet. Be the first to share your experience.