All indicators

Pivot Based Trailing Maxima & Minima

By LuxAlgoMar 14, 2022

Static chart image

Pivot Based Trailing Maxima & Minima tracks the running maximum and minimum of price, resets each trail when a pivot high or low confirms, and plots the average the two produce. Anchoring the resets to swing highs and lows turns raw extremes into a stepped map of past and present support and resistance: levels tied to the places reversals actually formed.

How to Trade the Pivot Based Trailing Maxima & Minima?

  • Trailing maximum stepping higher: consecutive new highs in the trail confirm an uptrend.
  • Trailing minimum stepping lower: persistent new lows mark a downtrend.
  • Neither trail advancing: no fresh extremes suggests a ranging market.
  • The average line: the midpoint of the two trails highlights the support and resistance the tool is built around.

The cadence of new extremes is itself a read on trend strength: frequent new highs speak to sustained buying pressure, sparse ones to a tiring move. Within the broader family of trailing methods, resetting at structure rather than by a fixed offset is what keeps these levels aligned with the swings that matter.

Pivot Based Trailing Maxima & Minima Settings

  • Length: the pivot high/low lookback; increase it to reset only at longer-term tops and bottoms.
  • Backpaint: offsets the plotted results into the past so they align with the price action that produced them; outputs remain extended to the latest bar.

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
  • More Quant usage to customize it, plus extra usage when you need it
  • Futures data alongside crypto, stocks, forex and commodities
See plans

Also works on

TradingView
NinjaTrader
MetaTrader 4/5
Original indicatorBuilt in-house by LuxAlgo

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.