create-tradejs 3.1.29-beta.302 → 3.1.29-beta.304

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -417,7 +417,7 @@ var buildProjectFiles = (targetDir, port, infrastructurePorts = DEFAULT_INFRASTR
417
417
  2
418
418
  )}
419
419
  `,
420
- ".nvmrc": "24.19.0\n",
420
+ ".nvmrc": "24.22.2\n",
421
421
  "tradejs.config.ts": `import { basePreset } from '@tradejs/base';
422
422
  import { defineConfig } from '@tradejs/core/config';
423
423
 
@@ -57,7 +57,9 @@ When the strategy is `DoubleTap`, `engine.ts` ports the Bjorgum Double Tap patte
57
57
  - When a research config includes `MAX_LOSS_VALUE`, set it to `10`.
58
58
  - When updating a backtest `:ai` config, enable both `LONG` and `SHORT`; let the AI gate disable a side later if needed.
59
59
  2. Start with small cache-only runs: `yarn backtest -c <Strategy>:<name> -d 30 --cacheOnly --fast`.
60
- 3. Tune strategy-specific grid fields first.
60
+ 3. For a diagnostic study, locate the failing stage before selecting a field
61
+ to tune. For a preregistered parameter study, change only the specified
62
+ fields.
61
63
 
62
64
  When a symmetric candidate loses in aggregate but its reconciled LONG/SHORT
63
65
  attribution shows a material improvement on only one side, do not discard or
@@ -342,9 +344,36 @@ Bootstrap the complete immutable calendar window, including zero-trade
342
344
  clusters; do not sample only active clusters. Report CSCV/PBO as unavailable
343
345
  when fold vectors are identical and there is no meaningful model ranking.
344
346
 
345
- Use `--researchTrace` only when the question needs the setup/entry/skip funnel.
346
- It writes compact events plus per-test skip summaries and adds deterministic
347
- setup identity to AI rows; keep it off when completed trades answer the question.
347
+ ### Diagnose where the edge is lost
348
+
349
+ - Reuse the prior notes and trial ledger. Start with a short cache-only
350
+ baseline on known weak and strong windows. Use `--researchTrace` for
351
+ setup/entry/skip attribution and targeted replay for decision details. Join
352
+ by setup identity and count each setup once. Audit which stages can actually
353
+ be observed: setup before gate, gate decision, order, fill, and exit. Record
354
+ missing stages or unknown feature values separately. Skip summaries are
355
+ counts and cannot reconstruct individual setups.
356
+ - Measure signed price movement and favorable/adverse excursion from an
357
+ explicitly defined eligible entry time on fixed horizons. Include signals
358
+ rejected by the gate or without fills when their identity and timing are
359
+ observable. Label those measurements as hypothetical and separate them
360
+ from realized fills and costs. Use `research-visuals` or TradingView to
361
+ inspect representative favorable and unfavorable examples from both the
362
+ accepted and rejected sets. Use the full eligible sample to quantify effects.
363
+ - Before comparing economics, report support by unique setup, active time
364
+ blocks and market episodes, feature coverage at decision time and the overlap
365
+ between control and candidate. For a risk filter, add a baseline with risk
366
+ reduced by a rule fixed from development evidence, and use portfolio replay
367
+ when concurrent exposures can change the result. For execution questions,
368
+ use `execution-calibration` on verified runtime and replay evidence. Report
369
+ which submit/fill, fee and funding measurements are available.
370
+ - Treat windows used to select a rule as development evidence. Evaluate a
371
+ new rule first on the weak and strong development windows and extend to an
372
+ isolated 180-day run when a material PnL/drawdown trade-off warrants it.
373
+ Extend competing candidates to the frozen long window only when support
374
+ and comparability justify the cost. Freeze the rule and success criteria
375
+ before opening a new confirmation period. Report insufficient support when
376
+ the data cannot distinguish the mechanism from noise.
348
377
 
349
378
  Before writing research results, read `references/research-notes.md` and follow
350
379
  it exactly.
@@ -47,7 +47,7 @@ def retire(repository, worktree, out, apply=False, history_root=None):
47
47
  tracked = set(git(worktree, 'ls-files', '-z', '--cached').split(b'\0'))
48
48
  files = set(git(worktree, 'ls-files', '-z', '--cached', '--others', '--exclude-standard').split(b'\0'))
