Indicator · Pine Script v5 · On the chart

Dynamic Anchor Intra-Bar StDev Bands

by majixai

A large chart overlay that builds standard deviation bands from relationships between a bar's open, high, low and close, using three timeframes chosen from preset trading horizon profiles or set manually.

View on GitHub

GitHub stars1on the repository
Pine versionv5runs as is
Lines of code2,048
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

Visibility toggles control each band pair. The script also exposes inputs for volume profile buckets, candlestick labels, macro chart pattern lines, pivot structure and a higher-timeframe background box. It draws many boxes, lines and labels on the price chart, so it can be heavy to load.

Details

Published by

majixai on GitHub

Type

Indicator, Pine Script v5

Draws

On the price chart

Category

Volatility & bands, Support & resistance, Candlestick patterns

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 Periodint20lengthInput
StDev Multiplierfloat1.0multInput
Show OC (Open/Close Bands)booltrueshowOC
Show OH (Open/High Bands)booltrueshowOH
Show OL (Open/Low Bands)booltrueshowOL
Show LH (Low/High Bands)booltrueshowLH
Show HC (High/Close Bands)booltrueshowHC
Show LC (Low/Close Bands)booltrueshowLC
Show all 40 settings
SettingTypeDefaultVariable
Show CO (Close/Open Bands)booltrueshowCO
Show HL (High/Low Bands)booltrueshowHL
Show BoxesboolfalseshowT
Show The Lastint5showlast
h_iint100h_i
l_iint100l_i
Base Volatility Coefffloat1.5b_cf
Common Periodint14al_pr
Source Datasourcecloseal_sr
HTF Background Boxtimeframe15hf_in
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
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
219 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 indicators

Trade Your Charts With a Regulated Broker

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

Compare brokers