Indicator · Pine Script v6 · On the chart

Viprasol Elite Advanced Pattern Scanner

by Thedev-Lars· code credited to viprasol

A pattern scanner that looks for symmetrical discount and premium structures built from confirmed pivots, then scores each one against symmetry, trend, volume, depth and structure weights.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code1,019
Settings40inputs
LicenceNone stated
Last update11 months ago3 Dec 2025

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

Only patterns above a minimum quality score are shown, and optional volatility, momentum and liquidity filters can remove weaker ones. It draws the patterns, labels and projected target levels on the price chart, with selectable target modes for long and short cases. Pivot widths, tolerances and weights are adjustable. Patterns depend on pivots, which confirm after several bars.

Details

Published by

Thedev-Lars on GitHub

Code credit

viprasol, as written in the script's header

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

Support & resistance, 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
Show Historical Patternsboolfalsevip_show_historical
✅ Enable DISCOUNT Patternbooltruevip_enable_discount
✅ Enable PREMIUM Patternbooltruevip_enable_premium
Left Pivotsint6vip_left_candles
Right Pivotsint4vip_right_candles
Min Pattern Widthint12vip_min_pattern_width
Symmetry Tolerance %float1.8vip_symmetry_tolerance
Min Structure Lengthint12vip_min_structure_length
Min Trend Depthint12vip_min_trend_depth
Trend Scan Rangeint55vip_trend_scan_range
Extension Multiplierfloat2.2vip_extension_factor
Min Quality Scoreint65vip_min_quality_threshold
Show all 40 settings
SettingTypeDefaultVariable
Symmetry Weightfloat32.0vip_symmetry_weight
Trend Weightfloat22.0vip_trend_weight
Volume Weightfloat22.0vip_volume_weight
Depth Weightfloat16.0vip_depth_weight
Structure Weightfloat16.0vip_structure_weight
Enable Volatility Filterbooltruevip_use_volatility_filter
Volatility Periodint16vip_volatility_period
Enable Momentum Filterbooltruevip_use_momentum_filter
Momentum Periodint16vip_momentum_period
Momentum Thresholdfloat22.0vip_momentum_threshold
Enable Liquidity Filterbooltruevip_use_liquidity_filter
Liquidity Periodint22vip_liquidity_period
Discount LONG TargetstringBalancedvip_discount_long_mode
Discount SHORT TargetstringConservativevip_discount_short_mode
Premium SHORT TargetstringBalancedvip_premium_short_mode
Premium LONG TargetstringConservativevip_premium_long_mode
Label SizestringSmallvip_label_scale
Discount Text Colorcolorcolor.new(#00FFA3, 0)vip_discount_text_color
Discount Backgroundcolorcolor.new(#9D4EDD, 80)vip_discount_bg_color
Discount Elite Qualitycolorcolor.new(#00E5FF, 0)vip_discount_elite
Discount Premium Qualitycolorcolor.new(#9D4EDD, 0)vip_discount_premium
Discount Standard Qualitycolorcolor.new(#696969, 0)vip_discount_standard
Premium Text Colorcolorcolor.new(#FF0080, 0)vip_premium_text_color
Premium Backgroundcolorcolor.new(#FF0080, 80)vip_premium_bg_color
Premium Elite Qualitycolorcolor.new(#FF0080, 0)vip_premium_elite
Premium Mid Qualitycolorcolor.new(#9D4EDD, 0)vip_premium_mid
Premium Standard Qualitycolorcolor.new(#696969, 0)vip_premium_standard
Target Achieved Colorcolorcolor.new(#00FFA3, 0)vip_target_achieved_color
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
219 stars

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

Indicator v5 Candlestick patternsBreakout
Updated 1 year ago · None stated GitHub repository of Candlestick Patterns - HOLP-LOHP
218 stars

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

Indicator v6 Support & resistanceBreakout
Updated 3 months ago · None stated GitHub repository of Dynamic Support & Resistance

Donchian Channels (DC)

by mihakralj
99 stars

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

Indicator v6 Volatility & bandsSupport & resistance
Updated 4 weeks ago · Apache-2.0 GitHub repository of Donchian Channels (DC)

Lows from New Highs

by be-thomas
65 stars

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

Indicator v4 Support & resistanceBreakout
Updated 5 days ago · GPL-3.0 GitHub repository of Lows from New Highs

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

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · Apache-2.0 GitHub repository of Market Structure with Inducements & Sweeps [LuxAlgo]

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