OPEN-SOURCE SCRIPT

Deviation Bands

Telah dikemas kini
This indicator plots the 1, 2 and 3 standard deviations from the mean as bands of color (hot and cold). Useful in identifying likely points of mean reversion.
Default mean is WMA 200 but can be SMA, EMA, VWMA, and VAWMA.
Calculating the standard deviation is done by first cleaning the data of outliers (configurable).
Nota Keluaran
Adds the option to use the selected source as the mean value. This allows for any indicator to become the mean but forces the deviation calculation to use HLC3.
Nota Keluaran
Fixed inverse sign flaw. Added comments.
Nota Keluaran
Improved order of plotting to make it more obvious which values are shown on the indicator and makes it easier to specify alert levels.
Nota Keluaran
Added color gradient option.
Nota Keluaran
Converted bias to a configurable feature instead of always including it. Probably not useful for most cases.
Nota Keluaran
Fixed color scheme to use subtle gradients by default but maintained edges where it made more sense.
This also makes color customization much easier.
Nota Keluaran
Much improved flexibility to specify minutes or days instead of just bars for any length in the calculation.
Configuration screen is more streamlined.
Bands and Channelsdeviationbandsmeanmean-reversionmeanreversionMoving AveragesVolatility

Skrip sumber terbuka

Dalam semangat sebenar TradingView, penulis telah menerbitkan kod Pine ini sebagai sumber terbuka supaya pedagang dapat memahami dan mengesahkannya. Sorakan kepada penulis! Anda boleh menggunakan perpustakaan ini secara percuma, tetapi penggunaan semula kod dalam penerbitan ini adalah dikawal oleh Peraturan dalaman. Anda boleh menyukainya untuk menggunakannya pada carta.

Ingin menggunakan skrip ini pada carta?

Penafian