Indicator · Pine Script v5 · On the chart

Dynamic Anchor Intra-Bar StDev Bands

by majixai

A large chart overlay that draws multi-timeframe anchored standard deviation bands, with separate lookbacks for short, medium and long timeframes chosen from preset horizon profiles or set by hand.

View on GitHub

GitHub stars1on the repository
Pine versionv5runs as is
Lines of code703
Settings40inputs
LicenceNone stated
Last updateyesterday28 Oct 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

Dynamic Anchor Intra-Bar StDev Bands adds consolidation zones with a volume profile, candlestick and macro pattern labels, kinematic and Bayesian style forecast cones, and a higher-timeframe background box. Many boxes, lines and labels are drawn on the price chart, so it can be slow to load. It does not place trades.

Details

Published by

majixai on GitHub

Draws

On the price chart

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Trading Horizon ProfilestringOPT_1presetProfile
Manual Short TFtimeframe1manual_tf_s
Manual Medium TFtimeframe5manual_tf_m
Manual Long TFtimeframe15manual_tf_l
StDev Lookback (Short)int20StDev Lookback (Short)
StDev Lookback (Medium)int20StDev Lookback (Medium)
StDev Lookback (Long)int20StDev Lookback (Long)
StDev Multiplierfloat1.0StDev Multiplier
Base Volatility Coefffloat1.5b_cf
Common Periodint14al_pr
Source Datasourcecloseal_sr
HTF Background BoxtimeframeWhf_tf
Show all 40 settings
SettingTypeDefaultVariable
Layer 1 Length (Micro)int20c_l1
Layer 2 Length (Macro)int40c_l2
Layer 3 Length (Global)int80c_l3
Volume Profile Bucketsint10vp_bk
Breakout Synergy Multiplier (Fib)float1.618bk_ml
Show Candlestick Labelsbooltruesh_cp
Draw Macro Chart Patterns (Lines)booltruesh_mp
Structure Pivot Lookbackint10pv_lb
Pattern Tolerance (%)float0.02st_tl
Bullish Pattern Colorcolorcolor.new(color.lime, 75)p_clB
Bearish Pattern Colorcolorcolor.new(color.red, 75)p_clR
Forecast Horizon (Bars)int20fc_hz
Feedback Learning Ratefloat0.1lr_rt
Bayes Lookback Periodint500by_lb
Enable Mean Reversion Gravitybooltrueen_mr
Model Weight Matrixtext1.0 0.5 0.2 0.2 1.0 0.5 0.5 0.2 1.0wt_in
Require Synergybooltruerq_syn
Relaxed MACDbooltruerl_md
Fast Lenint12f_ln
Slow Lenint26s_ln
Sig Lenint9sg_ln
Max Tradesint3mx_tr
Roll Windowint5rl_dy
CI Mult SLfloat1.1rk_bf
Target RRfloat2.0rw_ml
Risk-Free Ratefloat0.05rf_rt
Days to Expfloat30.0t_ex
Strike Multfloat1.0st_ml
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

Candlestick Patterns

by harryguiacorn
220 stars

This indicator plots optional candlestick pattern signals on the price chart. It detects engulfing bars, inside bars, HOLP and LOHP, kicker patterns, body-mass extremes, higher highs and lower lows, ATR warnings, and four-bar fractals. Optional pivot marks use

Indicator v5 Candlestick patternsVolatility & bands
Updated 1 year ago · None stated GitHub repository of Candlestick Patterns

Signal Quality Engine [WavesUnchained] is a range-fade indicator that identifies exhaustion at range extremes and signals potential reversals. It applies an ADX and EMA slope regime gate to stand down during strong trends. Using distance, structure, and moment

Indicator v6 Mean reversionSupport & resistance
Updated 2 days ago · MIT GitHub repository of Signal Quality Engine [WavesUnchained]

Candle Filters

by Web3Degenerate
2 stars

Candle Filters is an overlay indicator that marks bullish and bearish engulfing candles on the price chart. A bullish signal requires a prior down candle whose body is engulfed by the current candle near a swing low, while a bearish signal does the reverse nea

Indicator v5 Candlestick patternsMoving averages
Updated 2 years ago · None stated GitHub repository of Candle Filters
1 stars

This indicator overlays rolling cost anchors, volatility-derived GetDelta bands, and liquidity provider ranges onto the price chart alongside pinbar candlestick detection. It calculates market valuation zones, shading discount and premium areas while tracking

Indicator v6 Candlestick patternsVolatility & bands
Updated yesterday · AGPL-3.0 GitHub repository of BL-ESW Pinbar Market Lab Pro

Symmetric Attraction

by morindok
1 stars

Symmetric Attraction is an indicator that plots mirrored candles on the price chart by reflecting OHLC data around a regression basis line. The basis is computed using linear regression on the selected source with an optional logarithmic transformation. It als

Indicator v6 Candlestick patternsSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Symmetric Attraction

More Volatility & bands scripts

Related on ForexR

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers