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
Recursive Reversal Chart Patterns [Trendoscope®] identifies structures including double taps, triple taps, cup and handle formations, and head and shoulders patterns. Optional secondary confirmations can be enabled using RSI, MFI, OBV, or custom data feeds. Users can customize zigzag length and depth, error tolerance percentages, and shoulder boundaries. Because pattern completion relies on zigzag swing points, signals near the live bar can adjust or repaint until pivots confirm.
Recursive zigzag reversal pattern detection
Double tap and triple tap pattern recognition
Head and shoulders and cup and handle pattern options
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Length
int
8
zigzagLength
Depth
int
50
depth
Minimum Zigzag Level
int
0
minimumZigZagLevel
Double Tap
bool
true
enableDoubleTap
Triple Tap
bool
true
enableTripleTap
Cup And Handle
bool
false
enableCupAndHandle
Head And Shoulders
bool
false
enableHeadAndShoulders
Error Percent
int
13
errorPercent
Shoulder Start
float
0.1
shoulderStart
Shoulder End
float
0.5
shoulderEnd
Risk Adjustment Percent
int
13
riskAdjustment
RSI
bool
false
enableRsi
Show all 40 settings
Setting
Type
Default
Variable
rsiLength
int
14
rsiLength
MFI
bool
false
enableMfi
mfiLength
int
14
mfiLength
OBV
bool
false
enableObv
enableCustom
bool
false
enableCustom
customName
string
Custom
customName
customValue
source
close
customValue
Line Width
int
3
lineWidth
Theme
enum
ut.Theme.DARK
theme
color
color.rgb(251, 244, 109)
color
color.rgb(141, 186, 81)
color
color.rgb(74, 159, 245)
color
color.rgb(255, 153, 140)
color
color.rgb(255, 149, 0)
color
color.rgb(0, 234, 211)
color
color.rgb(167, 153, 183)
color
color.rgb(255, 210, 113)
color
color.rgb(119, 217, 112)
color
color.rgb(95, 129, 228)
color
color.rgb(235, 146, 190)
color
color.rgb(198, 139, 89)
color
color.rgb(200, 149, 149)
color
color.rgb(196, 182, 182)
color
color.rgb(255, 190, 15)
color
color.rgb(192, 226, 24)
color
color.rgb(153, 140, 235)
color
color.rgb(206, 31, 107)
color
color.rgb(251, 54, 64)
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 calculates dynamic upper and lower trendlines from pivot highs and pivot lows across a specified bar length. Trendline slopes are derived using ATR, standard deviation, or linear regression methods. It plots trendlines and breakout signal labels
This indicator detects inside candles inside larger parent candles on the price chart. It plots colored boxes around inside and parent candles, fills them with user-adjustable transparency, draws Fibonacci retracement lines and mother candle range lines, and d
This indicator maps Smart Money Concepts (SMC) market structure directly onto the price chart. It detects internal and swing structure breaks (BOS and CHoCH), tracks bullish and bearish order blocks, identifies fair value gaps (FVG), highlights equal highs and
The Market Tradability Engine calculates multi-factor tradability, balance, compression, and direction scores to evaluate market regime quality. It classifies market conditions into eight distinct states, including Balance, Compression, Ready, Breakout, Trend,
This indicator tracks swing highs and swing lows to generate trend-following trailing stop levels on the price chart. When the closing price breaks above the previous swing high, the system establishes a bullish state using the recent swing low as a trailing s