Running Average

<< Click to Display Table of Contents >>

Navigation:  Using StreamLab > StreamLab Guides Overview > Guide Commands > Analytics >

Running Average

Previous pageReturn to chapter overviewNext page

The Running Average analytic command lets you create a new column that is a running average of another column over a given window of time. This analytic works especially well for streaming data. The diagram below depicts the creation of a running average on a stock's closing price.

You can also add Bollinger bands to this running average. Bollinger Bands are a volatility indicator, typically used for stock prices.

Bollinger Bands consist of:

an moving average (avg) over a given period T.
an upper band at K times an T-period standard deviation above the moving average (avg + Kσ)
a lower band at K times an T-period standard deviation below the moving average (avg − Kσ)

StreamLab also lets you define inner and outer values for the upper and lower bands.

sl_running_average