← All posts
Automation · IBKR·June 2026·9 min read

Automate TradingView to Interactive Brokers (TradersPost)

Connect TradingView alerts to Interactive Brokers via TradersPost. Strategy setup, webhook JSON, dynamic variables, position sizing, risk management and testing for fully automated stocks, options, futures and forex trading on IBKR.

dkcodenut — Pine Script & MQL5 developer
By dkcodenut — Pine Script & MQL5 developer since 2014
Published June 2026 · Last updated June 2026 · 9 min read

Interactive Brokers (IBKR) is one of the most popular brokers for stocks, options, futures, forex and ETFs — but it cannot be controlled directly from TradingView. This is where TradersPost comes in. TradersPost is a cloud-based automation platform that acts as a bridge between TradingView alerts and Interactive Brokers, executing trades automatically the moment a TradingView signal fires.

Automation workflow: TradingView Strategy → TradingView Alert → Webhook → TradersPost → Interactive Brokers → Trade Executed. The full round trip is typically only a few seconds. Why traders pick TradersPost with IBKR: no coding required, supports stocks, ETFs, futures, forex and options, runs in the cloud (no VPS or local computer needed), and includes advanced risk management — position sizing, stop loss, take profit, portfolio allocation and daily risk limits.

Requirements: a TradingView account, a TradersPost account, an Interactive Brokers account, an active TradingView strategy or indicator, and TradingView Alerts. Step 1 — Create a TradersPost account. After registration you get access to Strategy Management, Broker Connections, Webhook Endpoints and a Trade Automation Dashboard.

Step 2 — Connect Interactive Brokers to TradersPost. Inside TradersPost go to Broker Connections, select Interactive Brokers, authorize your IBKR account, complete verification and confirm the connection. TradersPost can now submit orders directly to IBKR on your behalf. Step 3 — Create a TradersPost strategy. Click Create Strategy, choose Interactive Brokers as the broker, select asset class (stocks like AAPL/NVDA/TSLA/SPY, futures like ES/NQ/CL/GC, or forex like EURUSD/GBPUSD/USDJPY), configure position sizing and order settings, then save.

Step 4 — Copy the TradersPost webhook URL (looks like https://webhook.traderspost.io/tradingview). Step 5 — Build your TradingView strategy with clear long entries (MA crossover, breakout, SMC, ICT) and exits (opposite signal, stop loss, take profit, trailing stop). Step 6 — Create the TradingView alert with frequency Once Per Bar Close to reduce duplicate signals and repainting issues. Step 7 — Paste the TradersPost webhook URL into the alert's Webhook URL field.

Step 8 — Build the webhook message. TradersPost accepts JSON. A buy on Apple: { "ticker": "AAPL", "action": "buy" }. A sell: { "ticker": "AAPL", "action": "sell" }. Exit any open position: { "ticker": "AAPL", "action": "exit" }. Step 9 — Use dynamic TradingView variables so one alert works across many charts: { "ticker": "{{ticker}}", "action": "buy" }. Useful variables include {{ticker}}, {{close}}, {{open}}, {{high}}, {{low}}, {{volume}} and {{interval}}.

Step 10 — Position sizing. Fixed quantity: { "ticker": "{{ticker}}", "action": "buy", "quantity": 100 }. Percentage allocation: { "ticker": "{{ticker}}", "action": "buy", "percent": 10 }. Step 11 — Risk management. Fixed stop loss: { "ticker": "{{ticker}}", "action": "buy", "stop_loss": 2 }. Take profit: add "take_profit": 5. Combined: { "ticker": "{{ticker}}", "action": "buy", "quantity": 100, "stop_loss": 2, "take_profit": 5 }.

Step 12 — Test the automation. Use Interactive Brokers Paper Trading, send test alerts from TradingView, verify webhook delivery, verify TradersPost receives the signal, and verify IBKR executes the order correctly. Only switch to live trading after a clean test. Troubleshooting: alert sent but no trade opened — check webhook URL, JSON formatting, broker connection and strategy status. Duplicate orders — multiple alerts or wrong frequency, fix with Once Per Bar Close. Wrong position size — wrong quantity parameter or incorrect portfolio allocation.

Advanced workflows. Professional traders automate Smart Money Concepts (liquidity sweeps, BOS, CHOCH, order blocks), ICT strategies (fair value gaps, premium/discount arrays, market structure shifts), quantitative systems (momentum, mean reversion, statistical arbitrage) and portfolio automation (multi-asset allocation, sector rotation, futures portfolios, ETF rebalancing). Interactive Brokers delivers institutional-grade execution, low commissions and global market access — combined with TradingView and TradersPost you get a fully automated workflow that runs 24/7.

Need help building a TradingView → TradersPost → IBKR automation? dkcodenut covers Pine Script development, TradingView strategies, IBKR automation, TradersPost integration, webhook development, SMC/ICT automation, order flow systems, custom dashboards and full algorithmic trading solutions. The package includes strategy development, alert setup, webhook configuration, TradersPost integration, IBKR connection, risk management, testing/optimization and source code delivery. WhatsApp +91 7620 116 390 or Telegram @dk_codenut.