|
Navigation: Study Formulas > Bands Bands |
Top Previous Next |
The study formulas included in the Bands section are:
bollingerBasis()
This function calculates a Bollinger basis line. The input stream can be a standard data point or it can be another study.
Parameters
period |
the input length |
width |
the number of standard deviations |
source1 |
the input stream. select from one of the standard data points or select the output of another study as input for this study |
inv |
select the bar interval on which this study should be calculated or leave blank to calculate on the default bar interval |
bollingerLower()
This function calculates a lower Bollinger band. The input stream can be a standard data point or it can be another study.
Parameters
period |
the input length |
width |
the number of standard deviations |
source1 |
the input stream. select from one of the standard data points or select the output of another study as input for this study |
inv |
select the bar interval on which this study should be calculated or leave blank to calculate on the default bar interval |
bollingerUpper()
This function calculates a upper Bollinger band. The input stream can be a standard data point or it can be another study.
Parameters
period |
the input length |
width |
the number of standard deviations |
source1 |
the input stream. select from one of the standard data points or select the output of another study as input for this study |
inv |
select the bar interval on which this study should be calculated or leave blank to calculate on the default bar interval |
bollingerWidth()
This function calculates the Bollinger bandwidth which is the difference between the upper band and the lower band. The input stream can be a standard data point or it can be another study.
Parameters
period |
the input length |
width |
the number of standard deviations |
source1 |
the input stream. select from one of the standard data points or select the output of another study as input for this study |
inv |
select the bar interval on which this study should be calculated or leave blank to calculate on the default bar interval |
donchianLower()
This function calculates a lower donchian channel. The input stream can be a standard data point or it can be another study.
Parameters
period |
the input length |
source1 |
the input stream. select from one of the standard data points or select the output of another study as input for this study |
inv |
select the bar interval on which this study should be calculated or leave blank to calculate on the default bar interval |
donchianUpper()
This function calculates a upper donchian channel. The input stream can be a standard data point or it can be another study.
Parameters
period |
the input length |
source1 |
the input stream. select from one of the standard data points or select the output of another study as input for this study |
inv |
select the bar interval on which this study should be calculated or leave blank to calculate on the default bar interval |
keltnerBasis()
This function calculates the Keltner basis line. The Keltner basis line is the period average of hlc3.
Parameters
period |
the input length |
inv |
select the bar interval on which this study should be calculated or leave blank to calculate on the default bar interval |
keltnerLower()
This function calculates a lower Keltner band. The lower Keltner band is the period average of hlc3 minus the period average of high-low.
Parameters
period |
the input length |
inv |
select the bar interval on which this study should be calculated or leave blank to calculate on the default bar interval |
keltnerUpper()
This function calculates a upper Keltner band. The upper Keltner band is the period average of hlc3 plus the period average of high-low.
Parameters
period |
the input length |
inv |
select the bar interval on which this study should be calculated or leave blank to calculate on the default bar interval |
regressionCumulative()
Intraday only. This function calculates a cumulative regression which is then offset by the number of standard deviations (+/-) specified. By 'cumulative' we mean that it calculates a regression based on the total number of bars currently available in the day. So assuming a 9:30 to 16:00 day and assuming we are using 1-min bars, at 9:05am it would calculate a 5-bar regression, and at 9:35am it would calculate a 35-bar regression, etc. When using this function you must be certain that you have enough bars available in ScanExpert to account for 1 full day. For 1-min bars with a session from 9:30 to 16:00 you would need to request at least 390 bars. Because ScanExpert is restricted to loading a maximum of 600 bars per symbol, this function cannot be used in conjunction with 24-hour 1-min bars (which would require a minimum of 1440 bars).
Parameters
stddev |
number of standard deviations. can be a positive or negative number. |
source1 |
the input stream. select from one of the standard data points or select the output of another study as input for this study |
inv |
select the bar interval on which this study should be calculated or leave blank to calculate on the default bar interval |
regressionCumulativeDev()
Intraday only. This function calculates a cumulative regression and then returns the current standard deviation (+/-). By 'cumulative' we mean that it calculates a regression based on the total number of bars currently available in the day. So assuming a 9:30 to 16:00 day and assuming we are using 1-min bars, at 9:05am it would calculate a 5-bar regression, and at 9:35am it would calculate a 35-bar regression, etc. When using this function you must be certain that you have enough bars available in ScanExpert to account for 1 full day. For 1-min bars with a session from 9:30 to 16:00 you would need to request at least 390 bars. Because ScanExpert is restricted to loading a maximum of 600 bars per symbol, this function cannot be used in conjunction with 24-hour 1-min bars (which would require a minimum of 1440 bars).
Parameters
source1 |
the input stream. select from one of the standard data points or select the output of another study as input for this study |
inv |
select the bar interval on which this study should be calculated or leave blank to calculate on the default bar interval |
regressionBasis()
This function calculates the regression basis line using the specified period.
Parameters
period |
the input length |
stddev |
number of standard deviations |
source1 |
the input stream. select from one of the standard data points or select the output of another study as input for this study |
inv |
select the bar interval on which this study should be calculated or leave blank to calculate on the default bar interval |
regressionLower()
This function calculates the lower regression band using the specified period and standard deviations.
Parameters
period |
the input length |
stddev |
number of standard deviations |
source1 |
the input stream. select from one of the standard data points or select the output of another study as input for this study |
inv |
select the bar interval on which this study should be calculated or leave blank to calculate on the default bar interval |
regressionUpper()
This function calculates the upper regression band using the specified period and standard deviations.
Parameters
period |
the input length |
stddev |
number of standard deviations |
source1 |
the input stream. select from one of the standard data points or select the output of another study as input for this study |
inv |
select the bar interval on which this study should be calculated or leave blank to calculate on the default bar interval |