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
156 lines of Pine Script v6 from indicator/olg_7_6_26/LyroRS/3.txt, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
The trend flips bullish when price closes above the upper band with positive velocity, and bearish when it closes below the lower band with negative velocity. Sensitivity sets how fast the filter reacts, separate multipliers widen each band, and noise length controls the error lookback. Long and short labels, bands, candle coloring and palettes are optional.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
𝗦𝗼𝘂𝗿𝗰𝗲
source
close
src
𝗦𝗲𝗻𝘀𝗶𝘁𝗶𝘃𝗶𝘁𝘆
float
4
sensitivity
+ 𝗠𝘂𝗹𝘁𝗶𝗽𝗹𝗶𝗲𝗿
float
1.65
mad_multp
- 𝗠𝘂𝗹𝘁𝗶𝗽𝗹𝗶𝗲𝗿
float
1
mad_multn
𝗡𝗼𝗶𝘀𝗲 𝗟𝗲𝗻𝗴𝘁𝗵
int
50
volLen
𝗦𝗵𝗼𝘄 𝗦𝗶𝗴𝗻𝗮𝗹𝘀
bool
true
showSignals
𝗦𝗵𝗼𝘄 𝗕𝗮𝗻𝗱𝘀
bool
true
showBands
𝗖𝗮𝗻𝗱𝗹𝗲 𝗖𝗼𝗹𝗼𝗿𝗶𝗻𝗴
bool
true
candleColor
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 an ATR-based Chandelier Exit trailing stop on the price chart. It tracks a long stop under recent highs and a short stop above recent lows, then switches direction when price crosses the opposite stop. Buy and sell labels mark those flips.
The Momentum Setup is a multi-indicator visual tool designed for trend and momentum analysis directly on the price chart. It combines Relative Strength Index (RSI), Money Flow Index (MFI), Commodity Channel Index (CCI), Supertrend, and a 250-bar percentage cha
Range Filter [Alorse] is a technical indicator overlay for TradingView designed to filter market volatility and identify price trends. It calculates a smoothed range based on historical volatility using a configurable sampling period and multiplier applied to
This indicator calculates an ATR trailing stop line derived from the highest high minus an average true range multiple over a specified lookback period. It plots the trailing stop line directly on the price chart and colors price bars based on whether the clos
This indicator plots three exponential moving averages and ATR volatility envelopes on the price chart. It compares the fast and slow EMAs to shade a trend ribbon and marks confirmed upward and downward crossovers with triangle labels. Settings change the thre
This indicator plots Donchian Channel boundary lines along with dynamic fan projections directly on the price chart. It calculates the highest high, lowest low, and median price over a customizable lookback period. Whenever price establishes a new channel high