The short version. I backtested LonesomeTheBlue's "Pivot Point SuperTrend [Backtest]" on TradingView (about 5,400 boosts; the indicator version has over 29,000). I ported it to Python and ran it on Exness tick data for eight markets with real spread and commission, plus Dukascopy gold back to 2004.

  • Forex loses everywhere. EURUSD, GBPUSD and NZDUSD: PF 0.70 to 0.97 on every timeframe from M5 to H4. On M15, none of the 40 parameter sets I tried made money on any of the three pairs.
  • Gold M30 is the one bright spot. PF 1.16 after costs, 1,256 trades, January 2020 to October 2026, positive in 6 of 7 years. But the shorts roughly broke even, and holding gold made more.
  • The pivot idea doesn't add much. Swap the pivot center line for the plain hl2 of a classic SuperTrend, same code, and the pivot version wins in 47 of 80 cells, by a median of 0.016 PF. You get about a third fewer trades, not a better system.
  • It's a trend follower, and it acts like one. On gold from 2004 it made money when gold went up or down, and lost steadily through the 2015 to 2019 range (PF 0.85).

My verdict: a reasonable SuperTrend variant for gold on M30 or H1 in trending years. On forex I wouldn't run it at all.

What is the Pivot Point SuperTrend strategy?

It's a Pine v4 strategy published on 3 October 2021. It's a SuperTrend, with one change.

A classic SuperTrend draws its bands around hl2, the middle of each bar. This one draws them around a center line built from pivot points:

  1. Find pivot highs and lows with a period of 2 (a bar higher or lower than the 2 bars on each side). A pivot is only known 2 bars after it happens.
  2. The first pivot becomes the center. After that, every new pivot moves it: center = (2 × center + new pivot) / 3.
  3. Bands sit at center ± 3 × ATR(10) and trail like a normal SuperTrend.
  4. Close above the upper band: trend turns up. Close below the lower band: trend turns down.

When the trend flips, the strategy closes everything and opens the other way at the next bar's open. There's no stop loss and no take profit. You're always in the market, long or short.

Pivot Point SuperTrend on XAUUSD M30 from 15 to 26 September 2025: candles, the trailing PP SuperTrend line in green for long and red for short, the blue pivot center line, a dashed classic SuperTrend on hl2 for comparison, H and L pivot labels, and each exit marked with its profit or loss in USD per ounce, Exness ticks with spread and commission

That chart shows a normal two weeks on gold. One long from 19 to 24 September made +89 USD per ounce. Of the other eight, seven lost between 5 and 38 and one made +26. That's how this kind of system works: lots of small losses, paid for by the few long trends. The dashed line is a classic SuperTrend with the same settings, and you can see it hugs price more tightly, so it flips more often.

There's also an option, off by default, to close half the position when the center line crosses to the other side of the bar's midpoint, once the trade is at least 1% in profit. I'll come back to that, because the short side of it has a bug.

How I tested it

  • Port: Python, checked bar by bar against the Pine logic. Signals on the bar close, orders filled at the next bar's open, which is TradingView's default broker. Pivots use Pine's rule (strictly higher than the bars on the left, at least as high as the bars on the right).
  • Data: Exness Raw Spread ticks for XAUUSD, USDJPY, EURUSD, GBPUSD, NZDUSD and US500 (January 2020 to October 2026, US500 to September), ETHUSD (2020 to November 2026) and BTCUSD (2024 to November 2026). Dukascopy gold and forex M1 from 2004 for the long view.
  • Costs: real spread on the bar's first tick plus 3.5 USD per lot per side commission on forex and gold. No swap in the main tables; I tested it separately for gold.
  • Settings: the script defaults. Pivot period 2, ATR 10, factor 3, long and short, half-close option off.

The results

Profit factor after costs for Pivot Point SuperTrend with default settings, long plus short, on XAUUSD, USDJPY, ETHUSD, BTCUSD, US500, EURUSD, GBPUSD and NZDUSD from M5 to D1, with trade counts, Exness Raw Spread ticks January 2020 to October 2026

Without costs, which is what TradingView shows by default since the script sets no commission, gold M30 reads PF 1.18 and ETH M30 1.12. The costs mostly hurt M5 and M15, where there are thousands of trades.

The D1 cells look great on gold (PF 3.31) and ETH (1.37). Ignore them: 21 and 35 trades over almost seven years, and gold D1 had PF 0.09 on its 5 trades before October 2021.

Is Pivot Point SuperTrend profitable on gold?

On M30 and H1 since 2020, yes, modestly. XAUUSD M30, Exness, 31 January 2020 to 22 October 2026, after spread and commission: 1,256 trades, PF 1.16, +2,136 USD per ounce, max drawdown 943 USD per ounce, win rate 36%.

XAUUSD M30 2020 2021 2022 2023 2024 2025 2026 (to Oct)
Trades 152 206 192 193 185 183 145
PF 1.31 0.92 1.17 1.16 1.26 1.19 1.14

It held up after it was published: PF 1.13 on 311 trades before 3 October 2021, 1.17 on 945 trades after. Shifting the M30 bar boundaries by 5 to 25 minutes kept PF between 1.16 and 1.25.

But there are three catches:

  • Longs made all of it. Longs PF 1.36 (+2,290), shorts PF 0.98 (−154). Gold went from about 1,600 to over 4,000 in this period.
  • Buying and holding one ounce made +2,455, with a 1,624 drawdown. The strategy made less, with a smaller drawdown.
  • Swap eats some of it. Holding longs overnight costs money on Raw accounts. Scaling today's swap to the gold price at each trade, M30 drops from PF 1.16 to 1.13, H1 from 1.14 to 1.09, H4 from 1.01 to 0.93.

I also slid the whole position series to a random point in time 200 times and reran it. The real M30 result beat 93% of the shuffled copies (p = 0.07). That's close to the usual 0.05 line, but not under it.

Does it work when gold isn't trending?

No, and the older data shows it clearly.

XAUUSD M30 from 2004 to 2026: gold price on a log scale above, cumulative percent per trade below, split into four periods: 2004 to 2011 gold rising PF 1.08, 2012 to 2014 gold falling PF 1.15, 2015 to 2019 gold sideways PF 0.85, 2020 to 2026 gold rising PF 1.20, script publish date 3 October 2021 marked, Dukascopy data, no commission, no swap

XAUUSD M30, Dukascopy Gold did Trades PF Longs Shorts
2004 – 2011 rose 1,260 1.08 +98.9% −50.2%
2012 – 2014 fell 571 1.15 +1.7% +27.1%
2015 – 2019 went sideways 996 0.85 −11.7% −40.0%
2020 – 2026 rose 1,202 1.20 +98.6% −8.1%

Percent is the sum of each trade's return on price. This is the most useful table in the post, I think. The strategy isn't a long-gold bet in disguise: in 2012 to 2014 the shorts did the work. It just needs a trend, and five years of chop cost it most of what it had made.

Does the pivot center line beat a classic SuperTrend?

Barely, and not reliably. I kept every line of the strategy the same and replaced the pivot center with hl2. That turns it into a plain SuperTrend with ATR 10 and factor 3.

Scatter of profit factor, Pivot Point SuperTrend versus classic SuperTrend on hl2 with the same ATR 10 and factor 3, 80 cells covering 8 markets, M15 to D1, long plus short and long only, gold highlighted, pivot better in 47 of 80 cells, median difference plus 0.016, Exness ticks 2020 to 2026 after costs

The pivot version is better in 47 of 80 cells, and the median gap is +0.016 PF. The classic version makes 1.56 times as many trades, because its center moves every bar while the pivot center only moves on new pivots. So you get a calmer line and fewer flips. It doesn't buy you a better result. The big gaps sit in cells with few trades: gold D1 (pivot 3.31, classic 1.36, 21 trades) and gold H4 (classic 1.77, pivot 1.01).

If you like the look of it on your chart, fine. Just don't expect the pivots to be the edge.

What are the best Pivot Point SuperTrend settings?

I ran 40 combinations: pivot period 1, 2, 3, 5 and 8, factor 2, 3, 4 and 5, ATR 10 and 20, on M15, H1 and H4.

Share of 40 Pivot Point SuperTrend settings with profit factor above 1 for each market on M15, H1 and H4, with the rank of the default settings, Exness ticks 2020 to 2026 after costs

On gold, almost every combination made money: 100% on M15 and H1, 98% on H4. The defaults ranked only 33rd of 40 on gold H1, and the median PF there was 1.28 against the default's 1.14. Longer pivots (5 or 8) and wider bands (factor 4 or 5) did better on H1.

But read that the right way. When every setting wins, the market is doing the work, not the settings. And on EURUSD, GBPUSD and NZDUSD M15, the share of winning settings was 0%. No setting fixes forex here.

