/*********************************************************************************************** Title: Gravity Bands Indicator for eSignal By: Divergence Software, Inc. Web: http://www.sr-analyst.com ================================================================================================ Project Description: This indicator calculates and displays a set of polynomial regression bands. You can select the polynomial order (1-4) and the number of standard deviations to use. The outer bands are standard deviation of price (conventional) added/subtracted to the basis line while the inner bands are standard deviation of the difference between price and the basis line. Typical usage would be to apply the indicator in conjunction with moving averages. When price closes above one of the upper bands, look for a moving average cross down as an entry signal. When price closes below one of the lower bands, look for a moving average cross up as an entry signal. Indicator Parameters: ==================== Calculation Options: Bars Back: Number of bars over which to apply the regression. Default is 125. Poly Order: Set the polynomial order. Default is 2. You can enter an integer value between 1 and 4 inclusive. Standard Deviations: Select the number of standard deviations to apply. Cosmetic Options: Outer Band Color: Select the color to use when plotting the outer bands. The default is orange. Thickness: Select the thickness for the plot. Default is 2. Valid range is 1 to 10. Line Type: Line type to use when drawing the plot. Select from Solid, Dot, Dash, DashDot and DashDotDot. Default is Solid. Inner Band Color: Select the color to use when plotting the inner bands. The default is teal. Thickness: Select the thickness for the plot. Default is 2. Valid range is 1 to 10. Line Type: Line type to use when drawing the plot. Select from Solid, Dot, Dash, DashDot and DashDotDot. Default is Dash. Basis Line Color: Select the color to use when plotting the basis line. The default is navy. Thickness: Select the thickness for the plot. Default is 2. Valid range is 1 to 10. Line Type: Line type to use when drawing the plot. Select from Solid, Dot, Dash, DashDot and DashDotDot. Default is Solid. Disclaimer: For educational purposes only! Obviously, no guarantees whatsoever and use at your own risk. **********************************************************************/