Pine Script v4 manual, offline
42 pages, mirrored from TradingView 2026-10-29
annotations
Background coloring with bgcolor
Barcoloring a series with barcolor
Custom OHLC bars and candles
Filling the background with fill
Plot annotation
Plotting shapes, chars and arrows
Price levels, hline
Script inputs
Study annotation
appendix
HOWTOs
Pine compilation and execution errors
Pine version 3 migration guide
debugging
Debugging
essential
Alerts
Arrays
Bar states. Built-in variables barstate.*
Colors
Context switching and the security function
Drawings
Extended and regular sessions
Indicator repainting
Non-standard chart types data
Session and time information
Strategies
Tables
language
Comments
Declaring functions
Execution model
Expressions, declarations and statements
Functions and annotations
Identifiers
Line wrapping
Operators
Structure of the script
Type system
Versions
public-library
Public Library
publishing-scripts
Publishing scripts
quickstart-guide
Quickstart guide
release-notes
Release notes
welcome
Introduction
where-can-i-get-more-information
Where can I get more information?