How to Connect TradingView Alerts to Interactive Brokers with AlgoWay Webhook Automation

AlgoWay IBKR webhook form for TradingView to Interactive Brokers automation

AlgoWay connects TradingView alerts to Interactive Brokers through webhook automation. The setup has five important parts: create an IBKR webhook in AlgoWay, enter your IBKR credentials, authorize the IBKR session, test the webhook, and send valid TradingView JSON to the AlgoWay webhook URL.

This guide describes the complete route shown in the screenshots: the AlgoWay webhook creation modal, the IBKR webhook form, the IBKR authorization button, the AlgoWay test webhook modal, the TradingView alert message, and the TradingView webhook URL configuration.

The execution route is:

TradingView alert → AlgoWay webhook URL → AlgoWay validation → IBKR authorized session → Interactive Brokers order

TradingView creates the signal. AlgoWay receives the webhook payload, validates the JSON, applies the selected webhook settings, checks the IBKR session, and sends the order to the selected Interactive Brokers account.

Last updated: 2026-06-17 • Author: AlgoWay

Quick Answer: TradingView to Interactive Brokers with AlgoWay

To automate Interactive Brokers from TradingView with AlgoWay, complete this checklist:

  1. Create a new AlgoWay webhook.
  2. Select TradingView as the source.
  3. Select IBKR as the platform.
  4. Enter your IBKR username, password and account ID.
  5. Click Authorize IBKR and wait for authorization to complete.
  6. Add the trial or paid webhook after authorization.
  7. Use IBKR symbols with explicit suffixes such as .CFD or .STK.
  8. Send a small test webhook from AlgoWay.
  9. Copy the AlgoWay webhook URL.
  10. Paste the webhook URL and valid JSON into your TradingView alert.

Setup Route

AlgoWay works as the automation bridge between TradingView and Interactive Brokers:

  • TradingView sends the alert and JSON message.
  • AlgoWay receives the webhook, checks the payload, reads the webhook settings and routes the request.
  • Interactive Brokers receives the order through the authorized IBKR session.

The IBKR username, password, account ID, authorization state and symbol format must all match the same trading route.

Before You Start

Prepare the following before you create the IBKR webhook:

  • Interactive Brokers account credentials;
  • IBKR account ID for the account that should receive trades;
  • AlgoWay account with access to the Webhooks dashboard;
  • TradingView chart, strategy, indicator or manual alert;
  • TradingView plan with webhook alert support;
  • correct IBKR symbol format for your instruments;
  • small test quantity for the first order;
  • closed manual IBKR sessions using the same username.

Step 1. Create an IBKR Webhook in AlgoWay

Open the AlgoWay dashboard and create a new webhook route.

  1. Log in to your AlgoWay account.
  2. Go to Dashboard.
  3. Click Add Trial Webhook or Add Main Webhook.
  4. Select the webhook type:
    • Start 14-Day Trial
    • Main Paid Webhook
  5. Click Continue.
AlgoWay create webhook modal with trial and main paid webhook options for IBKR
AlgoWay create webhook modal. Select Trial or Main Paid Webhook before opening the IBKR webhook form.

Step 2. Enter Your IBKR Credentials

Fill in the IBKR webhook form in AlgoWay.

  1. Set Source (from) to TradingView.
  2. Set Platform (to) to IBKR.
  3. Choose the quantity multiplier mode.
  4. Choose the trade type, for example Reverse / Netting.
  5. Select Live or the required account type.
  6. Enter your IBKR Username.
  7. Enter your IBKR Password.
  8. Enter the IBKR Account ID.
  9. Add optional symbol mapping only if your TradingView symbols must be converted.
AlgoWay Add Trial Webhook form configured for TradingView to Interactive Brokers
AlgoWay IBKR webhook form. Enter IBKR credentials, account ID, trade type and optional symbol mapping.

Step 3. Authorize IBKR

After the IBKR fields are filled, click Authorize IBKR.

  1. Click Authorize IBKR.
  2. Wait while AlgoWay starts and checks the IBKR session.
  3. Do not close the page during authorization.
  4. After successful authorization, click Add Trial Webhook or create the selected paid webhook.

If authorization fails, check username, password, account type, account ID and active IBKR sessions using the same username.

Step 4. Confirm IBKR Account ID

The IBKR Account ID tells AlgoWay which Interactive Brokers account should receive orders.

Example:

DUQ234554

If your IBKR username has more than one trading account, enter the exact account ID manually. This prevents TradingView alerts from being routed to the wrong account.

Step 5. Use the Correct IBKR Symbol Format

IBKR requires clear instrument routing. For AlgoWay IBKR webhooks, send symbols with explicit suffixes.

