1Copy the scriptPress Copy script above, or the copy button on the code below.
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
362 lines of Pine Script v6 from indicator/olg_7_6_26/LyroRS/7.txt, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
Root Deviation Loop offers two signal modes: Bollinger-style bands around a chosen moving average of the deviation, or a for-loop score summed across a range of lookbacks that is compared with long and short thresholds. The line is colored by trend state. A table can list the active modes and signal state, and several moving average types and color palettes are available.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Source
source
close
source
Signal Mode
string
Bollinger Bands
signal_mode
Select Moving Average BB
string
EMA
ma_benchmark_type_bb
BB MA Length
int
20
rmsd_length_bb
+ Multiplier
float
1.4
rmsd_multp
- Multiplier
float
1
rmsd_multn
Select Moving Average BB
string
ALMA
ma_benchmark_type_fl
For Loop Length
int
10
rmsd_length_fl
From
int
10
a_
To
int
60
b_
Threshold Long
int
23
Threshold_L_Fl
Threshold Short
int
3
Threshold_S_Fl
Show all 22 settings
Setting
Type
Default
Variable
Threshold Long
float
0
Threshold_L_C
Threshold Short
float
0
Threshold_S_C
Force Table Overlay
bool
false
fo
enable_table
bool
true
enable_table
RMSD Trend Modes Table
string
Middle Right
pos_table
table_size_input
string
Normal
table_size_input
Custom Color Palette
string
Mystic
ColMode
Use Custom Palette
bool
true
cpyn
Custom Up
color
#00ff00
cp_UpC
Custom Down
color
#ff0000
cp_DnC
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 plots a TTM Squeeze momentum oscillator in a separate pane. It compares a Bollinger Band offset to a Keltner Channel offset and marks the zero line white when the difference is non-negative and black when the bands are inside the channel. A line
Calculates dynamic modeling values by applying a mathematical logistic differential equation to price change over a specified lookback length. It measures price momentum relative to the recent high-low price range. The script plots positive and negative logist
This indicator detects a Bollinger Band squeeze when the bands sit inside Keltner Channels, marking low volatility. It plots red dots during a squeeze and green dots when the bands are outside, in a separate pane. An optional histogram shows momentum as the cl
MACD-V is a volatility-normalized momentum indicator based on research by Alex Spiroglou. It calculates the standard MACD histogram and normalizes it by dividing by the Average True Range (ATR). Plotted in a separate pane as a colored histogram, it includes us
This indicator generates trade entry signals and target levels optimized for 1-hour timeframes, designed for external signal extraction. It calculates 7-period and 16-period EMAs alongside 10-period RSI and ATR filters. Long signals occur when the fast EMA cro
The Bubbles Indicator measures volatility squeezes and expansion bursts using Bollinger Bands combined with a sinusoid oscillator and RSI divergence. It processes price data through scaled Bollinger Bands to highlight volatility changes while confirming trend