saolof

Better Bollinger bands

saolof Обновлено   
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.
Информация о релизе:
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.
Информация о релизе:
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.
Информация о релизе:
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.
Информация о релизе:
* 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.
Информация о релизе:
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.
Информация о релизе:
(further minor work, including deriving the correct Bessel corrections for the SEMA)
Информация о релизе:
(updating chart, prior update accidentally had a custom candle color scheme indicator also in the chart)
Скрипт с защищённым кодом
Этот скрипт опубликован с закрытым исходным кодом, вы можете свободно им пользоваться. Можно добавить его в избранное и использовать на графике. Вы не можете просматривать или менять его исходный код.
Отказ от ответственности

Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.

Хотите использовать этот скрипт на графике?