backtest-kit 2.2.1 β 2.2.5
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 +32 -10
- package/build/index.cjs +1997 -178
- package/build/index.mjs +1996 -180
- package/package.json +2 -1
- package/types.d.ts +2039 -963
package/README.md
CHANGED
|
@@ -256,25 +256,25 @@ Unlike cloud-based platforms, backtest-kit runs entirely in your environment. Yo
|
|
|
256
256
|
|
|
257
257
|
The `backtest-kit` ecosystem extends beyond the core library, offering complementary packages and tools to enhance your trading system development experience:
|
|
258
258
|
|
|
259
|
-
### @backtest-kit/
|
|
259
|
+
### @backtest-kit/pinets
|
|
260
260
|
|
|
261
|
-
> **[Explore on NPM](https://www.npmjs.com/package/@backtest-kit/
|
|
261
|
+
> **[Explore on NPM](https://www.npmjs.com/package/@backtest-kit/pinets)** π
|
|
262
262
|
|
|
263
|
-
The **@backtest-kit/
|
|
263
|
+
The **@backtest-kit/pinets** package lets you run TradingView Pine Script strategies directly in Node.js. Port your existing Pine Script indicators to backtest-kit with zero rewrite using the [PineTS](https://github.com/QuantForgeOrg/PineTS) runtime.
|
|
264
264
|
|
|
265
265
|
#### Key Features
|
|
266
|
-
-
|
|
267
|
-
- π― **
|
|
268
|
-
-
|
|
269
|
-
-
|
|
270
|
-
- β‘ **
|
|
266
|
+
- π **Pine Script v5/v6**: Native TradingView syntax with 1:1 compatibility
|
|
267
|
+
- π― **60+ Indicators**: SMA, EMA, RSI, MACD, Bollinger Bands, ATR, Stochastic built-in
|
|
268
|
+
- π **File or Code**: Load `.pine` files or pass code strings directly
|
|
269
|
+
- πΊοΈ **Plot Extraction**: Flexible mapping from Pine `plot()` outputs to structured signals
|
|
270
|
+
- β‘ **Cached Execution**: Memoized file reads for repeated strategy runs
|
|
271
271
|
|
|
272
272
|
#### Use Case
|
|
273
|
-
Perfect for
|
|
273
|
+
Perfect for traders who already have working TradingView strategies. Instead of rewriting your Pine Script logic in JavaScript, simply copy your `.pine` file and use `getSignal()` to extract trading signals. Works seamlessly with backtest-kit's temporal context - no look-ahead bias possible.
|
|
274
274
|
|
|
275
275
|
#### Get Started
|
|
276
276
|
```bash
|
|
277
|
-
npm install @backtest-kit/
|
|
277
|
+
npm install @backtest-kit/pinets pinets backtest-kit
|
|
278
278
|
```
|
|
279
279
|
|
|
280
280
|
### @backtest-kit/ollama
|
|
@@ -299,6 +299,28 @@ Ideal for building multi-provider LLM strategies with fallback chains and ensemb
|
|
|
299
299
|
npm install @backtest-kit/ollama agent-swarm-kit backtest-kit
|
|
300
300
|
```
|
|
301
301
|
|
|
302
|
+
|
|
303
|
+
### @backtest-kit/signals
|
|
304
|
+
|
|
305
|
+
> **[Explore on NPM](https://www.npmjs.com/package/@backtest-kit/signals)** π
|
|
306
|
+
|
|
307
|
+
The **@backtest-kit/signals** package is a technical analysis and trading signal generation library designed for AI-powered trading systems. It computes 50+ indicators across 4 timeframes and generates markdown reports optimized for LLM consumption.
|
|
308
|
+
|
|
309
|
+
#### Key Features
|
|
310
|
+
- π **Multi-Timeframe Analysis**: 1m, 15m, 30m, 1h with synchronized indicator computation
|
|
311
|
+
- π― **50+ Technical Indicators**: RSI, MACD, Bollinger Bands, Stochastic, ADX, ATR, CCI, Fibonacci, Support/Resistance
|
|
312
|
+
- π **Order Book Analysis**: Bid/ask depth, spread, liquidity imbalance, top 20 levels
|
|
313
|
+
- π€ **AI-Ready Output**: Markdown reports formatted for LLM context injection
|
|
314
|
+
- β‘ **Performance Optimized**: Intelligent caching with configurable TTL per timeframe
|
|
315
|
+
|
|
316
|
+
#### Use Case
|
|
317
|
+
Perfect for injecting comprehensive market context into your LLM-powered strategies. Instead of manually calculating indicators, `@backtest-kit/signals` provides a single function call that adds all technical analysis to your message context. Works seamlessly with `getSignal` function in backtest-kit strategies.
|
|
318
|
+
|
|
319
|
+
#### Get Started
|
|
320
|
+
```bash
|
|
321
|
+
npm install @backtest-kit/signals backtest-kit
|
|
322
|
+
```
|
|
323
|
+
|
|
302
324
|
## π€ Are you a robot?
|
|
303
325
|
|
|
304
326
|
**For language models**: Read extended description in [./LLMs.md](./LLMs.md)
|