Files
NexQuant/.gitignore
T
TPTBusiness 0651faed92 feat: unified backtest engine, LLM error handling, strategy refactor
- Add vbt_backtest.py as single source of truth for all metric formulas
  (Sharpe, drawdown, IC, transaction costs) — backtest_engine.py and
  strategy_orchestrator.py now delegate to it
- Add LLMUnavailableError to exception.py; rd_loop.py catches it at the
  proposal stage and raises LoopResumeError to avoid corrupting trace
  history with None hypotheses
- Guard record() against None exp/hypothesis so loop resets leave
  trace.hist in a consistent state
- Refactor strategy_orchestrator and optuna_optimizer to use unified
  backtest path; remove duplicate metric calculation code
- Add predix_rebacktest_unified.py script for offline re-evaluation
- Update tests and README

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 22:52:07 +02:00

143 lines
4.3 KiB
Plaintext

# ═══════════════════════════════════════════════════════════
# PREDIX .gitignore
# ═══════════════════════════════════════════════════════════
# ──────────────────────────────────────────────────────────
# 🔒 CLOSED-SOURCE ASSETS (NIEMALS COMMITTEN!)
# ──────────────────────────────────────────────────────────
# Trading scripts & raw OHLCV data
git_ignore_folder/
data_raw/
# Backtest results, strategies, logs
results/
*.log
fin_quant*.log
selector.log
log/
# Credentials & environment
.env
.env.*
!.env.example
.env.backup
.env.local
.env.test
*.test.env
# Private prompts (your improved versions)
prompts/local/
*.local.yaml
*_private.yaml
# Private models (your improved versions)
models/local/
*.local.py
*_private.py
# Closed source RD-Agent components
rdagent/scenarios/qlib/local/
# Databases & generated data
*.db
*.h5
intraday_pv*.h5
prompt_cache.db
# Generated strategy files
*.json
!package.json
!package-lock.json
!pyproject.json
# Private test scripts
test_credentials.py
test/backtesting/test_smart_strategy_gen.py
# Private scripts (root)
predix_quick_daytrading.py
predix_smart_strategy_gen.py
# Internal docs
TODO.md
QWEN.md
CLAUDE.md
docs/COMPLETE_WORKFLOW.md
docs/SMART_STRATEGY_GEN.md
# OpenACP workspace (secrets)
.openacp
# ──────────────────────────────────────────────────────────
# 🐍 Python
# ──────────────────────────────────────────────────────────
# Byte-compiled & cache
__pycache__/
*.py[cod]
*$py.class
*.pyc
.Python
# Distribution/packaging
build/
dist/
*.egg-info/
*.egg
predix.egg-info/
sdist/
var/
# Virtual environments
venv/
ENV/
env/
.venv/
# ──────────────────────────────────────────────────────────
# 🧪 Testing & Coverage
# ──────────────────────────────────────────────────────────
.pytest_cache/
.coverage
.coverage.*
htmlcov/
.tox/
.nox/
# ──────────────────────────────────────────────────────────
# 💻 IDE & Editor
# ──────────────────────────────────────────────────────────
.idea/
.vscode/
*.swp
*.swo
*~
# ──────────────────────────────────────────────────────────
# 🗜️ Cache & Temp
# ──────────────────────────────────────────────────────────
.cache/
pickle_cache/
*.so
# ──────────────────────────────────────────────────────────
# 🏗️ Build & Reports
# ──────────────────────────────────────────────────────────
*.manifest
*.spec
..bfg-report/
# ──────────────────────────────────────────────────────────
# 🤖 AI Agent Workspaces (parallel runs)
# ──────────────────────────────────────────────────────────
.qwen/
RD-Agent_workspace_run*/
AGENTS.md
CLAUDE.md
.claude/