Original
2026-07-08 – 2026-08-28
2026-07-08 → 2026-08-28, 51 calendar days · closed P&L +$555.26 on $5,000.00
Curve issues: dropped 9 weekend rows (2026-07-11, 2026-07-12, 2026-07-18, 2026-07-19, 2026-07-25, 2026-08-01, 2026-08-02, 2026-08-08, 2026-08-09), 1 duplicate row (2026-07-28).
Cash check: OK — expected $5,555.26, portfolio cash $5,555.26
Curve check: OK — trade P&L $555.26, curve change $555.26
Audit report
time stops at open 19 · same day sells 9 · early time stops 9 · stop exits 0 · weekend curve rows 9 · duplicate curve rows 1
Original run (archive pre_monday_reset_2026-08-28): read-only audit
Done 2026-10-01 on the box. Nothing on CVZPOWER was changed. The only git commands run there were read-only (log, show, ls-files, grep, diff --stat). Prices come from yfinance 1.7.0 daily bars with auto_adjust=False (unadjusted), 2026-06-20 → 2026-09-04. To reproduce: .venv/bin/python fetch.py && .venv/bin/python audit.py && .venv/bin/python make_table.py. Files: trades_audit.csv (all 41 trades with OHLC, flags, and repricings), curve_audit.csv, audit_results.json, equity_curve_{A,B}_realistic.csv, and the verbatim inputs in raw/ (plus the pre-backfill raw/stale/ files).
Headline
- The recorded numbers reconcile with each other, but the run they describe is broken. Σ pnl_dollars = $555.2601. That matches the curve (5555.26 − 5000 = +11.11%) and
portfolio_state.cash5555.2601. Every entry and every sma5 exit equals that day's unadjusted daily Close to the cent. All 19 time stops equal that day's daily Open. - Every time stop before 8/10 is bogus.
bars_heldwas inflated by re-walking the same bars on each run, weekends included. So 9 "time stops" fired after only 2 real bars, and 9 fired on the entry day itself (bars_held 5, true bars 0). Those 9 same-day trades were sold at the day's open before they were bought at that day's close, which is impossible. From 8/10 on, bars_held matches the true bar count. That fits the "2026-08-09 UPS incident" fix that the 9/11 initial commit's simulator docstring cites.
| Metric | Recorded | A: your spec (time stops → exit-day close; same-day ones → true 5th-bar close) | B: rule-faithful re-walk (close-only stop → close>SMA5 → RSI2>70 → bar 5, all at close) | B without impossible re-entries (5 dropped) | |---|---|---|---|---| | Trades | 41 | 41 | 41 | 36 | | Total P&L | $555.26 | $536.69 | $622.28 | $559.97 | | Return on $5,000 | +11.11% | +10.73% | +12.45% | +11.20% | | Win rate | 80.49% (33/8) | 73.17% (30/11) | 82.93% (34/7) | 83.33% | | Profit factor | 5.80 | 2.55 | 4.57 | 4.31 | | Avg win $ | $20.33 | $29.46 | $23.43 | $24.30 | | Avg loss $ | −$14.46 | −$31.57 | −$24.92 | −$28.19 | | Max DD (trading-day curve) | n/a (recorded curve has a fake −40% drop) | −4.12% | −1.46% | n/a |
How to read A vs B: A applies your rule exactly as written. It holds the 9 same-day trades to bar 5 and ignores any stop or SMA5 exit on the way, so CHRW rides to −$220 and SLB to +$141. B is what the strategy's own rules would have done, so B is my best estimate. Under the Original's intraday-low stop instead of close-only, B comes to $587.14 / +11.74% / PF 3.80. Neither A nor B is path-complete: extending holds would have blocked 5 later re-entries of a ticker still held (see the last column). B also leaves 6 positions open, with cost above equity, on 7/20, 7/24, 7/27, and 7/30. Realistic range: about +8.5% to +12.5%. The PF of 5.80 is clearly overstated; the true value is roughly 2.3–4.6.
Flagged trades (all 19 time stops; the other 22 trades are sma5 exits that check out)
"pp" is the change in that trade's % return. Dates are 2026. | # | Ticker | Entry | Rec. exit | Exit-day O / H / L / C | Bars rec/true | Issue | A: repriced exit | A $ (pp) | B: rule re-walk | B $ (pp) | |---|---|---|---|---|---|---|---|---|---|---| | 1 | FAST | 07-08 @ 46.51 | 07-10 @ 46.31 | 46.31 / 47.26 / 46.16 / 46.49 | 5/2 | premature (2 bars) | 07-10 @ 46.49 (exit-day close) | +4.68 (+0.39) | 07-13 @ 47.05 sma5_exit | +19.24 (+1.59) | | 2 | EMR | 07-13 @ 135.38 | 07-15 @ 136.95 | 136.95 / 137.11 / 134.60 / 136.25 | 5/2 | premature (2 bars) | 07-15 @ 136.25 (exit-day close) | -5.60 (-0.52) | 07-16 @ 139.08 sma5_exit | +17.04 (+1.57) | | 3 | CNC | 07-15 @ 66.61 | 07-17 @ 64.13 | 64.13 / 66.50 / 63.39 / 66.44 | 5/2 | premature (2 bars) | 07-17 @ 66.44 (exit-day close) | +32.34 (+3.47) | 07-21 @ 67.59 sma5_exit | +48.44 (+5.19) | | 4 | JCI | 07-16 @ 141.26 | 07-16 @ 140.32 | 140.32 / 142.37 / 139.25 / 141.26 | 5/0 | same-day; sold at open before buying at close | 07-23 @ 143.29 (true 5th-bar close) | +17.82 (+2.10) | 07-21 @ 141.71 sma5_exit | +8.34 (+0.98) | | 5 | SLB | 07-17 @ 46.99 | 07-17 @ 47.00 | 47.00 / 47.29 / 46.43 / 46.99 | 5/0 | same-day; sold at open before buying at close | 07-24 @ 52.42 (true 5th-bar close) | +140.92 (+11.53) | 07-22 @ 47.67 sma5_exit | +17.42 (+1.43) | | 6 | FAST | 07-20 @ 44.76 | 07-22 @ 45.13 | 45.13 / 45.60 / 45.01 / 45.33 | 5/2 | premature (2 bars) | 07-22 @ 45.33 (exit-day close) | +4.60 (+0.45) | 07-23 @ 46.15 sma5_exit | +23.46 (+2.28) | | 7 | SBUX | 07-21 @ 104.45 | 07-23 @ 102.78 | 102.78 / 103.44 / 101.93 / 103.21 | 5/2 | premature (2 bars) | 07-23 @ 103.21 (exit-day close) | +5.16 (+0.41) | 07-28 @ 103.10 time_stop | +3.84 (+0.31) | | 8 | TGT | 07-22 @ 137.92 | 07-24 @ 134.51 | 134.51 / 137.58 / 134.23 / 136.78 | 5/2 | premature (2 bars) | 07-24 @ 136.78 (exit-day close) | +18.16 (+1.65) | 07-27 @ 140.34 sma5_exit | +46.64 (+4.23) | | 9 | CNC | 07-23 @ 63.74 | 07-23 @ 63.95 | 63.95 / 64.90 / 62.86 / 63.74 | 5/0 | same-day; sold at open before buying at close | 07-30 @ 60.84 (true 5th-bar close) | -40.43 (-4.88) | 07-30 @ 60.84 time_stop | -40.43 (-4.88) | | 10 | EXPD | 07-23 @ 176.18 | 07-23 @ 178.16 | 178.16 / 179.64 / 175.75 / 176.18 | 5/0 | same-day; sold at open before buying at close | 07-30 @ 167.01 (true 5th-bar close) | -78.05 (-6.33) | 07-29 @ 170.13 stop_close | -56.21 (-4.56) | | 11 | SBUX | 07-24 @ 103.25 | 07-24 @ 103.89 | 103.89 / 105.16 / 103.12 / 103.25 | 5/0 | same-day; sold at open before buying at close | 07-31 @ 105.25 (true 5th-bar close) | +16.32 (+1.32) | 07-29 @ 104.14 sma5_exit | +3.00 (+0.24) | | 12 | CHRW | 07-24 @ 186.51 | 07-24 @ 191.81 | 191.81 / 194.87 / 186.14 / 186.51 | 5/0 | same-day; sold at open before buying at close | 07-31 @ 147.73 (true 5th-bar close) | -220.40 (-23.63) | 07-27 @ 174.46 stop_close | -86.75 (-9.30) | | 13 | EXPD | 07-27 @ 171.34 | 07-29 @ 171.46 | 171.46 / 171.57 / 169.22 / 170.13 | 5/2 | premature (2 bars) | 07-29 @ 170.13 (exit-day close) | -9.31 (-0.78) | 08-03 @ 170.59 sma5_exit | -6.09 (-0.51) | | 14 | CNC | 07-29 @ 61.82 | 07-31 @ 61.05 | 61.05 / 62.55 / 60.49 / 62.22 | 5/2 | premature (2 bars) | 07-31 @ 62.22 (exit-day close) | +14.04 (+1.89) | 08-03 @ 63.76 sma5_exit | +32.52 (+4.38) | | 15 | UPS | 07-29 @ 104.56 | 07-31 @ 105.74 | 105.74 / 105.99 / 103.86 / 104.22 | 5/2 | premature (2 bars) | 07-31 @ 104.22 (exit-day close) | -15.20 (-1.45) | 08-03 @ 106.87 sma5_exit | +11.30 (+1.08) | | 16 | SLB | 07-30 @ 48.91 | 07-30 @ 49.26 | 49.26 / 49.71 / 48.38 / 48.91 | 5/0 | same-day; sold at open before buying at close | 08-06 @ 51.54 (true 5th-bar close) | +47.88 (+4.66) | 08-04 @ 50.81 sma5_exit | +32.55 (+3.17) | | 17 | EXPD | 07-30 @ 167.01 | 07-30 @ 169.20 | 169.20 / 170.56 / 164.35 / 167.01 | 5/0 | same-day; sold at open before buying at close | 08-06 @ 178.56 (true 5th-bar close) | +65.52 (+5.60) | 08-03 @ 170.59 sma5_exit | +9.73 (+0.83) | | 18 | UPS | 08-06 @ 103.20 | 08-06 @ 107.17 | 107.17 / 107.17 / 103.10 / 103.20 | 5/0 | same-day; sold at open before buying at close | 08-13 @ 105.54 (true 5th-bar close) | -17.93 (-1.58) | 08-13 @ 105.54 sma5_exit | -17.93 (-1.58) | | 19 | MMM | 08-17 @ 180.21 | 08-24 @ 178.88 | 178.88 / 180.35 / 178.23 / 179.01 | 5/5 | ok length; open fill | 08-24 @ 179.01 (exit-day close) | +0.91 (+0.07) | 08-24 @ 179.01 time_stop | +0.91 (+0.07) | | | Sum | | | | | | | -18.57 | | +67.02 |
The 22 sma5 exits are all valid. Exit = that day's Close, Close > SMA5 that day (SMA5 recomputed from unadjusted closes), and my independent re-walk picks the same exit date for 22/22. bars_held is still inflated on the pre-8/10 sma5 rows (e.g. 2 recorded vs 1 true), but those prices are correct.
(a) Time stops at the open, and entry checks
- 19/19 time stops = that exit day's Open, exactly. Entry/exit dates are all real sessions, and no fill falls outside that day's [Low, High] in unadjusted yfinance bars. The open is always inside the bar, so the PR #20 "outside H/L" symptom doesn't show up here. The real problems are timing and look-ahead.
- 41/41 entries = that entry day's unadjusted Close (to $0.01). None is outside H/L, and none is an intraday or 2:30 price.
- Same-day entry=exit with bars_held 5 (true 0): JCI 7/16, SLB 7/17, CNC 7/23, EXPD 7/23, SBUX 7/24, CHRW 7/24, SLB 7/30, EXPD 7/30, UPS 8/6. All 9 you listed are confirmed. For 7 of them the recorded high/low-since-entry comes from the next session's bar (e.g. CHRW LL 173.76 is the 7/27 low; UPS 8/6 LL 102.44 is the 8/7 low). So the exit was actually decided on a later run, then stamped with the entry date and the entry-day open.
- Premature 2-bar time stops (bars_held 5, true 2): FAST 7/8, EMR 7/13, CNC 7/15, FAST 7/20, SBUX 7/21, TGT 7/22, EXPD 7/27, CNC 7/29, UPS 7/29. Only MMM 8/17→8/24 is a real 5-bar time stop, and its only fault is the open fill (+$0.91 at the close).
- Dividends and splits: no splits. One dividend was held through its ex-date and not credited: MMM ex 8/24, $0.78 × 7 = $5.46. It is not included in any total above. All recorded prices predate later ex-dates, so unadjusted = what the engine saw. The engine fetches with
auto_adjust=True, but nothing had been adjusted yet at fetch time.
(b) Stops
- There are no stop exits in the recorded run. No trade's Low or Close reached its stop inside its recorded holding window. The intraday-low-fill bug therefore never fired in the recorded trades.
- **One record has lowest_low_since_entry Original (7/8–8/28) was a backfilled/EOD replay on daily bars with a re-walk bug: 19 time stops filled at the day's open, 9 of them sold before they were bought, so +11.11% / PF 5.80 is unreliable. Rule-faithful repricing gives ≈ +11–12%, PF ≈ 4.3–4.6.
Book files in this folder (variant B)
trade_list.csv: the 41 trades in the Live schema. Prices are unadjusted yfinance daily closes (yf_close).bars_held= real sessions after entry. HH/LL are recomputed over the entry bar plus the held bars.repriced=True on the 19 original time stops, andorig_exit_*holds the recorded exit.equity_curve.csv: one row per NYSE session, 2026-07-08 → 2026-08-28 (38 rows). Equity = cash + open shares × that session's close. Ends at 5622.28 = 5000 + Σ pnl_dollars (difference $0.00).portfolio_state.json: cash 5622.28, last_date 2026-08-28, no open positions.audit_summary.json: recorded vs B / B_no_blocked / B_intraday_stop / A / A_no_blocked, plus flags.- Recomputed from
trade_list.csv: +12.45%, PF 4.57, win rate 82.93%, avg win $23.43.
Sources
| File | Modified | Bytes | Rows |
|---|---|---|---|
Equity curve CSV archive/pre_monday_reset_2026-08-28/equity_curve.csv | 2026-08-28 20:35:06 CT | 973 | 48 |
Trade list CSV archive/pre_monday_reset_2026-08-28/trade_list.csv | 2026-08-28 20:35:06 CT | 8216 | 41 |
Audit summary JSON archive/original_repriced_2026-07-08_to_2026-08-28/audit_summary.json | 2026-10-01 13:08:53 CT | 2964 | 1 |
Audit report archive/original_repriced_2026-07-08_to_2026-08-28/REPORT.md | 2026-10-01 13:09:36 CT | 16825 | 94 |
Portfolio state archive/pre_monday_reset_2026-08-28/portfolio_state.json | 2026-08-28 20:35:06 CT | 88 | 1 |
Last 10 closed
| Exit | Ticker | Shares | Entry | Exit px | P&L $ | P&L % | Reason |
|---|---|---|---|---|---|---|---|
| 2026-08-26 | JCI | 7 | $144.94 | $144.33 | -$4.27 | -0.42% | SMA5 exit |
| 2026-08-24 | UPS | 13 | $102.01 | $102.72 | +$9.23 | +0.70% | SMA5 exit |
| 2026-08-24 | MMM | 7 | $180.21 | $178.88 | -$9.31 | -0.74% | Time stop |
| 2026-08-21 | SBUX | 13 | $104.98 | $107.08 | +$27.30 | +2.00% | SMA5 exit |
| 2026-08-21 | CNC | 13 | $64.41 | $65.02 | +$7.93 | +0.95% | SMA5 exit |
| 2026-08-19 | TGT | 9 | $151.01 | $159.00 | +$71.91 | +5.29% | SMA5 exit |
| 2026-08-19 | FAST | 26 | $51.34 | $51.44 | +$2.60 | +0.19% | SMA5 exit |
| 2026-08-13 | UPS | 12 | $103.91 | $105.54 | +$19.56 | +1.57% | SMA5 exit |
| 2026-08-11 | JCI | 7 | $150.70 | $154.76 | +$28.42 | +2.69% | SMA5 exit |
| 2026-08-06 | UPS | 11 | $103.20 | $107.17 | +$43.67 | +3.85% | Time stop |