ProdSens.live

Wednesday, 2 December 2026Eight desks, updated through the day

A 41-Bar Phase Shift Lost $4,260 to an 83-Bar Trading Clock

A backtest of S&P 500 daily data found that shifting an 83-bar entry schedule by 41 bars reduced returns by $4,260.49, despite producing the same 51 trades.

A 41-Bar Phase Shift Lost $4,260 to an 83-Bar Trading Clock — illustration

Key takeaways

  • The 41-bar-shifted schedule earned $5,610.10 from 51 trades, versus $9,870.59 for the unshifted 83-bar clock.

  • Both clocks completed 51 trades, so the no-fee performance gap was attributed to spacing and phase rather than trade count.

  • The shifted clock beat all 20 random-entry seeds and remained profitable after its largest winner was removed.

  • The test covered one phase offset, so its 100th-percentile result does not establish that every 83-bar phase performs similarly.

A fixed entry schedule remained profitable after being moved by 41 bars, but the shift materially reduced what the strategy retained. On 4,252 daily S&P 500 bars, the phase-shifted version earned $5,610.10 across 51 trades, compared with $9,870.59 for the unshifted 83-bar clock.

The comparison used the same execution and risk settings: 100% of equity, market orders, Policy A, a 0.1% round-trip fee and $10,000 of starting equity. The tests ran in a patched PyneCore runtime against Yahoo Finance’s ^GSPC data.

Same number of entries, different outcomes

The shifted rule was defined as bar_index >= 41 and bar_index % 83 == 41. It entered at bars 41, 124 and subsequent 83-bar intervals through bar 4,191, creating exactly 51 signals—the same total as the unshifted schedule.

Each position used a stop at twice ATR below the entry average price and a trailing stop based on the highest close minus twice ATR. All 51 shifted-clock trades closed in both fee and no-fee runs, with no skipped signals, Policy A drops or open position at the end.

With fees included, the shifted clock recorded a profit factor of 2.137. Removing fees lifted its result to $6,089.27 and its profit factor to 2.236. The fee run paid $577.08 in commission, while the fee drag reported in the comparison was $479.17.

Spacing mattered more than trade count

The 83-bar clock exceeded the shifted version by $4,260.49. The arithmetic decomposition assigned -$197.41, or -4.6%, to the difference in trade count and $4,457.90, or 104.6%, to the difference in per-trade expectancy. Expectancy fell from $197.41 to $110.00 for the shifted schedule.

Because both clocks completed 51 trades, the no-fee gap was $4,101.76 with no count effect; the full difference was attributed to spacing and the selected phase.

Random-entry comparison and outlier checks

The recomputed 20-seed placebo distribution had a fee-on mean of $1,169.48 and a standard deviation of $1,621.21. The shifted clock ranked at the distribution’s 100th percentile and sat 2.74 standard deviations above its fee-on mean. None of the 20 random seeds exceeded it, with or without fees.

The result was still positive after removing the shifted clock’s largest winner: $4,402.65 with fees, versus a best placebo result of $2,026 after each seed’s largest winner was removed. However, the test covered one 41-bar offset rather than a full phase sweep. The stated interpretation is that the 83-bar grid contributed something, while the phase determined how much of that result was preserved.

Why it matters for your role

Pick the building you work in.

For analytics teams

The comparison shows why equal trade counts do not guarantee comparable results: entry placement changed per-trade expectancy from $197.41 to $110.00. Analysts should keep spacing, phase and count effects separate when decomposing a backtest.

For software engineers

The experiment depended on explicit bar-index logic, fixed execution settings and a patched PyneCore runtime. Reproducible strategy tests therefore require the entry rule, runtime behavior, fees and handling of skipped or open trades to be recorded together.

For planners and strategists

The shifted schedule remained profitable against the tested random-entry distribution, but only one offset was examined. Any planning based on the result must distinguish evidence for this tested configuration from evidence about the broader 83-bar approach.

Based on reporting by DEV Community (source article).

Written with AI assistance and reviewed under our editorial standards. Spotted an error? Tell the desk.

Comments

Join the discussion

Your email address will not be published. Required fields are marked *

Follow the city on Telegram

Every new story from all eight desks, as it lands. No inbox, no sign-up form, just open the channel and read.

@prodsens

Product, project, software, QA, AI, analytics, marketing and planning news in one feed.

Open in Telegram (opens in a new tab)