Indicator · Pine Script v6 · On the chart

Recursive Reversal Chart Patterns [Trendoscope®]

by regalouisei· code credited to Trendoscope Pty Ltd, Trendoscope®

This indicator detects recursive reversal chart patterns directly on the price chart using multi-level zigzag swings.

View on GitHub

Repaints

GitHub stars2on the repository
Pine versionv6current
Lines of code160
Settings40inputs
LicenceNone stated
Last update8 months ago25 Feb 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 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.

Details

Published by

regalouisei on GitHub

Code credit

Trendoscope Pty Ltd, Trendoscope®, as written in the script's header

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

Support & resistance, Breakout, Trend

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

  • Signals can change on the live bar or after it closes (repainting)

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Lengthint8zigzagLength
Depthint50depth
Minimum Zigzag Levelint0minimumZigZagLevel
Double TapbooltrueenableDoubleTap
Triple TapbooltrueenableTripleTap
Cup And HandleboolfalseenableCupAndHandle
Head And ShouldersboolfalseenableHeadAndShoulders
Error Percentint13errorPercent
Shoulder Startfloat0.1shoulderStart
Shoulder Endfloat0.5shoulderEnd
Risk Adjustment Percentint13riskAdjustment
RSIboolfalseenableRsi
Show all 40 settings
SettingTypeDefaultVariable
rsiLengthint14rsiLength
MFIboolfalseenableMfi
mfiLengthint14mfiLength
OBVboolfalseenableObv
enableCustomboolfalseenableCustom
customNamestringCustomcustomName
customValuesourceclosecustomValue
Line Widthint3lineWidth
Themeenumut.Theme.DARKtheme
colorcolor.rgb(251, 244, 109)
colorcolor.rgb(141, 186, 81)
colorcolor.rgb(74, 159, 245)
colorcolor.rgb(255, 153, 140)
colorcolor.rgb(255, 149, 0)
colorcolor.rgb(0, 234, 211)
colorcolor.rgb(167, 153, 183)
colorcolor.rgb(255, 210, 113)
colorcolor.rgb(119, 217, 112)
colorcolor.rgb(95, 129, 228)
colorcolor.rgb(235, 146, 190)
colorcolor.rgb(198, 139, 89)
colorcolor.rgb(200, 149, 149)
colorcolor.rgb(196, 182, 182)
colorcolor.rgb(255, 190, 15)
colorcolor.rgb(192, 226, 24)
colorcolor.rgb(153, 140, 235)
colorcolor.rgb(206, 31, 107)
colorcolor.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.

Similar Pine Scripts

Sideway Zones Live

by dearvn
257 stars

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

Indicator v5 TrendSupport & resistance
Updated 6 weeks ago · None stated GitHub repository of Sideway Zones Live
56 stars

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

Indicator v5 TrendSupport & resistance Repaints
Updated 2 months ago · None stated GitHub repository of Trendlines With Breaks [LUX]

Reversal Breakout System

by TamaraKGreen
46 stars

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

Indicator v6 Candlestick patternsBreakout
Updated 7 weeks ago · None stated GitHub repository of Reversal Breakout System
24 stars

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

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 10 days ago · Custom licence GitHub repository of Smart Money Concepts [LuxAlgo] Test B

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,

Indicator v6 TrendVolatility & bands
Updated yesterday · MIT GitHub repository of Market Tradability Engine [WavesUnchained]

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

Indicator v4 TrendBreakout
Updated 4 years ago · None stated GitHub repository of Accurate Swing Trading System

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers