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
DeFi Follow Line Trend Signal establishes a primary trend line based on price breaking outer Bollinger Bands filtered by ATR, then validates the movement with a secondary pivot-based trailing band. When both mechanisms agree on a bullish or bearish continuation, the script triggers buy or sell pulses (+100 or -100). Plotted in a separate pane, it renders both trend lines, a filled background between them, and the discrete signal value.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
BBperiod
int
21
BBperiod
BBdeviations
int
2
BBdeviations
ATRperiod
int
14
ATRperiod
UseATRfilter
bool
true
UseATRfilter
ATRmult
int
3
ATRmult
PivotLength
int
5
PivotLength
TrendSignal
int
0
signal1
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 calculates and plots dynamic SuperTrend volatility bands around median price to identify market trend direction. It signals bullish conditions when price stays above the green support line and bearish conditions when price falls below the red re
This indicator is a live strategy scanner for cryptocurrency pairs. It runs six strategies on the current chart, tracks their wins and losses, and rates them to show the best one for this pair and timeframe. It uses ATR for adaptive TP/SL, auto-scales based on
The Grid Bot Direction Plugin Supertrend Pivot indicator calculates dynamic market trend direction for automated grid trading. It computes a smoothed center level derived from pivot highs and lows, combining it with ATR-based bands to generate a trailing stop
The Keltner Center Of Gravity Channel Mutations Indicator calculates adaptive channel metrics based on Donchian range Fibonacci levels (38.2% and 61.8%) and Average True Range (ATR) offsets. The lookback period automatically adjusts according to the active tim
This indicator draws a Kalman-based trend strength oscillator in a separate pane. It can plot a Kalman filter and an optional Follow Line filtered by ATR and Bollinger Bands, with an optional fill between those lines. ZigZag swings and higher-timeframe PO3 gho
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