Cubic Bézier Curve Extrapolation
By LuxAlgoMar 7, 2022
Cubic Bézier Curve Extrapolation is an indicator on Vela, our next-generation charting platform, written in Pine Script®.

Cubic Bézier Curve Extrapolation fits a smooth Bézier curve through four control points placed on the chart, then extends it forward to sketch where the current dynamic could lead. Where polynomial curve fitting solves for a shape from price data alone, a Bézier construction hands the shape to the trader: the curve always begins at the first control point and ends at the last, while the middle points bend its path. This build evaluates the curve polynomially: the degree is one less than the number of control points, hence cubic from four.
How to Trade the Cubic Bézier Curve Extrapolation?
- Place the control points: drag the four points like a standard drawing object: onto swing highs and lows, or positioned to capture the nuance of the recent trend.
- Read the projection: the extrapolated segment estimates how the fitted dynamic extends forward, a visual hypothesis for continuation or a rounding turn.
- Watch the color: the curve shifts hue with direction (one shade for the rising phase, a second once it rolls lower), separating phases at a glance.
Bézier fitting favors smoothness over exact data fit, so treat projections as scenario guides rather than forecasts. Traders who need the curve to hug the data more tightly may find rational Bézier curves a better match.
Cubic Bézier Curve Extrapolation Settings
- Extrapolation Length: how many observations the curve is projected forward.
- Source: listed in the settings but not used; the curve is built only from the four control points' prices.
- Width: line thickness, alongside the two direction-based colors.
Frequently Asked Questions
Free to use
Run it on Vela. Go further with a paid plan.
- Up to 500 Custom Alerts, with webhook automation
- Up to 10× the chart history of Free
- Orderflow lookback up to full history
- More Quant usage to customize it, plus extra usage when you need it
- Futures data alongside crypto, stocks, forex and commodities
Also works on
Related indicators
All 4 Polynomial Regression indicatorsRun it on Vela. Make it yours with Quant.
Open this indicator free on Vela, our next-generation charting platform. Then ask Quant, our coding agent built into Vela, to retune it or turn it into a backtested strategy of your own.



