Options trader · International · 2026
TradingView to Interactive Brokers bridge for SPX 0DTE options
The strategy sends JSON alerts to a server on the client's VPS, which buys same-day calls or puts through IB Gateway, one position at a time.
The problem
The client wanted to keep editing the strategy in TradingView while options execution ran automatically and under control.
What I built
- Indicator converted into a strategy with JSON alerts.
- Webhook server with 0DTE contract selection, a time window and one position at a time.
- Settings page with the open position, manual close and a choice between SPX and SPY.
- Order-path tests on paper with the market open.
- 1TradingView alert
- 2JSON webhook
- 3VPS server
- 4IB Gateway
- 5SPX 0DTE · 1 position
Result
The full alert, order and close path was tested on paper with the market open before moving to the live account.