Use symbols such as:

XAUUSD.CFD
AAPL.STK
MSFT.STK
TSLA.STK

Do not send bare symbols such as:

XAUUSD
AAPL
MSFT
TSLA

IBKR symbol examples

Instrument TradingView or user symbol IBKR symbol for AlgoWay
Gold CFD XAUUSD XAUUSD.CFD
Apple stock AAPL AAPL.STK
Microsoft stock MSFT MSFT.STK
Tesla stock TSLA TSLA.STK

Step 6. Optional Symbol Mapping

The Symbol Mapping field is optional. Use it only when TradingView sends one symbol format and IBKR needs another format.

Format:

FROM:TO

Multiple mappings can be separated by comma or space.

Example:

AAPL:AAPL.STK, XAUUSD:XAUUSD.CFD

In this example, if TradingView sends AAPL, AlgoWay sends AAPL.STK to IBKR. If TradingView sends XAUUSD, AlgoWay sends XAUUSD.CFD to IBKR.

Step 7. Important IBKR Session Rule

IBKR may interrupt the AlgoWay IBKR session if the same username is used in another IBKR login session.

This can happen when the same username is opened in:

  • IBKR Web;
  • TWS;
  • IBKR Gateway;
  • IBKR Mobile;
  • Client Portal.

If another session takes over the login, AlgoWay can receive a session error.

Example error:

IBKR session is not active. Probable reason: TWS, IBKR Gateway, IBKR Mobile, or Client Portal is open with the same username. AlgoWay watchdog will reconnect automatically.

Step 8. Test the IBKR Webhook in AlgoWay

Before connecting live TradingView alerts, test the IBKR route from AlgoWay with a small order.

  1. Open Webhook Logs in AlgoWay.
  2. Click Test Webhook.
  3. Select the IBKR webhook from the dropdown.
  4. Enter an IBKR symbol with suffix, for example XAUUSD.CFD.
  5. Enter a small quantity.
  6. Select Buy or Sell.
  7. Add optional SL, TP or trailing values only if required.
  8. Review the JSON Preview.
  9. Click Send.
  10. Check AlgoWay logs and the IBKR account.
AlgoWay Send Test Webhook modal for Interactive Brokers with JSON preview and successful order
AlgoWay test webhook modal. Select the IBKR webhook, enter symbol, quantity, action, optional risk fields, review JSON Preview and send the test.

Example test JSON:

{
  "platform_name": "ibkr",
  "symbol": "XAUUSD.CFD",
  "order_action": "buy",
  "order_contracts": 1,
  "sl_price": 2000,
  "tp_price": 6000,
  "trailing_pips": 200
}

Step 9. Prepare TradingView JSON for IBKR

TradingView must send one valid JSON object. AlgoWay expects structured fields, not plain text.

Recommended TradingView strategy alert JSON

{
  "platform_name": "ibkr",
  "ticker": "{{ticker}}",
  "order_contracts": "{{strategy.order.contracts}}",
  "order_action": "{{strategy.market_position}}",
  "price": "{{close}}"
}

TradingView replaces these placeholders when the alert fires:

  • {{ticker}} — chart ticker;
  • {{strategy.order.contracts}} — strategy order size;
  • {{strategy.market_position}} — strategy position state;
  • {{close}} — close price at alert time.
TradingView Edit message window with IBKR JSON payload for AlgoWay webhook
TradingView message configuration. Paste one valid IBKR JSON object into the TradingView alert message field.

Fixed test JSON

For a controlled test, use a fixed symbol and small valid quantity:

{
  "platform_name": "ibkr",
  "ticker": "AAPL.STK",
  "order_contracts": 1,
  "order_action": "buy"
}

For CFD testing, use an IBKR CFD symbol with the .CFD suffix:

{
  "platform_name": "ibkr",
  "ticker": "XAUUSD.CFD",
  "order_contracts": 1,
  "order_action": "buy"
}

Step 10. Create the TradingView Alert

After the webhook URL and JSON are ready, create or edit the TradingView alert.

  1. Open the TradingView chart used by your strategy.
  2. Create a new alert or edit an existing strategy alert.
  3. In the message area, paste the IBKR JSON.
  4. Open the alert Notifications section.
  5. Enable Webhook URL.
  6. Paste the AlgoWay IBKR webhook URL.
  7. Save the alert.

Webhook URL format:

https://algoway.co/your-webhook-uuid
TradingView Notifications section with Webhook URL enabled and AlgoWay IBKR URL pasted
TradingView notifications screen. Enable Webhook URL and paste the AlgoWay webhook endpoint for the IBKR route.

