BT Portfolio Backtest

BT Portfolio Backtest: BT Portfolio Backtest: specialized toolkit for 3+ finance workflows covered in the triggers section.

✓ 0 reported success·v0.1.0·

Overview

BT Portfolio Backtest skill for finance analytics + 回测. Covers 3+ use cases. (batch-v1 draft, needs English review) This skill is built on open-source project zvtvz/zvt and embeds 25 anti-pattern constraints. Visit doramagic.ai/r/bt-portfolio-backtest for bilingual documentation and use cases. Compatible with the Doramagic ecosystem (Claude Code, Cursor, openclaw, ChatGPT, Gemini, etc.).

Blueprint Source

finance-bp-125

zvtvz/zvt6360a632 source files

Constraints

59total
34fatal
34 must-not-violate

Evidence Quality

Confidence88%

Medium confidence — review before critical use

34 non-negotiable constraints

FATALdomain_rulefinance-C-001

WHENWhen implementing data input for backtesting

ACTIONverify the price DataFrame index is a DateTimeIndex for time-series alignment

CONSEQUENCEWithout a DateTimeIndex, pandas datetime operations like shift() and offset calculations will fail or produce incorrect results, corrupting backtest calculations

FATALdomain_rulefinance-C-002

WHENWhen passing price data with duplicate column names

ACTIONallow duplicate column names in the price DataFrame

CONSEQUENCEDuplicate columns cause ambiguous column access and can lead to incorrect signal generation or position sizing based on wrong securities

FATALresource_boundaryfinance-C-006

WHENWhen providing price data to Backtest

ACTIONuse a datetime-indexed pandas DataFrame or Series as the data source

CONSEQUENCENon-datetime indexed data causes pandas datetime operations to fail, preventing proper time-series alignment and offset calculations

FAQ

Discussion (0)

No comments yet. Be the first to share!

Changelog

v0.1.02026-04-23·Contributors: tangweigang-jpg

v0.1.0: Initial release on Doramagic.ai. Auto-generated batch-v1 metadata and FAQs based on zvtvz/zvt.