Learn: TradingView webhooks and Pine Script
Working notes on TradingView alerts, Pine Script v6 and the NSE F&O details that catch a strategy out once it goes live.
alert() vs alertcondition(): which one fires your webhook
The four combinations of alert(), alertcondition(), strategy and indicator in Pine Script, what each can put in a webhook body, and which frequency to choose.
Updated 30 Aug 2026
How TradingView webhook alerts work
What TradingView posts when a webhook alert fires: placeholders, JSON rules, the 3 second timeout, secrets in the URL, and the failures that break a bridge.
Updated 30 Aug 2026
NSE F&O in Pine: sessions, lot sizes and expiries
IST session guards, last-entry cut-offs, NIFTY, BANKNIFTY and SENSEX expiry days, current lot sizes with sources, and MCX hours for GOLDM and SILVERM.
Updated 30 Aug 2026
Pine Script v5 to v6: what changed and how to migrate
The breaking changes between Pine Script v5 and v6, with a before and after for each, a migration checklist, and the traps the editor's converter does not fix.
Updated 30 Aug 2026
Repainting, lookahead and calc_on_every_tick explained
Why a Pine strategy trades differently live than in the backtest: lookahead, request.security offsets, calc_on_every_tick, barstate.isconfirmed, how to test.
Updated 30 Aug 2026
The pre-live checklist for a Pine strategy
Ten checks before a TradingView strategy's alerts reach a broker: v6 compile, repainting, alert payloads, sessions, sizing, paper trades and the journal.
Updated 30 Aug 2026