Bring an indicator from TradingView. Paste a Pine Script® v5 or v6 indicator() script into the script editor and it is translated into a TypeScript script when it loads, with any problems reported against your Pine line numbers. Show as TypeScript in the editor shows what it became, to read or keep editing.
Pine Script is a registered trademark of TradingView, Inc.
How Pine maps to a script
request.security reads what the other timeframe had closed, which is Pine’s behaviour with lookahead off; the public API has no way to look ahead.
What it refuses
Each with a message saying what to do:
strategy() scripts: strategies come later.
- Pine v4 and older: TradingView’s Pine Editor converts a script to a newer version.
import of libraries.
- Data only TradingView has:
request.financial, request.economic, request.earnings, request.dividends, request.splits, request.seed and request.quandl, and macro tickers such as TVC:DXY.
Diagnostics from the translation start with PN: PN1xxx parsing, PN2xxx types and meaning, PN3xxx not supported.
Next step
See the limits every script runs within. Last modified on October 16, 2026