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.
1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
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.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Band SMA (weeks)
int
20
smaLen
Band EMA (weeks)
int
21
emaLen
Weeks start
string
Thursday (Hyperliquid)
weekFrom
Usual distance measured over (days)
int
730
normDays
Shown once this many days exist
int
180
minDays
Stretched above
float
2.0
upper
Stretched below
float
-2.0
lower
Draw the band on the price chart
bool
false
showBand
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.
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
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
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
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
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
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