Notice! This is documentation for v3, which is no longer actively maintained.
For up-to-date documentation, see the latest version.

Versions

Currently there are three versions of Pine Script Language. A special attribute must be used in the first line of a code to switch between versions //@version=N where N is number. Note, that Pine Script Language versions are incompatible with each other.

Notable changes are documented in Release notes.