Indicator · Pine Script v5 · On the chart

Quadratic Surface Fit — Conic Branch Extractor

by majixai

This indicator fits a quadratic surface to normalized bar index and second axis data derived from close price, volume or RSI over a lookback period.

View on GitHub

GitHub stars1on the repository
Pine versionv5runs as is
Lines of code564
Settings14inputs
LicenceNone stated
Last updatetoday28 Oct 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

Quadratic Surface Fit — Conic Branch Extractor classifies the resulting conic sections into ellipses, parabolas or hyperbolas to extract and plot curved polylines representing the branches directly on the price chart. Mean, plus-one-sigma and minus-one-sigma horizontal slices are optionally shown alongside the branches. Inputs control lookback length, polyline step size, source selection, slice visibility, curvature and line styling. The script draws solely on the price chart without separate panes.

Details

Published by

majixai on GitHub

Type

Indicator, Pine Script v5

Draws

On the price chart

Category

Volatility & bands, Support & resistance, Mean reversion

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
Lookback Barsint60i_len
Polyline Step (bars)int3i_step
Price Sourcesourceclosei_src
2nd Axis: Volume (off = RSI)booltruei_use2
RSI Length (2nd axis = RSI only)int14i_rlen
Show Mean Slice (y = 0)booltruei_smean
Show +1σ Slice (y = +1)booltruei_sup
Show −1σ Slice (y = −1)booltruei_sdn
Curved Polylinesbooltruei_curv
Show Info Labelbooltruei_dash
Mean Colourcolorcolor.new(color.yellow, 15)i_cmean
+1σ Colourcolorcolor.new(color.teal, 30)i_cup
Show all 14 settings
SettingTypeDefaultVariable
−1σ Colourcolorcolor.new(color.orange, 30)i_cdn
Line Widthint2i_lw
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

55 stars

This Pine Script indicator overlays institutional liquidity levels on the price chart. It identifies order block levels using pivot highs and lows, then draws mean reversion lines from the 20 and 50 period simple moving averages, a volatility range midpoint pr

Indicator v6 Support & resistanceSMC / ICT / price action Repaints
Updated 6 months ago · Apache-2.0 GitHub repository of AAPL Institutional Liquidity Grid
9 stars

This indicator plots an anchored MIDAS support and resistance curve from launch-anchored volume-weighted price on the price chart. It adds two configurable volume-weighted standard-deviation, ATR, or hybrid bands and a topfinder or bottomfinder accelerated exh

Indicator v6 Mean reversionSupport & resistance Repaints
Updated yesterday · MIT GitHub repository of MIDAS 2.0 [WavesUnchained]

VWAP Trader NXi

by eddiebelaval
7 stars

VWAP Trader NXi calculates a daily session-anchored Volume Weighted Average Price along with two custom standard deviation bands on the main price chart. It plots the core VWAP, Value Area bands, outer extension zones with background shading, and the previous

Indicator v5 VolumeVolatility & bands
Updated 3 months ago · None stated GitHub repository of VWAP Trader NXi

Calculates and plots a multi-band envelope on the price chart based on mean reversion principles and Keltner Channel concepts. Instead of standard moving averages, it uses advanced filters such as Ehlers SuperSmoother, Butterworth, Gaussian, or traditional ave

Indicator v5 Mean reversionVolatility & bands
Updated 5 months ago · None stated GitHub repository of Mean Reversion Channel - MRI Variant

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