Guide · 3 min read
TradingView alert delay: where the seconds go between signal and fill
A live TradingView strategy doesn't trade at the moment the Strategy Tester says it did. Between the signal and the fill there's a chain of steps, and each one adds time. Three timestamps, from three files, show how much each step adds.
The chain, step by step
- The bar. With default settings, a strategy runs once per bar, when the bar closes. Its order fills in the tester at the next bar's open. That's the time the List of trades shows, to the minute.
- The alert. When the order fills on the live chart, TradingView fires the alert and sends its message to your webhook. How soon depends on the alert's settings and on TradingView's own servers.
- The relay. A webhook service or your own server receives the message, turns it into an order and sends it to IBKR. It can queue, retry or time out.
- The broker. IBKR accepts the order and routes it to the exchange, where it fills. The Flex Query records that time, to the second.
A strategy that uses calc_on_every_tick, or alerts set to fire "once per bar" rather than at bar close, moves step 2 earlier. That's faster, but the signal can appear and then disappear within the same bar.
Three timestamps, three files
| Time | Where it comes from | How precise |
|---|---|---|
| Tester time | TradingView's List of trades | To the minute, in the chart's time zone |
| Alert time | TradingView's alert log, exported as CSV | To the second, in UTC |
| Fill time | IBKR Flex Query, Trades section (Date/Time) | To the second, in a zone IBKR doesn't state |
With all three, the delay splits into two parts:
- Alert time − tester time is TradingView's side: waiting for the bar, plus TradingView sending the alert.
- Fill time − alert time is your side: the relay, the network, and IBKR.
Without the alert log, you only see the total, fill time − tester time.
Reading the numbers
Delays that cluster at one bar length
TradingView labels each bar with the time it opened. If the strategy fills orders at bar close (process_orders_on_close, or alerts set to fire once per bar close), the tester shows the bar's opening time, but the alert only goes out when the bar closes. Then most "alert − tester" delays sit near one bar length: about 60 seconds on a 1-minute chart, 5 minutes on a 5-minute chart. That's how the settings work, not a fault. It's still worth knowing, because the tester's price and the live order can be a whole bar apart.
A long tail on "fill − alert"
A handful of fills tens of seconds or minutes after their alert usually point at the relay: a retry, a slow restart, a queue. These trades are worth checking one by one, because a late entry in a fast market can cost more than all the other trades' slippage combined.
An alert with no fill
When the alert log shows an alert but the Flex file shows no fill near it, the order never reached IBKR or wasn't accepted. When there's no alert either, the signal never left TradingView.
What a few seconds cost
Delay matters because the price moves while you wait. On micro Nasdaq futures (MNQ), one tick is 0.25 points, or $0.50 per contract. A 10-second delay that typically costs two ticks on entry and two on exit is $2.00 per contract per round trip. That's before commission.
To see what delay actually costs on your trades, compare each fill's price with the tester's price and convert the difference to dollars. Then check whether trades with longer delays are the ones with worse fills.
Time zones
The three files use three different conventions. The List of trades uses the chart's zone, the alert log uses UTC, and the Flex file uses whatever IBKR uses (most tools assume US Eastern). If every delay comes out as about an hour, or several hours, it's a time-zone mix-up, not a slow relay.
Trade Teardown takes all three files, lines them up trade by trade, and splits each delay into "alert" and "fill" parts, in your browser. If the zones don't line up, it says which zone does.