If I had to pick, I'd keep the defaults on M30, or try pivot 5 with factor 4 on H1 gold, knowing I tuned that on the same 2020 to 2026 data I'm judging it on.

Should you turn on "Use Center Line to Close Entry for 50%"?

I wouldn't. With a 0%, 1% or 2% minimum profit, it beat the default in only 5 to 12 of 24 cells I tested (8 markets × M15, H1, H4).

There's also a bug in the short side. The long rule closes half when close > entry × (1 + minrate), which means at least 1% in profit. The short rule uses the same (1 + minrate), so close < entry × 1.01. That's true even when the short is losing up to 1%. I tested both the original and a fixed version (1 − minrate). Neither helped consistently, so the bug doesn't change the verdict, but if you use the option, know that it can bank half of a losing short.

Does Pivot Point SuperTrend repaint?

The strategy's signals don't. A pivot needs 2 more bars to confirm, and the center line only moves when that confirmation arrives, so on a closed bar the trend and trade signals stay put. What looks like repainting is the "Show Pivot Points" labels: they're drawn back on the pivot bar, 2 bars earlier than the moment the script actually knew about them.

Risk structure

  • No stop loss. A trade ends only when the trend flips. On gold M30 the median trade lasted about 29 hours.
  • Always in the market, long or short, so you carry weekend gaps.
  • Ten worst trades, XAUUSD M30, USD per ounce after costs:
Entry Exit Side Entry → exit Loss
20 Mar 2026 03:30 20 Mar 14:30 Buy 4,733.80 → 4,558.24 −175.6
10 Apr 2026 14:30 12 Apr 22:30 Buy 4,790.61 → 4,647.77 −142.9
12 Apr 2026 22:30 14 Apr 00:30 Sell 4,647.77 → 4,762.47 −114.8
26 Jan 2026 19:30 27 Jan 20:30 Sell 5,027.44 → 5,141.74 −114.4
12 Feb 2026 16:30 13 Feb 15:30 Sell 4,897.83 → 5,010.05 −112.3
26 Feb 2026 15:30 27 Feb 13:30 Sell 5,141.64 → 5,235.10 −93.5
18 May 2026 23:30 19 May 13:30 Buy 4,585.74 → 4,492.34 −93.5
16 Sep 2026 19:00 17 Sep 12:00 Sell 4,261.21 → 4,349.80 −88.7
6 Mar 2026 15:30 9 Mar 00:00 Buy 5,161.70 → 5,076.18 −85.6
15 Jan 2026 01:30 18 Jan 23:30 Sell 4,600.64 → 4,678.73 −78.2

All ten are from 2026, when gold swung 100+ dollars in a day. The worst one is about 3.7% of price. The second and third are a back-to-back whipsaw over a weekend gap: a long lost 143, then the short that replaced it lost another 115.

  • Win rate is low, 36%. Expect long runs of small losses.
  • What isn't a red flag: no martingale, no grid, one position at a time.

Who should use it?

If you already trade gold with a trend system and you can sit through a sideways year without switching it off, gold M30 or H1 is the only place I'd look at this. Treat it as a SuperTrend with smoother flips. That's what it is.

On forex, skip it. On Bitcoin (2024 to 2026) it was break-even or worse. On ETH it made a little (PF 1.03 to 1.08 on M15 to H4), and US500 made money only from longs.

What I couldn't verify

  • TradingView's own report. The script has no published performance numbers to compare against, and my numbers come from my port.
  • Your broker's data. Pivots depend on exact highs and lows, so another feed gives slightly different pivots and trades.
  • Swap on everything but gold. I tested swap only on gold. Crypto and index CFDs also charge for holding overnight.
  • Statistical edge. None of my shuffle tests on Exness data got under p = 0.05. On Dukascopy 2004 to 2019, 2 of 30 cells did (gold H1 and GBPUSD H1 longs, both p = 0.04), which is about what luck gives you across 30 tries.

Bottom line

The TradingView Pivot Point SuperTrend is a SuperTrend with a slower, pivot-based center line. It made PF 1.16 on gold M30 from 2020 to 2026, lost on forex everywhere, and did about as well as a classic SuperTrend with the same settings.

This is part of a series where I port the most-boosted open-source TradingView strategies and test them on broker ticks with real costs. For the original, see the SuperTrend strategy backtest; for another SuperTrend with extras that turned out not to matter, the AI SuperTrend backtest.

I'm not affiliated with TradingView or LonesomeTheBlue. Past results, including backtests, don't guarantee future results.