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
REG-TREND determines channel boundaries and deviation to detect trend breaks, marking them with dotted lines in the chosen color. Fibonacci retracement levels can be overlaid on the regression lines. The indicator draws directly on the price chart to visualize trend direction and potential channel breaks. Settings control line length, deviation multiplier, extension, visibility of broken channels and Fibonacci levels, as well as colors and width. It provides trend identification but includes no entry, exit, stop loss, or position sizing rules.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Grup seç
string
1
grupSec
PERİYOT
timeframe
per
Konum Ayarı
int
20
loc
Source
source
close
src
Length
int
100
len
Deviation
float
2.
devlen
Extend Lines
bool
true
extendit
Show Fibonacci Levels
bool
false
showfibo
Show Broken Channel
bool
true
showbroken
brokencol
color
color.blue
brokencol
Up/Down Trend Colors
color
#00ab25
upcol
dncol
color
#df0202
dncol
Show all 40 settings
Setting
Type
Default
Variable
Line Width
int
2
widt
Source
source
close
src5
5EMA
int
5
len5
8EMA
int
8
len8
13EMA
int
13
len13
History bars back
int
300
history_bars
Resolution (bars)
int
6
xx1
1
symbol
sb1
2
symbol
BIST:XAKUR
sb2
3
symbol
BIST:XBANA
sb3
4
symbol
BIST:XBANK
sb4
5
symbol
BIST:XBLSM
sb5
6
symbol
BIST:XELKT
sb6
7
symbol
BIST:XFINK
sb7
8
symbol
BIST:XGIDA
sb8
9
symbol
BIST:XGMYO
sb9
10
symbol
BIST:XHOLD
sb10
11
symbol
BIST:XILTM
sb11
12
symbol
BIST:XINSA
sb12
13
symbol
BIST:XKAGT
sb13
14
symbol
BIST:XKMYA
sb14
15
symbol
BIST:XMADN
sb15
16
symbol
BIST:XMANA
sb16
17
symbol
BIST:XMESY
sb17
18
symbol
BIST:XSGRT
sb18
19
symbol
BIST:XSPOR
sb19
20
symbol
BIST:XTAST
sb20
21
symbol
BIST:XTCRT
sb21
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 analyzes short-term price action on index futures and options charts by applying Rational Quadratic kernel smoothing to detect sideways consolidation ranges and potential breakouts. It processes pivot highs and lows over customizable loopback pe
This indicator plots Ichimoku Cloud elements on the price chart, including Tenkan-sen, Kijun-sen, Senkou Span A and B lines with optional Chikou Span. It signals trend changes via Tenkan-sen and Kijun-sen crosses and places arrows at Kijun-sen direction shifts
This indicator overlays trend-following Supertrend bands on the price chart using Average True Range calculations. It plots trailing stop lines, highlights active trend directions, and prints buy or sell shape labels when price closes across band thresholds. I
This indicator plots two Hull moving averages on the price chart, one of the selected price and one of close, and optionally smooths both with a Kahlman filter. It fills the space between them and marks buy and sell labels when they cross, provided scaled volu
The MA Envelope indicator calculates upper and lower channel bands shifted by a user-defined percentage around a baseline moving average. It supports Simple Moving Average, Exponential Moving Average, and Weighted Moving Average calculation types. The script p
This indicator calculates an Exponential Moving Average and a Zero-Lag Moving Average to identify market trends on the price chart. It plots both moving averages and fills the space between them with color to highlight trend direction. Upon a crossover or cros