Skip to content

Guide

TradingView alerts to Interactive Brokers

Nyria doesn't connect Interactive Brokers. A TradingView alert reaches IBKR through a bridge you run. The bridge talks to IB Gateway or Trader Workstation. Nyria places TradingView alerts at Charles Schwab, Alpaca, tastytrade and Tradier instead.

The Interactive Brokers route

  1. 1

    Send the alert to a webhook

    TradingView alerts can call a webhook URL, which needs a paid plan with two-factor sign-in on. TradingView sends only to ports 80 and 443, so the receiver must be reachable from the internet over a normal web address.

  2. 2

    Run IB Gateway or Trader Workstation

    Interactive Brokers' trading API connects through IB Gateway or Trader Workstation (TWS), a program you log in to on a machine of your own, with the API enabled.

  3. 3

    Write or run a bridge

    A bridge is a small program that receives the webhook, reads the message and sends the order to the Gateway or TWS. You write it, or run someone else's. It has to size the order, and it has to handle a rejected or partly filled one.

  4. 4

    Plan for the weekly re-login

    IB Gateway and TWS restart every day. With auto-restart on, one login lasts about a week, then you sign in again with two-factor approval on your phone. With it off, that happens daily. If the session lapses, the alert arrives and nothing trades.

The route works. It suits someone who needs Interactive Brokers for its markets and is willing to maintain the pieces. Test the bridge with the smallest size your account allows before you trust it.

The Nyria route

  1. 1

    Create the strategy and the alert

    In Nyria, create a strategy with TradingView as the alert source and copy its webhook URL and message into a TradingView alert. Nothing runs on your side.

  2. 2

    Connect the broker

    Charles Schwab, tastytrade and Tradier connect through the broker's own sign-in page. Alpaca connects with an API key and secret from its dashboard. Tradier also offers a Sandbox, connected with an access token.

  3. 3

    Deploy a bot

    The bot chooses the account and sets the budget per entry. Start on Nyria Paper, then deploy a second bot on the live account.

Alert message: set the alert to Order fills only, one alert per ticker

{
  "action": "{{strategy.order.action}}",
  "ticker": "{{ticker}}",
  "marketPosition": "{{strategy.market_position}}",
  "prevMarketPosition": "{{strategy.prev_market_position}}"
}

The message can be plain text or JSON, and it is the same whichever broker the bot runs on. It cannot set the size; the bot sizes each order from its budget per entry. Nyria places market and limit orders, with no stop order attached to a live entry, so a position closes on an exit alert. Schwab ends Nyria's access every 7 days, and you sign in again to reconnect.

Paper first, on Nyria Paper

Nyria Paper is the simulated broker built in and free on every plan. Deploy the strategy there, let the TradingView alert fire for a week or two, and read the Logs tab: each order sits beside the alert that caused it.

Questions

Can I automate TradingView alerts to Interactive Brokers?
Yes, with IB Gateway or TWS and a bridge you run. Gateway and TWS restart every day, and one login lasts about a week. Nyria doesn't connect IBKR.
Does Nyria support Interactive Brokers?
No. Nyria places orders at Binance, Coinbase, OKX, MEXC, Charles Schwab, Alpaca, Kraken, Hyperliquid, Kraken Futures, tastytrade, Tradier and My Funded Perps, and on Nyria Paper. For Interactive Brokers, use the bridge route above.
Is the Interactive Brokers route a bad choice?
No. It reaches markets Nyria does not, and you control every part of it. The price is a machine that stays on, a bridge you maintain and a login you renew.
What does it cost?
Paper is free. Live trading from $15 a month.

Test the alert on paper first

No card required. Paper is free. Live trading from $15 a month.