Gaussian Bands
Author: sreelathav
Creation Date: 12/11/2015 3:12 PM
profile picture


I am interested in programming Gaussian Bands. I saw it as in indicator within the Indicators list. When selecting it for clicking and dragging onto the gives the option of setting hte period and something called "Poles". In appearance Gaussian BAnds look like Bollinger Bands. Pleae see link for pictrure of Gaussian Bands: ...but the Standard Deviations make up the bands in BBs (perhaps with Gaussian they use Poles?). i wanted to know if it is possible to program these standared Deviations (for exampe 2 and 4 stadard deviations form my center Gaussian Band? Or if it is possible to Program Bollinger Bands, where the Gaussian line is the "Base" Line or reference point that i am using to build the standaard deviations off of. Thank you in adcnace.

profile picture


To build bands like Gaussian Bands, create a couple of DataSeries to add or subtract N standard deviations like this:

Please log in to see this code.

StdDev can be replaced with ATR, for example.
profile picture


Although not part of the original question, the posted diagram appears to be smoothing the Bollinger (StdDev.Series) Bands with a Gaussian filter as well. The link confirms this. Simply take the posted solution and add a line to optionally run the resulting StdDev DataSeries through the Gaussian filter (indicator) as well.

The transfer function for any digital filter comes in two parts: A numerator characteristic equation and a denominator characteristic equation. The roots to the numerator equation are calls "zeros" and the roots to the denominator equation are called "poles". These roots define the smoothing points of the filter in the "frequency" (not the "time") domain.

For the low-pass Gaussian filter mentioned (which only has a denominator equation), adding more poles to the filter will both increase the smoothing and the sharpness of its high-frequency cutoff.