Skip to content
Algo Trade Analytics Docs

int - Pine Script Type

Keyword used to explicitly declare the “int” (integer) type of a variable or a parameter.

  • Explicitly mentioning the type in a variable declaration is optional, except when it is initialized with na. Learn more about Pine Script® types in the User Manual page on the Type System.
//@version=6indicator("int")int i = 14    // Same as `i = 14`i := naplot(i)