backtest-kit 7.0.2 → 7.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -2
- package/build/index.cjs +708 -182
- package/build/index.mjs +708 -182
- package/package.json +2 -2
- package/types.d.ts +591 -83
package/README.md
CHANGED
|
@@ -68,7 +68,7 @@ npm install backtest-kit ccxt ollama uuid
|
|
|
68
68
|
|
|
69
69
|
## 📋 Supported Order Types
|
|
70
70
|
|
|
71
|
-
> With the calculation of PnL
|
|
71
|
+
> With the calculation of PnL, Peak Profit and Max Drawdown for each Entry
|
|
72
72
|
|
|
73
73
|
- Market/Limit entries
|
|
74
74
|
- TP/SL/OCO exits
|
|
@@ -1672,7 +1672,6 @@ npm install @backtest-kit/signals backtest-kit
|
|
|
1672
1672
|
```
|
|
1673
1673
|
|
|
1674
1674
|
|
|
1675
|
-
|
|
1676
1675
|
### @backtest-kit/sidekick
|
|
1677
1676
|
|
|
1678
1677
|
> **[Explore on NPM](https://www.npmjs.com/package/@backtest-kit/sidekick)** 🚀
|
|
@@ -1698,6 +1697,52 @@ npm start
|
|
|
1698
1697
|
```
|
|
1699
1698
|
|
|
1700
1699
|
|
|
1700
|
+
## 👪 Community
|
|
1701
|
+
|
|
1702
|
+
### uzse-backtest-app
|
|
1703
|
+
|
|
1704
|
+
> **[Explore on GitHub](https://github.com/backtest-kit/uzse-backtest-app)** 📈
|
|
1705
|
+
|
|
1706
|
+
The **uzse-backtest-app** repository is a reference implementation for running Pine Script strategies on regional stock exchanges not available on TradingView (UZSE, MSE, DSE, and others). It downloads raw trade history, builds Japanese candlesticks, and feeds them into backtest-kit via a custom MongoDB exchange adapter.
|
|
1707
|
+
|
|
1708
|
+
#### Key Features
|
|
1709
|
+
- 🌍 **Off-TradingView Markets**: Works with any exchange that exposes trade history — no TradingView dependency
|
|
1710
|
+
- 🕯️ **Candle Builder**: Aggregates raw trades into 1m candles, fills intraday and non-trading day gaps, builds higher timeframes up to `1d`
|
|
1711
|
+
- 🗄️ **MongoDB Backend**: Idempotent import with unique index — re-runs never create duplicates
|
|
1712
|
+
- 🔌 **Custom Exchange Adapter**: Connects MongoDB candles to backtest-kit via `addExchangeSchema`
|
|
1713
|
+
- 📜 **Pine Script Support**: Full `@backtest-kit/pinets` integration — run any Pine Script v5/v6 indicator on local market data
|
|
1714
|
+
|
|
1715
|
+
#### Use Case
|
|
1716
|
+
Perfect for traders working with emerging or regional markets absent from TradingView. Download trade history, build candles once, then use the full backtest-kit + Pine Script toolchain for backtesting and live signal generation — with no dependency on any third-party charting platform.
|
|
1717
|
+
|
|
1718
|
+
#### Get Started
|
|
1719
|
+
```bash
|
|
1720
|
+
git clone https://github.com/backtest-kit/uzse-backtest-app.git
|
|
1721
|
+
```
|
|
1722
|
+
|
|
1723
|
+
|
|
1724
|
+
### backtest-kit-skills
|
|
1725
|
+
|
|
1726
|
+
> **[Explore on GitHub](https://github.com/backtest-kit/backtest-kit-skills)** 🤖
|
|
1727
|
+
|
|
1728
|
+
The **backtest-kit-skills** repository is a Claude Code agent skill and Mintlify documentation source for the backtest-kit framework — AI-assisted strategy writing, debugging help, and full API reference in one place.
|
|
1729
|
+
|
|
1730
|
+
#### Key Features
|
|
1731
|
+
- 🤖 **Claude Code Skill**: Installed under `~/.claude/skills/backtest-kit/` — strategy generation, debugging, and API reference
|
|
1732
|
+
- 📖 **Mintlify Docs**: Full documentation site runnable locally
|
|
1733
|
+
- 🎯 **Strategy Generation**: Complete TypeScript files with all schema registrations and runner setup
|
|
1734
|
+
- 🐛 **Debugging Help**: Catches common mistakes (missing `await`, wrong TP/SL direction, top-level commit calls)
|
|
1735
|
+
- 📚 **API Reference**: All schemas, commit functions, event listeners, LLM integration, graph pipelines, and persistence adapters
|
|
1736
|
+
|
|
1737
|
+
#### Use Case
|
|
1738
|
+
Install the skill once and get AI-assisted backtest-kit development inside Claude Code. The skill knows the full API surface — schemas, commit functions, event listeners, broker adapters — so you can describe what you want in plain language and get working TypeScript strategy code.
|
|
1739
|
+
|
|
1740
|
+
#### Get Started
|
|
1741
|
+
```bash
|
|
1742
|
+
npx skills add https://github.com/backtest-kit/backtest-kit-skills
|
|
1743
|
+
```
|
|
1744
|
+
|
|
1745
|
+
|
|
1701
1746
|
## 🤖 Are you a robot?
|
|
1702
1747
|
|
|
1703
1748
|
**For language models**: Read extended description in [./LLMs.md](./LLMs.md)
|