49
49
  files.update(git(worktree, 'ls-files', '-z', '--others', '--ignored', '--exclude-standard').split(b'\0'))
50
- generated = {'node_modules', 'dist', 'build', '.yarn', '.turbo', '.next', 'coverage', '__pycache__', 'synthetic-fixtures'}
50
+ generated = {'node_modules', 'dist', 'build', '.yarn', '.turbo', '.next', 'coverage', '__pycache__'}
51
51
  selected = []
52
52
  for raw in sorted(files):
53
53
  if not raw:
@@ -61,7 +61,7 @@ class ArchiveTest(unittest.TestCase):
61
61
  self.assertFalse(worktree.exists())
62
62
  with tarfile.open(out / 'source.tar.gz') as archive:
63
63
  self.assertIn('synthetic-fixtures/authored.json', archive.getnames())
64
- self.assertNotIn('synthetic-fixtures/generated.json', archive.getnames())
64
+ self.assertIn('synthetic-fixtures/generated.json', archive.getnames())
65
65
  self.assertEqual(archive.extractfile('candidate.py').read(), b'exact_untracked_source = True\n')
66
66
  reference = json.loads((out / 'history-reference.json').read_text())
67
67
  history = (out / reference['path']).resolve()
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schema": "tradejs-skill-bundle/v1",
3
3
  "source": "TradeJS-Dev/TradeJS:.codex/skills",
4
- "bundleSha256": "0bd0d509fe00202d905d055d1c52b3f6f06e6d9b71ce66702165231321205758",
4
+ "bundleSha256": "a85123240beec39ed985961f30e1026c31e132fe06dfac07a4f6d583337a3e2d",
5
5
  "skills": [
6
6
  "ai-train-local-research",
7
7
  "backtest-config-redis",
@@ -63,9 +63,9 @@
63
63
  ".codex/skills/strategy-backtest-research/scripts/research-comparison-chart.test.mjs": "fa79560ccf00601997401ef6e248d8639edf5c1808ec92e81094a4baf6e1a7be",
64
64
  ".codex/skills/strategy-backtest-research/scripts/research-notes-check.mjs": "196f420845f0cc841bdbb1651063a485c90a1140f767e88f4dbf3543adb881de",
65
65
  ".codex/skills/strategy-backtest-research/scripts/research-notes-check.test.mjs": "256618c16d797374078198e6e61c50b518cef5bbbc85c3ceffa891035ae58318",
66
- ".codex/skills/strategy-backtest-research/scripts/retire-worktree.py": "6870d1c537e32c9626c27c1e0dfd5911e4e2fe917b82de28a15f82193f1e6384",
67
- ".codex/skills/strategy-backtest-research/scripts/retire-worktree.test.py": "648071b5c6326f5129c3d1893da763212d2bdd92d4ea66226e3823e7189848ef",
68
- ".codex/skills/strategy-backtest-research/SKILL.md": "25e7d1b40827f74c35dda7e642ed02ee4e17cfc31e5a017347306fe7c499bf8c",
66
+ ".codex/skills/strategy-backtest-research/scripts/retire-worktree.py": "51ce91206a922da3fb7fc2c84c6824466d05be3022548f220448612cd4507f93",
67
+ ".codex/skills/strategy-backtest-research/scripts/retire-worktree.test.py": "ed8db5075bcbdac380b0100e47cb2b2335804148155baa8c49ff41a87517e0b3",
68
+ ".codex/skills/strategy-backtest-research/SKILL.md": "baa9525098dcc321f0714dbe98a744cb05f840b6ace056acc66205b7b869391d",
69
69
  ".codex/skills/strategy-candidate-compare/SKILL.md": "cd3cf47259c9eb96bfaba795983788b77d463557a965692aaa19ad2de16850e6",
70
70
  ".codex/skills/strategy-candidate-report/SKILL.md": "f5cb27dd1ddc2e24afaf2aa2b86aa9edf6ef2b91f3d7acc5d49ee8209d8d3d7b",
71
71
  ".codex/skills/strategy-forward-start/SKILL.md": "6c6eda74450fc3165ce94ca12323c8277855beb1626b023811a78b2f5d294ee0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-tradejs",
3
- "version": "3.1.29-beta.302",
3
+ "version": "3.1.29-beta.304",
4
4
  "description": "Create a ready-to-run TradeJS project with local infrastructure and the Web UI.",
5
5
  "keywords": [
6
6
  "tradejs",