OPEN-SOURCE SCRIPT
已更新 Standard Deviation (+OB Pressure)

Standard Deviation (+ Order Book Pressure)
======================================================
This is a TradingView indicator that draws:
- A smoothed moving average in the middle (actually RMA of your chosen
source over "Length" bars -- not a simple SMA despite the script name).
- Bands at 1 through 6 standard deviations above and below that line,
using the same length for the standard deviation. You can limit how
many sigma levels show (1 to 6) with "Max Sigma Level".
- Optional shading between +1σ and -1σ ("Fill ±1σ Zone").
- Optional text labels on the right (last bar) for MA and each visible
sigma line ("Show Labels").
MAIN SETTINGS
-------------
Length Bars for RMA and standard deviation (default 20).
Source Price series (default close).
Max Sigma Level How many ±σ lines to draw (1-6).
Fill ±1σ Zone On/off for the band between +1σ and -1σ.
Show Labels On/off for MA and σ labels on the last bar.
Colors Center line, positive-side bands, negative-side bands.
LIMITS / NOTES
--------------
- max_bars_back and max_labels_count are set to 500 in the indicator
declaration.
- Triangle labels are refreshed on confirmed bars to avoid clutter.
For questions about interpretation, this is a volatility-band tool around
a smoothed average with an optional synthetic pressure marker -- not
financial advice.
======================================================
This is a TradingView indicator that draws:
- A smoothed moving average in the middle (actually RMA of your chosen
source over "Length" bars -- not a simple SMA despite the script name).
- Bands at 1 through 6 standard deviations above and below that line,
using the same length for the standard deviation. You can limit how
many sigma levels show (1 to 6) with "Max Sigma Level".
- Optional shading between +1σ and -1σ ("Fill ±1σ Zone").
- Optional text labels on the right (last bar) for MA and each visible
sigma line ("Show Labels").
MAIN SETTINGS
-------------
Length Bars for RMA and standard deviation (default 20).
Source Price series (default close).
Max Sigma Level How many ±σ lines to draw (1-6).
Fill ±1σ Zone On/off for the band between +1σ and -1σ.
Show Labels On/off for MA and σ labels on the last bar.
Colors Center line, positive-side bands, negative-side bands.
LIMITS / NOTES
--------------
- max_bars_back and max_labels_count are set to 500 in the indicator
declaration.
- Triangle labels are refreshed on confirmed bars to avoid clutter.
For questions about interpretation, this is a volatility-band tool around
a smoothed average with an optional synthetic pressure marker -- not
financial advice.
版本注释
Draws: - Middle RMA
- Bands at (n)-standard deviations above and below the Mean
- Optional shading between +1σ and -1σ ("Fill ±1σ Zone").
- Optional text labels on the right (last bar) for MA and each visible
sigma line ("Show Labels").
MAIN SETTINGS
-------------
Length Bars for RMA and standard deviation (default 20).
Source Price series (default close).
Max Sigma Level How many ±σ lines to draw (1-6).
Fill ±1σ Zone On/off for the band between +1σ and -1σ.
Show Labels On/off for MA and σ labels on the last bar.
Colors Center line, positive-side bands, negative-side bands.
LIMITS / NOTES
--------------
- max_bars_back and max_labels_count are set to 500 in the indicator
declaration.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。