XXUANTIFYInvite a friend

Dynamic Pivot Point Backtest Under the Microscope

Can yesterday's floor-trader pivots alone tell you which side of the market to be on today? HPotter's Dynamic Pivot Point Backtest turns that old idea into a strategy that is always in the market, long or short. We found it reproduced exactly and free of repainting. On ETH hourly it lost less than holding after costs, but on the daily charts its many short flips cost too much.

Candlestick path between a stepped row of green dots above and red dots below, with candles turning green after breaking the upper dots and red after piercing the lower ones
Two rows of daily pivot levels: a close beyond one of them flips the side.

Key takeaways

Reproduced exactly: plots and trades match the original script on all four charts

Daily charts flip about 70 times a year; the median run is just 4 bars (BTC and ETH, 2019–2026)

ETH hourly, 2025–2026, with 0.10% costs: βˆ’7.8%, against βˆ’27.7% for buy-and-hold

BTC daily with 0.10% costs: βˆ’54.1%, against +691% for buy-and-hold

Scorecard

Faithful

Reproduced 1:1: plots and trades exact on BTC and ETH, daily and hourly.

Repainting

None: it only reads the previous day's finished high, low and close.

Calm

Daily: 70 switches a year, median run 4 bars. Hourly: about 124–131 a year, median run 51–59 bars.

Edge

No clear edge after its signals on any chart. With 0.10% costs it beat buy-and-hold only on ETH hourly.

What the author built

HPotter describes the script as classic floor-trader pivots: take the previous day's high, low and close, average them into a pivot, and build support and resistance levels from it. The author says longs can be swapped for shorts in the settings, and calls the script educational.

The code is short and easy to read. It works out the pivot from yesterday's daily bar, then draws just two of the levels as dotted lines: the first resistance, R1 (green), and the first support, S1 (red). The rule is plain. A close above R1 makes the position long and paints the bars green. A close below S1 makes it short and paints them red. Between the two levels the position stays as it was. So the strategy is a stop-and-reverse: it never goes flat, it just turns around. One switch, "Trade reverse", flips every signal the other way.

Because the levels come from the day before, they stay put all day on an hourly chart. On a daily chart they move every bar, which makes them much twitchier.

What we measured

On the daily charts the bar colour switches about 70 times a year on both BTC and ETH, and half of all runs last 4 bars or fewer. On the hourly charts the levels hold still for a whole day, so states last far longer: a median run of 51 bars on BTC and 59 on ETH (January 2025 to October 2026). In that sense the hourly version is the calmer of the two.

Reliability is the script's strongest point. Plots and trades match the original exactly on all four charts, and nothing repaints.

After a switch, price did not go the script's way more often than it does after any bar, on any chart. The one clear gap points the other way: on ETH daily (2019–2026, 239 long signals), price was higher five bars after a long flip 43.9% of the time, against 53.1% for any bar.

ETH hourly candles with green R1 and red S1 dots, marking a long flip on 11 October and a short flip on 12 October 2026
Look at the levels stepping once a day: each flip comes from a close beyond them.

As a strategy, ETH hourly (2025–2026, 222 trades) is where it held up best: +43.8% before costs, +15.1% with 0.05% costs and βˆ’7.8% with 0.10%, while buy-and-hold lost 27.7%. It breaks even at about 0.08% per side, and without its five best trades the result drops to βˆ’60%, so a few trades carry it. BTC hourly lost 63.1% with 0.10% costs (hold βˆ’13.8%). On the daily charts the gap is wide: BTC βˆ’54.1% against +691% for holding, ETH βˆ’80.8% against +1,500% (2019–2026). There are no settings to tune, so these are the default results and nothing was picked with hindsight.

Where it shines, and where it is quieter

Where it shines

  • An exact, repaint-free reproduction: what you see in its author's code is what we tested.
  • On ETH hourly it lost far less than holding through the 2025–2026 slide.
  • In ETH hourly stretches with normal volatility it made +152% with 0.10% costs, though on only 48 trades.
  • On the daily charts the long side made money before costs (BTC +401%, ETH +525%).

Where it is quieter

  • Daily flips are short and costly: BTC daily breaks even at about 0.02% per side.
  • The short side lost heavily on both daily charts (BTC βˆ’75%, ETH βˆ’92%, before costs).
  • In wild markets on ETH hourly it lost 68% with 0.10% costs (86 trades).
  • It is always in the market, so it rides every chop.

The bottom line

HPotter's Dynamic Pivot Point Backtest shows how far a few honest lines of code can go: it is a clean, exact and repaint-free way to trade yesterday's range. It suits an hourly chart, where daily pivots act as fixed levels for the whole session, much better than a daily chart, where they move every bar. To make it stronger, the author could add a flat state between S1 and R1, an optional long-only mode, or a volatility filter that keeps it out of wild markets: on our measurements each of these targets a place where it lost.

For another view on band breakouts, read our look at HPotter's HHLL Strategy, and see the latest measurements.

This article is education, not investment advice.

Every test here counts trading costs, runs on many markets and compares the result with just holding the same market. A result is a starting point, not a verdict. How we test

Newsletter

New tests, now and then.

Only for this newsletter; we send a mail to confirm first, and every mail has a link to stop. Privacy