Skip to content

docs(skill): testfol — synthetic LETFs & backtester automation#409

Open
robert7800787-hue wants to merge 1 commit into
browser-use:mainfrom
robert7800787-hue:docs/testfol-synthetic-letf-skill
Open

docs(skill): testfol — synthetic LETFs & backtester automation#409
robert7800787-hue wants to merge 1 commit into
browser-use:mainfrom
robert7800787-hue:docs/testfol-synthetic-letf-skill

Conversation

@robert7800787-hue
Copy link
Copy Markdown

@robert7800787-hue robert7800787-hue commented Jun 5, 2026

Adds a domain skill for testfol.io, a portfolio backtester for ETFs / asset allocation (Quasar/Vue).

What it captures

  • Synthetic leveraged tickers — the UNDERLYING?L=2&E=0.95&SP=0.30 param syntax (L/E/SP/SW).
  • Non-obvious finding: testfol's SP (financing spread) has a hidden default of exactly 0.40% — omitting it is not free leverage. Verified empirically (SP=0.40 reproduces the omitted-SP result to the penny). An SP≈0.30 better matches a real ProShares 2× LETF (QLD) over the 2022–2026 high-rate window, since real funds earn securities-lending income.
  • CDP automation gotchas:
    • Input.insertText / dispatchKeyEvent don't populate testfol's type=date fields or its ticker autocomplete reliably — documents the native-setter + input/change event trick that updates Vue's model.
    • Results render as a div grid, not an HTML <table> — documents how to scrape them (find smallest div containing CAGR + Max Drawdown).
    • The per-portfolio Drag field is a separate account-level fee, distinct from a ticker's E.

Notes

  • Follows the existing domain-skills/<site>/ convention (durable site shape, no run narration, no secrets/coords).
  • Single new file: domain-skills/testfol/synthetic-letf.md.

🤖 Generated with Claude Code


Summary by cubic

Add domain-skills/testfol/synthetic-letf.md documenting testfol.io synthetic LETF params (L, E, SP, SW) and the hidden SP=0.40% default, with a calibration tip (SP≈0.30) that better matches QLD in 2022–2026. Also covers CDP automation for reliable date/ticker entry and scraping the div-based results grid, and clarifies portfolio Drag vs ticker E.

Written for commit 569f3d2. Summary will update on new commits.

Review in cubic

Add domain skill for testfol.io covering synthetic leveraged tickers
(L/E/SP params), the non-obvious SP=0.40 hidden default, an SP~0.30
calibration against real QLD, and CDP automation gotchas (native-setter
trick for date/ticker inputs, scraping the results div grid).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@browser-harness-review
Copy link
Copy Markdown

✅ Skill review passed

Reviewed 1 file(s) — no findings.

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Re-trigger cubic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant