Indicator · Pine Script v6 · Own pane

Reflex Band Stretch

by cianfru

Reflex Band Stretch measures how far price deviates from a custom weekly support band, calculated using the midpoint of a 20-week SMA and a 21-week EMA.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code93
Settings8inputs
LicenceNone stated
Last update4 days ago20 Nov 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

Reflex Band Stretch computes the log distance of price from this midpoint and normalizes it using the root mean square of stretch values over a defined historical window. The resulting metric indicates extreme price extension relative to the asset's historical behavior. Settings allow configuring moving average lengths, week start anchors, and normalization periods. The metric is drawn in a separate pane.

Details

Published by

cianfru on GitHub

Draws

Separate pane below the chart

Markets

Crypto

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
Band SMA (weeks)int20smaLen
Band EMA (weeks)int21emaLen
Weeks startstringThursday (Hyperliquid)weekFrom
Usual distance measured over (days)int730normDays
Shown once this many days existint180minDays
Stretched abovefloat2.0upper
Stretched belowfloat-2.0lower
Draw the band on the price chartboolfalseshowBand
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

34 stars

This indicator constructs a dynamic grid oscillator based on a Hull Moving Average baseline and Average True Range channels. It projects customizable grid levels above and below the baseline using ATR volatility steps. Signals are generated when price crosses

Indicator v6 Moving averagesVolatility & bands
Updated 2 weeks ago · MIT GitHub repository of Dynamic Grid Indicator [BigBeluga]
3 stars

This indicator demonstrates debugging visualization patterns for Pine Script. It plots value tracking with mean, min, and max reference lines, condition markers using shapes and arrows, historical comparisons with standard deviation bands, multi-series overlay

Indicator v5 Moving averagesVolatility & bands
Updated 7 months ago · None stated GitHub repository of Debugging Visualization Patterns
3 stars

The Linchuan Event Indicator plots multi-timeframe opening price zones alongside key moving averages and Bollinger Bands in a separate indicator pane. It tracks opening price lines and colored expansion zones across 5-minute, 30-minute, 1-hour, and 4-hour time

Indicator v5 Support & resistanceMoving averages
Updated 6 months ago · None stated GitHub repository of Linchuan Event Indicator

This indicator calculates dynamic grid trading boundaries derived from Bollinger Bands to define upper, lower, and middle range levels. It computes moving average basis lines and standard deviation bands, applying user-defined offsets, smoothing, and minimum o

Indicator v6 Volatility & bandsSupport & resistance Repaints
Updated 9 months ago · MIT GitHub repository of Grid Bot Bollinger Bands [psyll]

LS Volatility Index

by andreperez
2 stars

The LS Volatility Index measures price volatility relative to a customizable moving average. It computes the percentage distance of the current price from the chosen source (such as close or open) and normalizes this value by historical volatility, producing a

Indicator v5 Volatility & bandsMoving averages
Updated 3 years ago · MPL-2.0 GitHub repository of LS Volatility Index

Composite Market Bias

by mrme000m
1 stars

Composite Market Bias is a separate-pane indicator that scores bullish and bearish conditions from RSI, fast versus slow EMA, MACD histogram, Bollinger Band position, and price versus a 50-period EMA. It plots the resulting bias score with RSI, EMA trend, MACD

Indicator v5 Oscillators & momentumMoving averages
Updated 2 months ago · None stated GitHub repository of Composite Market Bias

More Moving averages 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