Commit Graph

1422 Commits

Author SHA1 Message Date
TPTBusiness 15c03df431 feat: inverse factor signal combos — top-3 gives +0.57%/month with -3.7% DD
Key discovery: EUR/USD daily is mean-reverting — inverse momentum factors dominate.
- mom_15min_INV: +0.40%/month (single best)
- Top-3 combo: +0.57%/month, -3.7% DD
- Top-10 combo: +0.46%/month, -4.1% DD
- 196 trades/month — high frequency, low per-trade risk
2026-05-11 14:29:22 +02:00
TPTBusiness 0d9b0916f2 test: 434 deep hypothesis tests across RiskMgmt OOS, Kronos, auto-fixer, factor coder, pipeline, integration
- RiskMgmt OOS: 88 tests (leverage bounds, DD limits, trade counting, MC p-value, daily breach)
- Kronos adapter: 73 tests (OHLCV idempotence, batch/sequential equivalence, forward-fill)
- Auto-fixer: 78 tests (fix idempotence, MultiIndex conversion, fuzzing random patterns)
- Factor coder: 65 tests (FactorTask roundtrip, evaluator invariants, workspace paths)
- QLib pipeline: 61 tests (Metrics, bandit, precision matrices, noise_var)
- Integration: 69 tests (portfolio weights, correlation, RiskMgmt limits, JSON roundtrip)
2026-05-11 00:47:38 +02:00
TPTBusiness 827f80ce2e test: 343 deep hypothesis property-based tests across engine, DB, risk, ground truth, robustness, CV
- Backtest engine: 68 tests (IC symmetry, Sharpe formula, MaxDD bounds, cost monotonicity)
- Results DB: 78 tests (add_factor idempotence, metric roundtrip, sorting, persistence)
- Risk management: 71 tests (correlation PSD, MV weights, RP convergence, threshold checks)
- Ground truth: 44 tests (Sharpe sign, MaxDD, win_rate, signal invariants)
- Robustness: 44 tests (slippage, latency, MC reshuffle, OOS stress, random data)
- Cross-validation: 38 tests (IC ∈ [-1,1], scaling invariance, multi-instrument)
2026-05-10 23:42:46 +02:00
TPTBusiness e4aea618b8 fix: bump axios 1.15.2→1.16.0, postcss 8.4.31→8.5.14 (Dependabot CVEs) 2026-05-10 22:16:09 +02:00
TPTBusiness a469692141 test: 441 deep property-based tests across CoSTEER, workflow, core, LLM utils, and formatting
- costeer_deep: 112 tests (knowledge base, feedback, evaluators, auto-fixer)
- workflow_deep: 84 tests (RDLoop, proposals, traces, hypothesis/pickle)
- core_deep: 74 tests (developer, evaluator, exceptions, experiment, scenario)
- llm_utils_deep: 49 tests (embeddings, APIBackend, edge cases, Unicode/NaN)
- utils_deep: 122 tests (shrink_text, templates, md5_hash, property-based, stress)
2026-05-10 22:14:11 +02:00
TPTBusiness 90690c1675 feat: multi-asset data pipeline, daily strategy generator, ML pipeline
B) Extended EUR/USD: 5,821 bars (2003-2026) via yfinance
C) Multi-asset: DXY, GOLD, SPX, GBPUSD, USDJPY, OIL (up to 24,705 bars since 1927)
   - OIL MR50d: +1.65%/month on 25yr data
   - DXY SMA5/25: +0.35%/month since 1971
   - SPX Mom100d: +0.26%/month since 1927
   - EURUSD RSI21: +0.05%/month (2003-2026)
   Validated strategies work across full history, not just 2020-2026 regime
