PROTECTED SOURCE SCRIPT
Обновлено Normal Dist Deviation Levels

This indicator shows where the current price sits within a normal-distribution “sigma” framework and projects those levels as short, local reference lines rather than full trailing bands.
- It first calculates a moving average (SMA or EMA, user-selectable) over a chosen lookback length and the corresponding standard deviation of price around that mean. The mean is treated as the 0σ level, and fixed price levels are computed at ±1σ, ±2σ, and ±3σ from that mean for the most recent bar.
- For each of these sigma prices, the script draws a short horizontal segment that spans only a limited number of candles into the past and into the future, giving clean local “price bars” instead of bands across the entire chart. The colors and line styles differentiate 0σ (blue), ±1σ (solid), ±2σ (dashed), and ±3σ (dotted), visually marking moderate to extreme deviations from the mean.
- To make interpretation easier, the indicator also places text labels to the right of the price bars, a couple of candles ahead of the line ends. Each label shows both the statistical region and its approximate normal-distribution probability, such as “50% (0σ)”, “15.87% (+1σ / -1σ)”, “2.27% (+2σ / -2σ)”, and “0.14% (+3σ / -3σ)”, so you can quickly see how unusual the current deviation is in probabilistic terms.
Информация о релизе
This indicator shows where the current price sits within a normal-distribution “sigma” framework and projects those levels as short, local reference lines rather than full trailing bands.- It first calculates the mean over a chosen lookback length and the corresponding standard deviation of price around that mean. The mean is treated as the 0σ level, and fixed price levels are computed at ±1σ, ±2σ, and ±3σ from that mean for the most recent bar.
- For each of these sigma levels, the script draws a short horizontal segment that spans only a limited number of candles into the past and into the future, giving clean local “price bars” instead of bands across the entire chart. The colors and line styles differentiate 0σ (blue), ±1σ (solid), ±2σ (dashed), and ±3σ (dotted), visually marking moderate to extreme deviations from the mean.
- To make interpretation easier, the indicator also places text labels to the right of the price bars, a couple of candles ahead of the line ends. Each label shows both the statistical region and its approximate normal-distribution probability, such as “50% (0σ)”, “15.87% (+1σ / -1σ)”, “2.27% (+2σ / -2σ)”, and “0.14% (+3σ / -3σ)”, so you can quickly see how unusual the current deviation is in probabilistic terms.
Скрипт с защищённым кодом
Этот скрипт опубликован с закрытым исходным кодом. Однако вы можете использовать его свободно и без каких-либо ограничений — читайте подробнее здесь.
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.
Скрипт с защищённым кодом
Этот скрипт опубликован с закрытым исходным кодом. Однако вы можете использовать его свободно и без каких-либо ограничений — читайте подробнее здесь.
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.