Indicator · Pine Script v6 · On the chart

Auto Chart Patterns Trendoscope

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

Auto Chart Patterns Trendoscope automatically identifies and plots technical chart patterns on the main price chart using multi-depth ZigZag pivot calculations.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code266
Settings40inputs
LicenceNone stated
Last update9 months ago10 Jan 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

Auto Chart Patterns Trendoscope detects various geometric formations including channels, wedges, and triangles across rising, falling, or non-directional trends. Traders can filter specific pattern types, adjust ZigZag depth parameters, configure maximum pivot points, and set tolerance thresholds for error and flat slope deviations. Pattern overlays are rendered directly on the chart using polylines and line objects to assist with structure analysis.

Details

Published by

webcrack4 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, Trend, Breakout

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

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

SettingTypeDefaultVariable
openSourcesourceopenopenSource
highSourcesourcehighhighSource
lowSourcesourcelowlowSource
closeSourcesourceclosecloseSource
useZigzag1booltrueuseZigzag1
zigzagLength1int8zigzagLength1
depth1int55depth1
useZigzag2boolfalseuseZigzag2
zigzagLength2int13zigzagLength2
depth2int34depth2
useZigzag3boolfalseuseZigzag3
zigzagLength3int21zigzagLength3
Show all 40 settings
SettingTypeDefaultVariable
depth3int21depth3
useZigzag4boolfalseuseZigzag4
zigzagLength4int34zigzagLength4
depth4int13depth4
Number of Pivotsint5numberOfPivots
Error Thresholdfloat20.0errorThresold
Flat Thresholdfloat20.0flatThreshold
Last Pivot DirectionstringbothlastPivotDirection
Verify Bar Ratio booltruecheckBarRatio
barRatioLimitfloat0.382barRatioLimit
Avoid OverlapbooltrueavoidOverlap
Repaintboolfalserepaint
ChannelsbooltrueallowChannels
WedgebooltrueallowWedges
TrianglebooltrueallowTriangles
RisingbooltrueallowRisingPatterns
FallingbooltrueallowFallingPatterns
Flat/Bi-DirectionalbooltrueallowNonDirectionalPatterns
ExpandingbooltrueallowExpandingPatterns
ContractingbooltrueallowContractingPatterns
ParallelbooltrueallowParallelChannels
Ascending  booltrueallowUptrendChannel
upTrendChannelLastPivotDirectionstringbothupTrendChannelLastPivotDirection
DescendingbooltrueallowDowntrendChannel
downTrendChannelLastPivotDirectionstringbothdownTrendChannelLastPivotDirection
Ranging   booltrueallowRangingChannel
rangingChannelLastPivotDirectionstringbothrangingChannelLastPivotDirection
Rising    booltrueallowRisingWedgeExpanding
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