In the declaration section of your program, you have to define:

▫       The name of your program (function title)

▫       The output that your program will create (return type)

▫       The input that your program requires (parameters)

▫       The names and types of variables that can be used in the program (variables)

▫       Custom parameter and variable types that you want to use in the program (enumerations)

▫       Requests for specific (hard-coded) time-series data that is to be used in the program (symbols)

 

The different elements of the declaration section have to be stated in a fixed order:

▫       Function title

▫       Return type

▫       Enumerations (optional)

▫       Parameters

▫       Symbols (optional)

▫       Variables (optional)

Learn more:

Function Title

Return Type

Parameters

Variables

Enumerations

Symbols

Naming Conventions