All indicators

Auto Trend Drawing

By LuxAlgoFeb 17, 2026

Static chart image

Auto Trend Drawing sketches trend structure the way a trader would by hand: it isolates the structurally important pivots in a recent window and joins them with a smooth spline, producing a flowing curve of the dominant direction. Where a classic trendline is a straight edge between two swings, this curve keeps adapting to fresh data: it recalculates retrospectively and is subject to repainting by design.

How to Trade the Auto Trend Drawing?

  • Upward slope, price above: buyers own the structure; pullbacks toward the curve can behave as dynamic support.
  • Downward slope, price below: sellers are in control; rallies into the curve often act as dynamic resistance.
  • Flattening curve: compression and fading directional momentum, the environment that frequently precedes breakouts.
  • Structural break: price decisively crossing and holding beyond the curve while its slope turns is the reversal tell.

Under the hood, prices are ATR-normalized so behavior stays consistent across instruments and timeframes, the Ramer-Douglas-Peucker pass strips insignificant points while preserving major swing highs and lows, and Catmull-Rom spline interpolation connects the surviving anchors. Given the retrospective recalculation, treat it as one of the library's trend tools for structure and bias rather than a real-time entry trigger.

Auto Trend Drawing Settings

  • Window Size: how many recent bars are analyzed; larger captures macro structure, smaller hugs short-term behavior.
  • Simplification Multiplier: filtering aggression. Higher for smoother macro shape, lower for a tighter, more reactive curve.
  • ATR Length: period used for the volatility normalization.
  • Curve Tension: how tightly the spline bends between anchors; 0.5 gives balanced centripetal curvature.
  • Curve Resolution: calculated sub-points between anchors for a smoother line; color and width handle styling.

Frequently Asked Questions

Free on Vela

Run it on Vela. Go further with a paid plan.

  • Up to 500 strategy alerts, with webhook automation
  • Up to 10× the chart history of Free
  • Orderflow lookback up to full history
  • Up to 100,000 monthly credits for Quant to customize it
  • Futures data alongside crypto, stocks, forex and commodities
See plans

Also works on

TradingView
NinjaTrader
Original indicatorBuilt in-house by LuxAlgo
All 10 Trendline indicators

Run 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.