Pyfolio 业绩分析
Pyfolio 业绩分析:一键生成投资组合 tear sheet——夏普、回撤、年化、换手、行业归因全套图表,覆盖 10+ 核心指标。
晶体简介
Constraints
Evidence Quality
Medium confidence — review before critical use
50 条不可违反的约束
WHENWhen estimating intraday positions from transactions
ACTIONApply shift(1) to EOD positions before adding intraday transaction deltas
CONSEQUENCEWithout shift(1), positions at day-start are contaminated with end-of-day values, causing look-ahead bias that makes intraday-adjusted results unrepresentative of actual peak-exposure moments.
WHENWhen implementing allocation percentage calculation
ACTIONInclude cash column in the denominator when computing allocation percentages
CONSEQUENCEPortfolio allocation percentages will not sum to 100% if cash is excluded from the denominator, misrepresenting the portfolio's actual composition and misleading risk analysis
WHENWhen identifying top positions for analysis
ACTIONExclude cash column when finding top long/short/absolute positions
CONSEQUENCECash would incorrectly appear as a position holding, causing top position analysis to report cash as the largest portfolio holding rather than actual securities
常见问题
讨论 (0)
暂无讨论,成为第一个发言的人吧!
更新历史
v0.1.0: 首次发布。基于 stefan-jansen/pyfolio-reloaded 的投资组合绩效分析工具,中英双语 + 3 条 FAQ。