saolof

Better Bollinger bands

saolof Actualizado   
Bollinger bands with volume-weighted statistics (volume weighted moving averages & variance/standard deviation) to give better results during high-volume events, and also aims to provide additional information without adding clutter by coloring the bands. Intended as the first basic indicator to be thrown on a chart.

Will never annoy you by rescaling log charts due to negative lower bands (much like my previous geometric bollinger bands) , and will almost always give more realistic bounds on price movement than standard bollinger bands, particularly during high-volume events such as broken supports, earnings reports, or squeezes.

The centerline is colored green or red by a volume-weighted momentum oscillator. The bands themselves let you select color schemes such as detected market type (confirmed bull market, confirmed bear market, or volatility-dominated), volatility change (to clearly show when bands are expanding or contracting), or the same color as the centerline oscillator.
Notas de prensa:
v 1.1: Added a fallback to make the bands still work when volume data is missing for part of a ticker's history, such as in historical data.
Notas de prensa:
v1.2: Refactored source code for future open-sourcing. Added centerline oscillator options in addition to the existing momentum oscillator, including an RSI-based oscillator with hysteresis and a hybrid oscillator combining both.
Notas de prensa:
Added sawtooth time window (i.e. wma-like). Implemented Bessel's correction for weighted variances properly to make the variance estimate unbiased, which is mainly useful for get more consistent results when changing between time window settings or for short time settings. Time weights are reliability weights and included in the correction, while the volume weights are frequency weights and have a negligible influence on variance bias.

Also refactored internal code further.
Notas de prensa:
* Added a plain band color option.
* Added an "ignore volume" checkbox setting. Enabling it feeds a constant volume of 1 into the indicator instead of the actual volume.
* Added a "Linear regression" checkbox setting. Enabling it changes the centerline to be a generalized LSMA with least squares weights from the weighted moving average selected in the time window setting. Bands similarly are the average deviation from the regression line instead of from the moving average. This is useful when studying charts that have a clear trend.
* Made minor changes to the Hybrid oscillator so that it wouldn't throw an error when the indicator is set to a small number of periods, it can now be set all the way down to 2 periods.
Notas de prensa:
Beta release of new updated version. Minor performance improvements, refactorings, minor internal changes to some oscillators, the addition of my smooth exponential moving average as a time window option , and changed linear regression settings to include a "compromise" setting to take momentum into account without overfitting.

Putting some changes out here before I add them to the open source version.
Notas de prensa:
(further minor work, including deriving the correct Bessel corrections for the SEMA)
Notas de prensa:
(updating chart, prior update accidentally had a custom candle color scheme indicator also in the chart)
Script protegido
Este script se publica con código cerrado, pero puede utilizarlo libremente. Márquelo como favorito y podrá usarlo en un gráfico. El código fuente no se puede ver ni modificar.
Exención de responsabilidad

La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.

¿Quiere utilizar este script en un gráfico?