Skip to content
Algo Trade Analytics Docs

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)