Guide
TradingView alerts to Interactive Brokers
A TradingView alert reaches Interactive Brokers through a bridge you run. Nyria does not support Interactive Brokers. This guide explains the Interactive Brokers route and what it takes to keep it running, then shows the Nyria route for the four brokers Nyria does connect: Charles Schwab, Tradier, tastytrade and Alpaca.
The Interactive Brokers route
- 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
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
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
Plan for the daily re-login
IB Gateway and TWS restart each day and need the login renewed on a schedule, with two-factor approval on your phone. 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, at four other brokers
- 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
Connect the broker
Charles Schwab, Tradier and tastytrade 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 account number and access token.
- 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.
Strategy script: one Order fills only alert per ticker
{
"action": "{{strategy.order.action}}",
"instrument": "{{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 an 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
- Does Nyria support Interactive Brokers?
- No. Nyria places orders at Charles Schwab, Tradier, tastytrade and Alpaca, 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.
TradingView alerts, by broker
TradingView to Schwab
Stocks and ETFs, Options up to 4 legs
TradingView to Tradier
Stocks and ETFs, Options up to 4 legs
TradingView to tastytrade
Stocks and ETFs, Options up to 4 legs, Crypto spot
TradingView to Alpaca
Stocks and ETFs, Options up to 4 legs, Crypto spot
TradingView to Nyria Paper
Stocks, options, crypto, free
Guides
Automate TradingView alerts
The alert, the webhook URL, the message, a paper test, then live.
TradingView webhook not working: a checklist
Six checks, most common first: script type, the URL box, expiry, the message, the bot, and where the reason is logged.
Which brokers can TradingView alerts trade through
Schwab, Tradier, tastytrade and Alpaca live, Nyria Paper free; sign-in or API key, what each trades, one message for all.
Test the alert on a paper bot first
Paper is free. Live trading from $15 a month.