Skip to content
Algo Trade Analytics Docs
Pine library page — review pending. This page is preserved for compatibility but is not part of the reviewed search index. Check the official Pine Script v6 reference before relying on its explanation, signature, or example.

series - Pine Script Type

The series keyword explicitly assigns the “series” type qualifier to variables and function parameters. Variables and parameters that use the “series” qualifier can reference values that change throughout a script’s execution.

  • To learn more, see our User Manual’s section on type qualifiers.
//@version=6indicator("series variable not allowed")//@variable A variable declared as "series int" with a value of 5.series int myVar = 5// This call causes an error.// The `histbase` accepts "input int/float". It can't accept the stronger "series int" qualified type.plot(close, style = plot.style_histogram, histbase = myVar)