2026-05-10 20:48:07 +02:00
TPTBusiness 5620ea1b0e feat: Optuna-optimized RF ML pipeline for daily strategies (+0.61%/month)
- 54 features from daily OHLCV (MA, RSI, MACD, ATR, ADX, Bollinger, etc.)
- Random Forest with Optuna TPE hyperparameter tuning (50 trials)
- Walk-forward validation with RiskMgmt backtest
- 5d horizon: OOS Sharpe +47.5, +0.61%/month
- Top features: vol50, sma20_100, sma200, calendar month
2026-05-10 18:45:31 +02:00
TPTBusiness 5b2b2ca9cc chore: remove results/ from git (should be gitignored) 2026-05-10 18:06:45 +02:00
TPTBusiness aa7e046782 feat: 9 additional daily strategies — ensembles, trailing stops, day filters 2026-05-10 18:04:19 +02:00
TPTBusiness 54b8713938 feat: daily strategy generator — grid search SMA/EMA/RSI/MACD/BB (14/55 profitable)
- Systematic grid search on daily EUR/USD data (1,944 bars)
- 14 of 55 strategies OOS-profitable at 2.14 bps
- Best: RSI7(20/80) OOS Sharpe +24.9, SMA10/30 +0.40%/month
- Saves top strategies to results/strategies_daily/
- Proven: daily frequency has real alpha, 1-min is noise
2026-05-10 17:58:25 +02:00
TPTBusiness 630794e00c docs: fix script paths in README after rename 2026-05-09 22:43:55 +02:00
dependabot[bot] 69c148f1f3 chore(deps): Bump pillow from 10.4.0 to 12.2.0 (#58)
Bumps [pillow](https://github.com/python-pillow/Pillow) from 10.4.0 to 12.2.0.
- [Release notes](https://github.com/python-pillow/Pillow/releases)
- [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst)
- [Commits](https://github.com/python-pillow/Pillow/compare/10.4.0...12.2.0)

---
updated-dependencies:
- dependency-name: pillow
  dependency-version: 12.2.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-05-09 22:42:21 +02:00
TPTBusiness a781d003ba test: deep tests for factor_runner (look-ahead fix, IC, dedup) and strategy_builder (combinator, evaluator)
- factor_runner: shift_daily_constant (property-based, 50 inputs), multi-instrument,
  NaN handling, edge cases (2-day, all-same, all-NaN), IC import, safe_float
- strategy_builder: combinator (pairs/triplets, category filtering, empty/single),
  evaluator (cost calc, safe names), builder import
2026-05-09 22:39:22 +02:00
TPTBusiness efd77b434c chore: remaining Predix→NexQuant renames in docs and web 2026-05-09 18:06:51 +02:00
TPTBusiness abca9eb899 fix: add hypothesis to test deps and fix missing imports in deep tests 2026-05-09 18:06:39 +02:00
TPTBusiness 3d38d88248 revert: remove automated release social workflow 2026-05-09 17:54:14 +02:00
TPTBusiness 22c8092f1c feat: auto-post releases to Mastodon and X/Twitter via GitHub Actions 2026-05-09 17:53:11 +02:00
TPTBusiness 21afe878e1 chore: remove accidentally committed binary 2026-05-09 17:49:00 +02:00
TPTBusiness cbe1c52e00 refactor: rename project from Predix to NexQuant
Rename all source files, scripts, tests, documentation, and configuration
from Predix/predix to NexQuant/nexquant across the entire codebase.
2026-05-09 17:48:22 +02:00
TPTBusiness 85b56b8179 docs: update README — Kronos-small, test depth, daemon setup, project structure
- Kronos: auto-integrated into fin_quant, 3 horizons, model size table
- Tests: 1125+ collected (was 134), property-based + fuzzing
- CLI: updated commands, removed outdated Kronos commands
- llama-server: reduced to 18 GPU layers for Kronos co-existence
- Daemon setup: auto-restart commands for fin_quant, autopilot, live trader
- Project structure: scripts/, test/ details, current architecture
2026-05-09 09:39:06 +02:00
TPTBusiness ba7458fba5 test: deep tests for predix_parallel (RunState, env, commands) and continuous_strategies (ML model)
- predix_parallel: 20 tests — RunState elapsed formatting (property-based, 200 inputs),
  status icons, API key loading, round-robin assignment, env building (local +
  openrouter), command building, edge cases
- continuous_strategies: 11 tests — build_ml_model (sufficient/insufficient data,
  OOS rejection, never-crashes property), config validation, style cycling
2026-05-09 08:50:13 +02:00
TPTBusiness 92ddcc47c7 test: deep tests for predix_gen_strategies_real_bt (36 tests)
- _rescale_thresholds: property-based fuzzing (200 random inputs),
  RSI toward-50 logic, small-threshold scaling, syntax preservation
- Factor loading: empty dir, sort by IC, top_n, missing parquet, corrupt JSON
- OHLCV loading: file-not-found, cache reuse
- TeeFile: writes to multiple handles, fileno delegation
- Backtest runner: sandbox execution, syntax error, missing signal
- Acceptance criteria: 7-parameter combinatorial check (daytrading + swing)
- Configuration: style defaults (daytrading vs swing)
2026-05-09 08:41:08 +02:00
TPTBusiness 160ac96130 test: deep property-based + fuzzing tests for backtest, verifier, and autopilot
- test_verify_runtime_deep: hypothesis property tests, fuzzing 1000 random results,
  invariant independence checking, edge cases (NaN, inf, negative trades)
- test_vbt_backtest_deep: property tests (cost monotonicity, signal inversion,
  max_dd invariants), edge cases (1 bar, empty, NaN, inf, mismatched lengths)
- test_autopilot: mocked orchestrator tests (failure recovery, counting logic,
  ensemble building, style cycling, hypothesis property tests)
2026-05-08 23:12:33 +02:00
TPTBusiness e029120090 chore: remove accidentally committed pycache files 2026-05-08 22:47:50 +02:00
TPTBusiness 4d9459a9f9 test: add tests for RDAgentLog debug() and LiteLLMAPIBackend 2026-05-08 22:47:41 +02:00
TPTBusiness f0ac999dbe Revert "feat: prioritize Kronos foundation model factors in strategy selection"
This reverts commit b58fc5622dd08ab81ba890db1896f06f2266fe29.
2026-05-08 18:32:38 +02:00
TPTBusiness 9c91a6938d feat: prioritize Kronos foundation model factors in strategy selection 2026-05-08 18:32:16 +02:00
TPTBusiness 0aea8c7671 fix: restore KronosPredictor instantiation deleted during refactor 2026-05-07 21:52:37 +02:00
TPTBusiness 72e8a4306e feat: support Kronos-small and Kronos-base models, auto-select GPU/CPU 2026-05-07 21:45:28 +02:00
TPTBusiness 669263db37 fix: add missing debug() method to RDAgentLog 2026-05-06 21:25:59 +02:00
TPTBusiness 584bf9d955 feat: integrate Kronos foundation model into fin_quant R&D loop 2026-05-06 16:22:03 +02:00
TPTBusiness d458e39940 fix: prevent LLM retry loop from consecutive assistant message corruption 2026-05-05 18:56:12 +02:00
TPTBusiness e20f3b0ea4 gitignore: add STARRED_REPOS_ANALYSIS.md to internal docs 2026-05-05 16:56:45 +02:00
Trading Prediction Technology 3584aee089 Add Predix data flow architecture diagram
Added a detailed SVG diagram illustrating the Predix data flow architecture, covering the full pipeline from data source to live trading.
2026-05-05 16:44:10 +02:00
TPTBusiness e0c287a575 feat: run Kronos on CPU to avoid GPU conflict with llama-server 2026-05-05 15:29:01 +02:00
TPTBusiness 8a8fb6688a chore: release v1.5.0 — manual release, update manifest and AGENTS.md 2026-05-05 15:10:47 +02:00
dependabot[bot] fddc472e16 chore(deps): Bump axios from 1.15.0 to 1.15.2 in /web (#55)
Bumps [axios](https://github.com/axios/axios) from 1.15.0 to 1.15.2.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.15.0...v1.15.2)

---
updated-dependencies:
- dependency-name: axios
  dependency-version: 1.15.2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-05-05 07:22:00 +02:00
TPTBusiness 29ad20914b fix: sync release manifest to v1.4.3 (was diverged at 0.8.0) 2026-05-05 07:21:34 +02:00
TPTBusiness e76d5ab9cf fix: relax WF default test (wf_oos_sharpe_mean not present when 0 windows) 2026-05-05 06:44:04 +02:00
github-actions[bot] 4b0898b377 chore(master): release 0.8.0 (#49)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-05-04 22:32:05 +02:00
dependabot[bot] f98ef71693 chore(deps): Update gymnasium requirement from >=0.29.0 to >=0.29.1 (#51)
Updates the requirements on [gymnasium](https://github.com/Farama-Foundation/Gymnasium) to permit the latest version.
- [Release notes](https://github.com/Farama-Foundation/Gymnasium/releases)
- [Commits](https://github.com/Farama-Foundation/Gymnasium/compare/v0.29.0...v0.29.1)

---
updated-dependencies:
- dependency-name: gymnasium
  dependency-version: 0.29.1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-05-04 22:32:02 +02:00
dependabot[bot] 54718b1663 chore(deps): Update beautifulsoup4 requirement from >=4.12.0 to >=4.14.3 (#50)
Updates the requirements on [beautifulsoup4](https://www.crummy.com/software/BeautifulSoup/bs4/) to permit the latest version.

---
updated-dependencies:
- dependency-name: beautifulsoup4
  dependency-version: 4.14.3
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-05-04 22:31:48 +02:00
dependabot[bot] ce86eb8a8a chore(deps): Update optuna requirement from >=3.5.0 to >=3.6.2 (#52)
Updates the requirements on [optuna](https://github.com/optuna/optuna) to permit the latest version.
- [Release notes](https://github.com/optuna/optuna/releases)
- [Commits](https://github.com/optuna/optuna/compare/v3.5.0...v3.6.2)

---
updated-dependencies:
- dependency-name: optuna
  dependency-version: 3.6.2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-05-04 22:31:44 +02:00
dependabot[bot] 8cce616434 chore(deps): Update streamlit requirement from >=1.47 to >=1.57.0 (#53)
Updates the requirements on [streamlit](https://github.com/streamlit/streamlit) to permit the latest version.
- [Release notes](https://github.com/streamlit/streamlit/releases)
- [Commits](https://github.com/streamlit/streamlit/compare/1.47.0...1.57.0)

---
updated-dependencies:
- dependency-name: streamlit
  dependency-version: 1.57.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-05-04 22:31:41 +02:00
TPTBusiness d55bd518d3 docs: add closed-source test policy; remove closed-source test imports 2026-05-04 22:31:11 +02:00
TPTBusiness f99acca6e0 test: add 9 tests (verifier edge cases, factor loader, stability, MTF, save strategy) — 641 total 2026-05-04 22:19:49 +02:00
TPTBusiness 49a2c34c5c test: add 10 tests (continuous gen, strategy builder, live trader, factor integration) — 632 total 2026-05-04 22:11:39 +02:00
TPTBusiness 71ceb9c809 fix: update WF test for new default (wf_rolling=True) 2026-05-04 22:04:05 +02:00
TPTBusiness 7f5acccfd9 test: add 15 tests (WF details, optuna, preflight, signal validation, IC bounds) — 622 total 2026-05-04 21:56:28 +02:00
TPTBusiness a459518dfa test: add 15 tests (perf bounds, chaining, multi-index, metric bounds, factor runner edges) — 607 total 2026-05-04 21:43:18 +02:00