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
The slope can be calculated with ATR, standard deviation or linear regression, scaled by a slope multiplier, and breakouts through the lines are flagged and available as alerts. A second part adds zigzag-style reversal lines with deviation and depth settings plus price and level labels. Pivots are confirmed late and plotted back in time, so drawings can change as new pivots form.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
length
int
14
length
Slope
float
1.
k
Slope Calculation Method
string
Atr
method
Show Only Confirmed Breakouts
bool
false
show
Deviation
float
3
threshold_multiplier
Depth
int
10
depth
Reverse
bool
false
reverse
Extend Left | Extend Right
bool
false
extendLeft
extendRight
bool
true
extendRight
Show Prices
bool
true
prices
Show Levels
bool
true
levels
levelsFormat
string
Values
levelsFormat
Show all 40 settings
Setting
Type
Default
Variable
Labels Position
string
Left
labelsPosition
Background Transparency
int
85
backgroundTransparency
show_0
bool
true
show_0
value_0
int
0
value_0
color_0
color
#787b86
color_0
show_0_236
bool
true
show_0_236
value_0_236
float
0.236
value_0_236
color_0_236
color
#f44336
color_0_236
show_0_382
bool
true
show_0_382
value_0_382
float
0.382
value_0_382
color_0_382
color
#81c784
color_0_382
show_0_5
bool
true
show_0_5
value_0_5
float
0.5
value_0_5
color_0_5
color
#4caf50
color_0_5
show_0_618
bool
true
show_0_618
value_0_618
float
0.618
value_0_618
color_0_618
color
#009688
color_0_618
show_0_65
bool
false
show_0_65
value_0_65
float
0.65
value_0_65
color_0_65
color
#009688
color_0_65
show_0_786
bool
true
show_0_786
value_0_786
float
0.786
value_0_786
color_0_786
color
#64b5f6
color_0_786
show_1
bool
true
show_1
value_1
int
1
value_1
color_1
color
#787b86
color_1
show_1_272
bool
false
show_1_272
value_1_272
float
1.272
value_1_272
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.
Sideway Zones Live is an overlay indicator that estimates inner and outer sideways bands from recent highs and lows with a rational quadratic kernel. It tracks swing pivots over a loopback period and counts bars that remain between the outer high and low. Afte
This indicator plots dynamic support and resistance levels on the price chart. It detects pivot highs and lows using the pivot length and tracks touches to build strength-based levels. Support and resistance zones appear as colored boxes while lines mark key l
This indicator identifies High Of Low Price (HOLP) and Low Of High Price (LOHP) candlestick setups based on price extremes over a specified lookback period. A HOLP signal triggers when the current bar closes above the high of a recent session low, whereas a LO
This indicator calculates and plots Donchian Channels directly on the price chart. It determines the highest high and lowest low over a user-selected lookback period using an optimized monotonic deque algorithm, as well as a middle basis line computed as their
This indicator tracks bar lows during consecutive rising highs using Pine Script arrays. When at least four lows accumulate or the price breaches the minimum low in the stack, the script sorts the recorded lows in ascending order and flushes them. It plots up
This indicator tracks smart money market structure directly on the price chart. It calculates dual-period swing highs and swing lows to detect Changes of Character (CHoCH), Breaks of Structure (BOS), inducements, and liquidity sweeps. When structural levels ar