跳转至

Extended Strategy Recipes and Historical Evidence

Open Strategy Construction → Visual Strategy Workshop. The preset catalog now includes cross-asset ETF rotation, sector ETF rotation, sector breadth, ETF risk allocation, unlevered volatility control, financial quality/value/dividend recipes and benchmark-relative enhancement.

Prepare a research snapshot

Expand 策略历史资料与来源, upload a JSON research bundle and click 校验并保存研究快照. The returned identifier is written into the existing snapshot input and can be reused by a workshop run, API request or CLI. Importing data does not generate a model response or send a trade.

The initial bundle supports CN/CNY and contains these fields:

Field Required evidence
market, source, is_mock, price_basis CN, an actual source label, explicit simulation status and raw prices
history Security-keyed, unique dated OHLCV rows; explicit corporate-action coverage and supplied historical trading status
metadata Matching securities, source/availability, listing date, asset class/type, lot size, tick size and settlement-session rules
sector_history Source, effective dates, availability and sector label
financials Unique observation ID, report period, publication/vintage/availability timestamps, historical eligibility, CNY, fractional ratio units and registered metric values
benchmark_weights Benchmark ID, effective dates, availability, complete fractional weights, declared beta/size exposures and sources
cash_rates Optional dated annual fractional rates with availability and source

Financial and benchmark groups are required only by recipes that use them. Financial metric names and definitions are listed in egs/config/strategies/strategy_research.yaml; the declared methods are explained in Strategy methods and sources. Current economic-analysis snapshots marked ineligible for historical use cannot be relabeled as this evidence.

A complete sample request contract is available in the repository acceptance fixtures; its prices and PIT observations are explicitly synthetic. Production users must replace both data and provenance with verified sources. A successful schema check does not authenticate historical factual claims.

Choose and run a recipe

Preset What to inspect
etf_cross_asset_rotation Multi-horizon score, trend gate, rank buffer, target weights and remaining cash
sector_etf_rotation Direct sector/theme ETF comparison and declared eligible pool
sector_breadth_rotation Dated company sectors, actual member sample and breadth threshold
etf_risk_allocation HRP/ERC/minimum-variance variant, aligned covariance and class concentration
etf_volatility_overlay Before/after forecast volatility, unlevered exposure and documented residual-cash interest
financial_quality, financial_value, financial_dividend Dated ratio definitions, missing coverage, rank direction and sustainability exclusions
index_enhancement Complete benchmark, solver feasibility, active exposures, turnover and post-risk mandate status

Load the preset, select the required securities and snapshot, inspect effective parameters, and run a quant-only backtest first. Financial and index recipes stop when their evidence is missing. The supplied cross-asset pool contains current product references, not automatically verified historical classification or instrument rules. Use a dated research archive for historical testing.

ERC, HRP, minimum variance and index enhancement need the project's existing SciPy dependency, available through the models installation extra. The page does not install packages or silently replace an unavailable optimizer. Published financial recipes freeze their metric weights and directions. If the research timing/accounting policy changes, reusing an older research snapshot is rejected until an explicit new import is made.

The standard graph, account, fee/slippage, trade-band, capacity and risk controls still apply. Historical close decisions execute at a later open. Corporate distributions, splits and cash interest are economic-flow records; actual trade costs remain in the existing ledger. Reports identify the comparison's return/accounting basis. Partial fills and risk reductions can make actual account weights differ from optimizer targets.

REST and CLI

POST /api/v1/strategy-research/snapshots accepts an object with a bundle field. GET /api/v1/strategy-research/snapshots/{identifier} returns coverage, sources, simulation status and the snapshot ID. Existing strategy-pipeline run endpoints accept that ID through snapshot_id.

python egs/entrypoints/cli.py pipeline research-import --file research-request.json
python egs/entrypoints/cli.py pipeline research-inspect SNAPSHOT_SHA256
python egs/entrypoints/cli.py pipeline run --template etf_cross_asset_rotation --mode backtest --agent-mode off --snapshot-id SNAPSHOT_SHA256 --start-date 2024-07-01 --end-date 2024-12-31

The CLI request file wraps the raw bundle in bundle; the page uploads the raw bundle itself. Replace placeholders and dates with actual saved evidence. The same snapshot, published definition and request settings are required when comparing UI/API/CLI results.

Limits and references

The initial corporate-action ledger supports separately sourced net cash dividends and unambiguous splits. It rejects unsupported composite/fractional events. Cash interest uses prior-known rates and actual elapsed days; missing rates do not create yield. The total-return reference uses theoretical fractional holdings, zero broker costs and an explicit reinvestment/reconstitution policy, so it is not automatically the official index return.

Cash distributions may include pay_date (ISO date, no earlier than the ex-date). The entitlement becomes a receivable until payment, remains in NAV after selling the security, and cannot fund orders or earn cash interest. Date-only payment is conservatively credited after the session's execution. Omitting the field retains the legacy same-day cash assumption. Account output reports receivables separately from cash.

The first real-data acceptance exposed an index-enhancement configuration conflict: stops can create more cash than the next rebalance's 30% turnover budget can reinvest under a full-investment mandate. The solver correctly rejects infeasibility. The default recipe is not cleared for uninterrupted historical operation in that scenario. A separately labeled 100% reentry-budget diagnostic is not the default recipe or a profitability claim. See Real strategy backtest validation for actual results and evidence boundaries.

These recipes extend the long-only research platform. Derivative margin, borrowing/shorting, ETF primary-market arbitrage and option settlement remain outside this delivery. Source references and exact formulas are retained in the principle document; they are methodological context, not a promise of returns.