Indicator · Pine Script v6 · On the chart

Quantitative Pivot Strategy [QPS]

by monjurkuet

This indicator combines liquidity sweep detection, Fibonacci retracement levels (0.382, 0.5, 0.618, 0.786) and two user-set ratio levels called CC levels on the price chart.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code391
Settings36inputs
LicenceNone stated
Last update10 months ago25 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

A sweep is a wick beyond a recent swing by a buffer, optionally followed by reclaim candles and a volume spike. It can require agreement with a four-hour trend and shows an approximate point of control. Lookbacks, thresholds and colours are adjustable. It is an indicator only and places no orders.

Details

Published by

monjurkuet on GitHub

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

SMC / ICT / price action, Support & resistance, Volume

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 Fibonacci LevelsbooltrueshowFibLevels
Swing Detection Lookbackint20swingLookback
Fibonacci Calculation Periodint100fibLookback
Show 0.382 LevelbooltrueshowFib0382
Show 0.500 LevelbooltrueshowFib050
Show 0.618 (Golden Pocket)booltrueshowFib0618
Show 0.786 LevelbooltrueshowFib0786
Show CC LevelsbooltrueshowCCLevels
CC Level 1float0.66ccLevel1
CC Level 2 (CC 3.0)float0.71ccLevel2
Highlight CC ZonesbooltruehighlightCC
Detect Liquidity SweepsbooltruedetectSweeps
Show all 36 settings
SettingTypeDefaultVariable
Sweep Buffer %float0.15sweepBuffer
Min Wick % of Candleint50sweepWickMin
Show Sweep ZonesbooltrueshowSweepZones
Enable Reclaim ConfirmationbooltruereclaimMode
Confirmation Candles Requiredint2reclaimBars
Strict Close RequirementbooltruestrictReclaim
Use Volume ConfirmationbooltrueuseVolume
Volume MA Periodint20volMAPeriod
Volume Threshold Multiplierfloat1.5volThreshold
Show Approx. POCbooltrueshowPOC
POC Lookback Barsint50pocLookback
Enable MTF AnalysisbooltrueuseMTF
Higher TF for Trendtimeframe240htfTrend
Require HTF AlignmentbooltruerequireHTFAlign
Bullish Colorcolorcolor.new(#00E676, 0)bullColor
Bearish Colorcolorcolor.new(#FF5252, 0)bearColor
Fibonacci Colorcolorcolor.new(#FFD700, 50)fibColor
CC Level Colorcolorcolor.new(#FF6D00, 30)ccColor
Sweep Zone Colorcolorcolor.new(#E040FB, 40)sweepColor
POC Colorcolorcolor.new(#2196F3, 50)pocColor
Line Widthint2lineWidth
Show Level LabelsbooltrueshowLabels
Show Entry SignalsbooltrueshowSignals
Show Info TablebooltrueshowTable
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

Moon Dev GEX Sweep & CVD

by moondevonyt
92 stars

The indicator detects liquidity sweeps across key price levels and calculates a cumulative volume delta proxy. It uses pivot high and low lookbacks to identify swing points, marking sweeps when price breaks beyond a level and quickly closes back inside. Featur

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 2 months ago · Custom licence GitHub repository of Moon Dev GEX Sweep & CVD

Calculates higher-timeframe volume profiles to identify Value Area High (VAH), Value Area Low (VAL), and Point of Control (POC) levels directly on the price chart. It flags potential reversal setups and Change in State of Delivery (CISD) patterns relative to v

Indicator v6 VolumeSupport & resistance
Updated 2 months ago · None stated GitHub repository of CandelaCharts - Value Area Reversals

Copilot

by milocaetano
48 stars

Copilot is an order flow range-reversal indicator designed to overlay trading setups directly on the price chart. It evaluates four criteria: market context (sideways vs trending regime based on ATR height), structure (double top or double bottom retests), abs

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 days ago · MIT GitHub repository of Copilot

Supply and Demand Visible Range identifies supply, demand, and equilibrium zones across the visible chart range. It accumulates high, low, and volume data starting from the leftmost visible bar, optionally requesting lower timeframe intrabar data for finer res

Indicator v5 Support & resistanceVolume Repaints
Updated 2 months ago · AGPL-3.0 GitHub repository of Supply and Demand Visible Range [LuxAlgo]
13 stars

This script identifies and visualizes bullish and bearish order blocks on the price chart. It detects low-volatility consolidation ranges followed by breakout moves accompanied by high trading volume. Users can select between Simple, Relative, or Weighted volu

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · MIT GitHub repository of Advanced Order Blocks with Volume

This indicator identifies and visualizes key support and resistance heatmap zones directly on the price chart. Using closed one-hour price data, it evaluates multi-scale pivots, liquidity clusters, relative volume, and round-number resonances to score structur

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 7 weeks ago · MIT GitHub repository of 加密货币1小时关键价位热力图 V2

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