You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AKShare data source: fixed fetching A-share bars on akshare 1.20.46+, which renamed stock_zh_a_hist to stock_zh_a_hist_em and removed the old name. PyBroker now uses the new function when it exists and falls back to the old one, so the supported floor (akshare>=1.17.50) still works.
ulcer_index: now computed correctly when the values span exactly one period; it used to return 0 in that case. (#354)
Performance
Bootstrap metrics: 3.75x faster Sharpe bca_boot_conf. Bootstrap indices are drawn in batches, and the mean and variance passes are fused. RNG consumption and accumulation order are unchanged, so confidence intervals are bit-identical. (#346)
Backtest bar loop: 1.7x faster trading-calendar check. It now compares sorted NumPy date arrays instead of frozensets of datetime64 (BacktestBarLoop: 66.1 ms → 39.1 ms). (#353)
Walkforward: 1.3x faster date slicing of backed symbol stores, because the redundant date-sort check is skipped for stores that are already sorted (10.7 ms → 7.3 ms on 120 symbols × 2,520 days). (#356)
Multi-timeframe intervals: 6.2x faster compress() into 5-minute bars. The completed-bar map is now built with bincount + cumsum instead of a per-bar searchsorted (98,280 one-minute bars: 2.93 ms → 0.47 ms). Output is identical. (#355)