Series function
A series function is a specialized function that refers to a previous function value within its calculations. In addition, series functions update their value on every bar even if the function call is placed within a conditional structure that may not be true on a given bar. Because a series function automatically stores its own previous values and executes on every bar, it allows you to write function calculations that may be more streamlined than if you had to manage all of the resources yourself. However, it's a good idea to understand how this might affect the performance of your EasyLanguage code.
The Function Properties - General tab is used to set the function storage and execution method to Series, Simple, or Auto-Detect. When in doubt, select Auto-Detect and the compiler will select the most appropriate storage method for the function.
Example
This one line series function adds the current bar Volume to the value of the function from the previous bar. Because a series function automatically updates on every bar, this makes it easy to write a function that maintains a running total.
VolTotal = VolTotal[1] + Volume;