backtest-kit 2.2.1 β†’ 2.2.3

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.
Files changed (5) hide show
  1. package/README.md +32 -10
  2. package/build/index.cjs +1891 -132
  3. package/build/index.mjs +1890 -134
  4. package/package.json +2 -1
  5. package/types.d.ts +1709 -865
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/signals
259
+ ### @backtest-kit/pinets
260
260
 
261
- > **[Explore on NPM](https://www.npmjs.com/package/@backtest-kit/signals)** πŸ“Š
261
+ > **[Explore on NPM](https://www.npmjs.com/package/@backtest-kit/pinets)** πŸ“œ
262
262
 
263
- 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.
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
- - πŸ“ˆ **Multi-Timeframe Analysis**: 1m, 15m, 30m, 1h with synchronized indicator computation
267
- - 🎯 **50+ Technical Indicators**: RSI, MACD, Bollinger Bands, Stochastic, ADX, ATR, CCI, Fibonacci, Support/Resistance
268
- - πŸ“Š **Order Book Analysis**: Bid/ask depth, spread, liquidity imbalance, top 20 levels
269
- - πŸ€– **AI-Ready Output**: Markdown reports formatted for LLM context injection
270
- - ⚑ **Performance Optimized**: Intelligent caching with configurable TTL per timeframe
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 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.
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/signals 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)