Skip to content
  • Spun out of Market-timing-refined-analysis (round 6, 2026-09-25) at Talbot’s request. Talbot’s words:

    “build a world-class analysis tool that gives a historical quantification of the normal industry approaches heading into the US lost decade, and the Japanese stock market, and more. It will default to the median profile for our target market. It will allow very efficient personalization, where only one or two key inputs are easily adjusted, and the remainder are already established as defaults for efficiency, per the F.A.S.T. principle.” “plan and build this app in a way that allows different market timing strategies to be tested, back tested, and then forward tested, with Monte Carlo like simulations to provide probabilistic analysis of how various strategies perform in terms of the metrics or objectives that matter most to the individual. Again recognize that a single metric like future value is very rarely the right measure. As a minimum, probabilistic reward relative to risk is the right metric to optimize and focus on.” “with a flexible framework to test various market timing strategies to best prepare for very high Market valuations, the next phase (LATER) is to rigorously explore various strategies and try to find “or better” ones. In particular, the methodology involved in Dual Momentum should be explored.”

  • Why model: fable: the hard part is the method, not the UI. Two examples: Monte Carlo on returns whose valuation signal persists for years (block bootstrap vs regime models), and forward-testing without look-ahead. Errors there turn into confident, wrong numbers in a public SDC tool. Run the planning phase on Fable 5.1. The build phases can drop to Opus or Sonnet once the plan names them.
  • Why it waits on the Red Team: the lab turns the research’s rules into a product. Any objection the Red Team sustains (for example about censoring, in-sample trend rules or n_eff) changes what the lab must test.
  • What already exists (borrow > build):
    • ~/projects/cape-timing/ holds the research engine: data loaders with gates (Shiller, CRSP/French, StatCan TSX, Japan), real-time CAPE percentiles, the trend/halving dial, after-tax Canada, and run_if_you_had.py. README: /home/ta/projects/cape-timing/README.md · \\wsl$\Ubuntu-24.04\home\ta\projects\cape-timing\README.md
    • ~/projects/asset-history/ is the price and dividend database (note the XIC adj_close bug in the cape-timing README).
    • sd-app / sd-math in the monorepo: SDC’s calculator engine and app shell. The archived SD-App ROADMAP already listed “Performance optimization (parallel execution, Monte Carlo)” and “Big Rocks (80/20) analysis” (SDC/_WorkingOn/Projects/SD-App/archive/ROADMAP.md). The plan must decide whether the lab is an sd-app mini-app or a standalone artifact.
    • Web standard: SvelteKit + adapter-static + Cloudflare Pages for web apps (AGENTS.md). Design: load /design-context app first.
  1. Plan (Fable 5.1): architecture, data pipeline (reuse cape-timing), the strategy interface, the backtest → forward-test → Monte Carlo method, the metrics, the F.A.S.T. input set, and phases with acceptance tests. Produce a written plan for Talbot’s approval before building.
  2. Metrics: (round-10 finding, cape-timing/scripts/run_reward_risk.py: ECY is the best ex-ante gauge of the next decade’s reward/risk, ρ 0.73 vs the realized Martin ratio; dividing by a valuation-conditioned drawdown did not help, 0.67. Candidate innovation to test here: a calibrated expected Martin ratio conditioned on ECY, with a probability range.) Probabilistic reward-to-risk as the core, e.g. P(beat cash), Sortino, CVaR (expected loss in the worst 5%), worst decline, time to recover, and P(ending below the start in real terms). Terminal wealth is only one metric among several. 2b. Frictions, first-class (Talbot’s colleague, 2026-09-28; Talbot: “This is important to me”).
    • Tax on capital gains: “a behavioral solution that specifically accounts for the friction of taxation on capital gains. Most high net worth investors have the majority of their wealth in taxable accounts.” Model each strategy after tax in taxable accounts. Candidate low-friction moves to test: shifting the allocation inside RRSP/TFSA only (asset location; no gains realized), redirecting new money and dividends to cash, realizing gains gradually across tax years, donating appreciated securities, and put protection. Round 3 found the all-out trend rule loses after tax in a taxable Canadian account (7.3% vs 7.9%), so this is the binding constraint for the HNW target market.
    • Friction of time and a “Worth It” assessment: “the friction of time, and a “Worth It” assessment … financial advisors … should be very careful to only implement strategies that are worth it, as investors should … ongoing maintenance, additional portfolio changes. This Factor is almost never accounted for.” Score each strategy net of the hours to set up and maintain, and of the number of portfolio changes, and connect it to the Strategies Library’s existing worth-it field.
    • Cost model, all frictions (Talbot, 2026-09-29, Red Team round 4): “The lab analysis tool will account for all costs”:
      • Taxation, including deferred capital gains (“key factor for HNW”).
      • Fees and commissions: a minor or negligible marginal impact today, since DIY investors face negligible trading commissions and fee-based advisors charge on assets, not activity.
      • TIME: “the factor this is almost never discussed, and the unique aspect of ‘Worth It’ analysis, for both investors and advisors”.
    • Required first test (moved here from the Red Team, both reviews): the halving rule after tax at household level. Use real tax lots, deferred gains, cash flows, and registered-account capacity (does switching only inside RRSP/TFSA actually achieve the intended household cut?), against the same household’s static allocation. OpenAI also flagged that the current tax model credits capital losses immediately at the full rate and has no trading costs (cape-timing/src/cape_timing/vt.py after_tax_switching); fix both here.
    • “Enough” spending-floor test (OpenAI Red Team pass 3, 2026-09-29, its “one decisive test”; spec in cape-timing/redteam/pass3_codex_l11_l12/codex_answer.md): a pre-committed, household-level simulation of real spending, pensions, tax and account limits over 30 years. It compares four policies:
      1. the current weight;
      2. the WAIT rule (100% bills until the lagged since-1881 percentile falls below the 75th, no override);
      3. permanent equity weights from 0% to 60%;
      4. an inflation-linked floor plus a fixed equity sleeve.
      • Use identical cash flows, and group results by episode.
      • Add persistent-high-valuation continuations, so the censored 2013–26 episode can’t drop out.
  3. Default profile: the median profile for the target market (advisors’ clients, Canada first). Sourced data only: find a citable source for typical equity allocation and portfolio size (e.g. Investor Economics, CSA or StatCan Survey of Financial Security, advisor-channel surveys). Don’t guess. If none is found, say so and ask Talbot.
  4. Scenarios: “heading into” the US lost decade (Dec 1999), 1929, Japan 1989, and “more”; each compared with the normal industry approaches (buy and hold at the usual allocation, periodic rebalancing, target-date glide) vs the halving rule and all-out rule.
  5. Build, then test against the cape-timing numbers (the lab must reproduce results/if_you_had.json exactly before it adds anything new).
  6. LATER phase: strategy exploration, including Dual Momentum (Gary Antonacci).
    • Sources to use: d:\FSS\Static\Info\Finance\Investing\Market Timing\Dual Momentum, SSRN-id2042750.pdf (Antonacci’s own SSRN paper, already in the folder), the book (buy it or borrow a library copy), and the video https://youtu.be/iieXj9IZsYQ.
    • Don’t use the archive.org PDF of the book. It is an unauthorized upload (a “red-pill-books” collection), and SDC’s brand is client-first integrity.
    • The Market Timing folder is about 70% trend/momentum material (triaged in the parent task, round 1). Start there.
  • Talbot approves a written plan (phases, method, metrics, defaults with sources).
  • The lab reproduces the cape-timing Dec 1999 results exactly.
  • Default use needs at most 2 inputs. Output leads with reward-to-risk, not terminal wealth.
  • Every figure shown has a named data source. Tests pass, with evidence per AI-Testing-Standards.md.
  • Anything client-facing goes through SDC/Risks and supervisor pre-approval before it is public.