Optional SL, TP, Trailing and Limit Fields

AlgoWay supports optional IBKR risk-management and order fields according to the AlgoWay JSON format.

Price-based stop-loss, take-profit and trailing

{
  "platform_name": "ibkr",
  "ticker": "XAUUSD.CFD",
  "order_action": "buy",
  "order_contracts": 1,
  "sl_price": 2000,
  "tp_price": 6000,
  "trailing_pips": 200
}

Distance-based stop-loss and take-profit

{
  "platform_name": "ibkr",
  "ticker": "XAUUSD.CFD",
  "order_action": "buy",
  "order_contracts": 1,
  "stop_loss": 50,
  "take_profit": 100
}

Limit order example

{
  "platform_name": "ibkr",
  "ticker": "AAPL.STK",
  "order_action": "buy",
  "order_contracts": 1,
  "order_type": "limit",
  "price": 190.50
}

Verification and Logs

After the TradingView alert is created, trigger a small test and verify each layer:

  1. Confirm the alert fired in TradingView.
  2. Open AlgoWay Webhook Logs.
  3. Check that AlgoWay received the webhook payload.
  4. Check that the JSON fields are correct.
  5. Review the IBKR response.
  6. Open IBKR and confirm order or position status.

If no order appears in IBKR, do not immediately edit the TradingView strategy. First check whether AlgoWay received the webhook. If AlgoWay received it, check IBKR authorization, active sessions, account ID, symbol suffix, quantity, order type and market session.

Common IBKR Webhook Problems

IBKR Is Not Authorized

If IBKR authorization is not completed, the webhook cannot send orders to the IBKR account. Return to the webhook form and click Authorize IBKR.

Another IBKR Session Is Open

If the same username is open in IBKR Web, TWS, IBKR Gateway, IBKR Mobile or Client Portal, the AlgoWay IBKR session can be interrupted. Log out from the other session and wait for AlgoWay to reconnect.

Wrong IBKR Account ID

If the account ID is wrong, the order can be rejected or routed incorrectly. Confirm the exact IBKR account ID before enabling TradingView alerts.

Wrong Symbol Format

IBKR webhooks require explicit symbol suffixes. Use .STK for stocks and .CFD for CFD instruments.

Invalid JSON

TradingView must send one valid JSON object. Broken commas, missing quotes, invalid placeholders or plain text can stop the automation before IBKR receives anything. See: How to fix AlgoWay webhook Error 415.

Invalid Quantity

The order size must be valid for the selected IBKR instrument. Start with a small test quantity and check the response in AlgoWay logs.

Market Is Closed

IBKR instruments follow their own market sessions. If the selected instrument is closed, AlgoWay can reject market execution instead of leaving a market order queued at the broker.

Limit Price Is Missing

If order_type is set to limit, the JSON must include a valid price value.

TradingView Alert Fires Too Often

Check the TradingView alert frequency. For many strategy alerts, Once per bar close is safer than intrabar execution.

FAQ

Can I connect TradingView alerts to Interactive Brokers with AlgoWay?

Yes. AlgoWay can receive TradingView webhook alerts and route structured JSON commands to Interactive Brokers through an IBKR webhook created in the AlgoWay dashboard.

Do I need to authorize IBKR before creating the webhook?

Yes. Click Authorize IBKR and wait for authorization to complete before adding the webhook.

Which IBKR symbol format should I use?

Use explicit suffixes such as AAPL.STK for stocks and XAUUSD.CFD for CFD instruments.

Can I use symbol mapping?

Yes. Use the Symbol Mapping field when TradingView sends one symbol format and IBKR requires another format. Example: AAPL:AAPL.STK.

Can I use SL, TP and trailing with IBKR?

Yes. AlgoWay supports optional IBKR fields such as sl_price, tp_price, stop_loss, take_profit and trailing_pips.

Can I send limit orders to IBKR?

Yes. Use order_type set to limit and include a valid price value.

Why did my IBKR webhook return a session error?

The most common reason is another active IBKR session using the same username. Log out from IBKR Web, TWS, IBKR Gateway, IBKR Mobile or Client Portal and wait for AlgoWay to reconnect.

Related AlgoWay Guides

Final Summary

To connect TradingView alerts to Interactive Brokers with AlgoWay, create an IBKR webhook, enter your IBKR credentials, authorize the IBKR session, confirm the IBKR account ID, use symbols with explicit suffixes, test the route, copy the webhook URL, and send valid JSON from TradingView.

The two most important IBKR setup rules are authorization and symbol suffixes. The IBKR session must be active in AlgoWay, and symbols must clearly identify the instrument type, such as .STK or .CFD.