RegLin Polinomico
- Indicators
- Victor Gauto
- Version: 1.0
- Activations: 5
RegLin Polinómico is a professional indicator that fits a polynomial (degree 1, 2, or 3) over a rolling price window and builds dynamic bands from the standard deviation of the fit’s residuals. It includes RSI (with selectable timeframe) and a trend-only option to filter out low-quality breakouts. You can also enable/disable sound when visual signals (arrows) are generated.
How it works
-
Fits a configurable-degree polynomial over RegPeriod bars.
-
Draws the central curve (regression) and two bands at StdDevFactor standard deviations.
Indicative signals
-
Buy: when the bar’s low breaks below the lower band and RSI confirms oversold.
-
Sell: when the bar’s high breaks above the upper band and RSI confirms overbought.
-
With OnlyInTrend = true , the slope must favor the trade (polynomial derivative): buys only if the slope is positive, sells only if it’s negative.
-
If EnableSound = true , a sound plays when an arrow is drawn for the first time.
Polynomial degree: what changes and when to use each one
Degree 1 (Linear) – Trend-following & robust
-
Behavior: best-fit straight line; delivers a clean read of direction.
-
When: clear trends or mid/high timeframes (M15–H4).
-
Pros: low latency, fewer false signals in orderly markets, less overfitting.
Degree 2 (Quadratic) – Curvature & cycles
-
Behavior: allows curvature, capturing accelerations/decelerations.
-
When: cyclical phases or arcing channels; changes of pace.
-
Pros: balanced sensitivity vs. stability; detects broad turns better than linear.
Degree 3 (Cubic) – High sensitivity & inflections
-
Behavior: captures inflections (convexity changes) and early turns.
-
When: intraday/scalping and volatile instruments.
-
Pros: maximum adaptability; consider tighter RSI/period and OnlyInTrend to avoid over-signaling.
Quick tip
-
Start with Degree 1 to map the baseline trend.
-
Try Degree 2 if you observe curvature.
-
Use Degree 3 on lower timeframes / highly dynamic markets with stricter filters.
Key advantages
-
Statistically consistent bands: width responds to model error, not just fixed ranges.
-
Integrated technical filter: RSI and (optional) slope reduce deceptive breakouts.
-
True market adaptability: switch degree by regime (trend, cycle, volatility).
-
Refined UX: arrows with optional sound, bar-close confirmation to avoid repainting.
External variables (quick guide)
-
RegPeriod – Number of bars for the fit and bands. Larger = smoother; smaller = more responsive.
-
StdDevFactor – Standard-deviation multiplier of residuals (band width).
-
PriceType – Price source: 0=Close , 1=Open , 2=High , 3=Low , 4=Average (O+C)/2 , 5=Typical (H+L+C)/3 .
-
PolyDegree – Polynomial degree: 1 (linear), 2 (quadratic), 3 (cubic). Controls sensitivity & curvature modeling.
-
RSIPeriod – RSI period used as a filter.
-
RSITimeframe – RSI timeframe (enables MTF confirmation).
-
RSI_Overbought / RSI_Oversold – Thresholds to validate overbought/oversold.
-
RSI_Shift – RSI shift; use 1 to confirm on bar close and reduce repainting.
-
OnlyInTrend – If true , requires slope in favor of the signal (derivative > 0 for buys, < 0 for sells).
-
EnableSound – If true , plays a sound when a new arrow is drawn; if false , silent.
Summary
RegLin Polinómico blends statistical rigor with operational flexibility: it adapts model complexity to the market, filters with RSI/slope, and presents clear visual signals with optional sound. Built for traders seeking consistency, noise control, and an advanced read of price dynamics.

