What it does
Swing Pivot Trail is a SuperTrend-style trail whose centre line is anchored to swing pivots instead of price. Each new pivot high or low (confirmed Pivot Strength bars after it prints) pulls the centre line toward it with the Pivot Blend Weight; bands sit ATR Multiplier ATRs above and below the centre and, like a SuperTrend, only ever move toward price. The trend flips when the close goes Flip Buffer ATRs past the opposite band, and the trail drawn on the chart is the lower band in an uptrend and the upper band in a downtrend, with optional shading between the trail and price. Every flip is a BUY or SELL label graded A to C from the higher-timeframe EMA trend, ADX strength and volume above its average, and each shown flip opens a trade that the next flip closes, so the info table reports the trail's own track record.
How to add it
Click Indicators (ƒx) in the header.
Search “Swing Pivot Trail” and click the result.
Hover its legend row and click the gear to open settings.
How traders use it
- Trade the flips and trail on the band: a BUY label is a close through the upper band, the lower band is then your stop, and grade A flips deserve full size.
- Because the centre follows swing pivots, the trail hugs the last swing low in an uptrend; a close through it is a structure break, not just a volatility stop, so honour it.
- Turn on "Hide signals when market is choppy" for range-bound stocks: flips with ADX below the threshold are the ones that reverse within a few bars.
- Keep the daily higher-timeframe EMA on intraday NIFTY charts so counter-trend flips are graded down and easy to skip.
- Raise the Flip Buffer to 0.2–0.3 ATR on noisy instruments to avoid flips on a single wick-driven close.
- Read the info table before trusting the setting: the average R and win rate change a lot between ATR multipliers of 2 and 3.
Inputs
| Input | Type | Default | Range / Options |
|---|---|---|---|
| Pivot Strength (bars each side) | number | 3 | 1–30 |
| ATR Length | number | 10 | ≥ 1 |
| ATR Multiplier | number | 3.0 | ≥ 0.5, step 0.1 |
| Pivot Blend Weight | number | 0.35 | 0.05–1.0 |
| Flip Buffer (x ATR) | number | 0.0 | ≥ 0, step 0.1 |
| ADX Length | number | 14 | ≥ 2 |
| Choppy Market Below ADX | number | 18 | ≥ 5 |
| Hide signals when market is choppy | boolean | false | on / off |
| Use Higher Timeframe Trend | boolean | true | on / off |
| Higher Timeframe | select | 1 day | Chart, 1 minute, 5 minutes, 15 minutes, 30 minutes, 1 hour, 1 day, 1 week, 1 month |
| Higher Timeframe Trend EMA | number | 50 | ≥ 5 |
| Volume Average Length | number | 20 | ≥ 2 |
| Show Pivot Centre Line | boolean | false | on / off |
| Show Trail Shading | boolean | true | on / off |
| Show Buy/Sell Labels | boolean | true | on / off |
| Show Info Table | boolean | true | on / off |
| Table Position | select | Top right | Top right, Bottom right, Top left, Bottom left |
Plots & styling
| Plot | Style | Default color |
|---|---|---|
| Trail | line (width 2), coloured by trend | #4CAF50 up · #F23645 down |
| Trail shading | fill between the trail and the bar's mid price | trail colour, translucent |
| Pivot Centre | step line (hidden by default) | #787B86 |
| BUY / SELL labels with grade | label | #4CAF50 / #F23645, #FFFFFF text |
| Info table | table | #311B92 header, #787B86 text |
Every plot's color, line width and visibility can be changed on the Style tab. Precision, price-scale labels and status-line values are configurable at the bottom of the Style tab.
Tips
- Use Add to favorites in the legend menu; starred studies surface at the top of the picker.
- Reference levels (where the study has them) are editable — tune them to the instrument you're trading.
- Hide the study from the legend eye instead of removing it when you only want it out of the way temporarily.
Watch out for
- Pivots are confirmed Pivot Strength bars late, so the centre line moves after the swing is already history; the trail itself does not repaint, but a new pivot can shift the centre and the bands on confirmation.
- A high blend weight makes the centre jump to every pivot and the bands with it; a low weight makes the trail behave like a plain SuperTrend, so tune the weight before the multiplier.
- The grades use a single EMA, ADX and average volume: they rank the context of a flip, they do not forecast it, and on thin stocks the volume star is unreliable.