pinets 0.8.10 → 0.8.12

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 CHANGED
@@ -4,12 +4,14 @@
4
4
 
5
5
  <p align="center">
6
6
  <strong>Run Pine Script Anywhere</strong><br>
7
- Execute TradingView indicators in Node.js, browsers, and any JavaScript runtime
7
+ Execute TradingView indicators in Node.js, browsers, and any JavaScript runtime<br />
8
+ PineTS enables algorithmic traders, quant developers and platforms to integrate Pine Script logic directly into their infrastructure.
9
+
8
10
  </p>
9
11
 
10
12
  <p align="center">
11
13
  <a href="https://www.npmjs.com/package/pinets"><img src="https://img.shields.io/npm/v/pinets.svg?style=flat-square" alt="npm version"></a>
12
- <a href="https://opensource.org/licenses/AGPL-3.0"><img src="https://img.shields.io/badge/License-AGPL--3.0-blue.svg?style=flat-square" alt="License"></a>
14
+ <a href="#license"><img src="https://img.shields.io/badge/License-AGPL--3.0%20%2F%20Commercial-blue.svg?style=flat-square" alt="License"></a>
13
15
  <a href="./.github/badges/coverage.svg"><img src="./.github/badges/coverage.svg" alt="Coverage"></a>
14
16
  <a href="https://quantforgeorg.github.io/PineTS/"><img src="https://img.shields.io/badge/docs-github--pages-blue?style=flat-square" alt="Documentation"></a>
15
17
  <a href="https://www.reddit.com/r/QuantForge/"><img src="https://img.shields.io/reddit/subreddit-subscribers/QuantForge?style=flat-square&logo=reddit" alt="Reddit"></a>
@@ -26,9 +28,14 @@
26
28
 
27
29
  ---
28
30
 
31
+ <p align="center">
32
+ <b>Sponsored by</b><br />
33
+ <a href="https://luxalgo.com" target="_blank" rel="noopener noreferrer"><img src="./.github/images/luxalgo.png" alt="PineTS" height="80px" /></a>
34
+ </p>
35
+
29
36
  ## What is PineTS?
30
37
 
31
- **PineTS** is an open-source transpiler and runtime that brings Pine Script to JavaScript ecosystem. Write indicators once, run them anywhere : on your own servers, in the browser, or embedded in your trading applications.
38
+ **PineTS** is an open-source transpiler and runtime that seamlessly bridges Pine Script and the JavaScript ecosystem. Develop your indicators once and deploy them everywhere : on your servers, in the browser, or fully integrated into your trading platforms.
32
39
 
33
40
  ```javascript
34
41
  import { PineTS, Provider } from 'pinets';
@@ -44,8 +51,8 @@ plot(ta.ema(close, 21), "Slow", color.red)
44
51
  `);
45
52
  ```
46
53
 
47
- > **What is Pine Script?**
48
- > [Pine Script](https://www.tradingview.com/pine-script-docs/welcome/) is a domain-specific programming language created by TradingView for writing custom technical analysis indicators and strategies.
54
+ > **About Pine Script™?**
55
+ > [Pine Script](https://www.tradingview.com/pine-script-docs/welcome/) is a domain-specific programming language created by TradingView for writing custom technical analysis indicators and strategies.
49
56
 
50
57
  > _**Disclaimer** : PineTS is an independent project and is not affiliated with, endorsed by, or associated with TradingView or Pine Script™. All trademarks and registered trademarks mentioned belong to their respective owners._
51
58
 
@@ -98,12 +105,12 @@ console.log('SMA values:', plots['SMA 20'].data);
98
105
 
99
106
  ### Core Capabilities
100
107
 
101
- - **Native Pine Script v5/v6** : Run original TradingView code directly _(experimental)_
102
- - **60+ Technical Indicators** : SMA, EMA, RSI, MACD, Bollinger Bands, and more
103
- - **Time-Series Processing** : Full Pine Script semantics with lookback support
104
- - **Real-time Streaming** : Live data processing with event-based updates
105
- - **Multi-Timeframe Analysis** : `request.security()` for MTF indicators
106
- - **High Precision** : Matches TradingView's calculation precision
108
+ - **Native Pine Script v5/v6** : Run original TradingView code directly _(experimental)_
109
+ - **60+ Technical Indicators** : SMA, EMA, RSI, MACD, Bollinger Bands, and more
110
+ - **Time-Series Processing** : Full Pine Script semantics with lookback support
111
+ - **Real-time Streaming** : Live data processing with event-based updates
112
+ - **Multi-Timeframe Analysis** : `request.security()` for MTF indicators
113
+ - **High Precision** : Matches TradingView's calculation precision
107
114
 
108
115
  ### Two Ways to Write Indicators
109
116
 
@@ -150,9 +157,9 @@ plot(sma, 'Signal');
150
157
 
151
158
  See PineTS in action with these browser-based examples:
152
159
 
153
- - **[Williams Vix Fix](https://quantforgeorg.github.io/PineTS/indicators/willvixfix/)** : Volatility-based indicator
154
- - **[Squeeze Momentum](https://quantforgeorg.github.io/PineTS/indicators/sqzmom/)** : Momentum oscillator
155
- - **[Playground](https://quantforge.org/playground/)** : Test your own Pine Script code
160
+ - **[Williams Vix Fix](https://quantforgeorg.github.io/PineTS/indicators/willvixfix/)** : Volatility-based indicator
161
+ - **[Squeeze Momentum](https://quantforgeorg.github.io/PineTS/indicators/sqzmom/)** : Momentum oscillator
162
+ - **[Playground](https://quantforge.org/playground/)** : Test your own Pine Script code
156
163
 
157
164
  _Demos are Built with PineTS + [QFChart](https://github.com/QuantForgeOrg/QFChart)_
158
165
 
@@ -226,7 +233,7 @@ const stream = pineTS.stream(
226
233
  indicator("Live RSI")
227
234
  plot(ta.rsi(close, 14), "RSI")
228
235
  `,
229
- { live: true, interval: 1000 }
236
+ { live: true, interval: 1000 },
230
237
  );
231
238
 
232
239
  stream.on('data', (ctx) => {
@@ -314,10 +321,10 @@ PineTS aims for complete Pine Script API compatibility. Current status:
314
321
 
315
322
  ## Documentation
316
323
 
317
- - **[Full Documentation](https://quantforgeorg.github.io/PineTS/)** — Complete guides and API reference
318
- - **[Initialization Guide](https://quantforgeorg.github.io/PineTS/initialization-and-usage/)** — Setup options and configuration
319
- - **[Architecture Overview](https://quantforgeorg.github.io/PineTS/architecture/)** — How PineTS works internally
320
- - **[API Coverage Details](https://quantforgeorg.github.io/PineTS/api-coverage/)** — Function-by-function compatibility
324
+ - **[Full Documentation](https://quantforgeorg.github.io/PineTS/)** — Complete guides and API reference
325
+ - **[Initialization Guide](https://quantforgeorg.github.io/PineTS/initialization-and-usage/)** — Setup options and configuration
326
+ - **[Architecture Overview](https://quantforgeorg.github.io/PineTS/architecture/)** — How PineTS works internally
327
+ - **[API Coverage Details](https://quantforgeorg.github.io/PineTS/api-coverage/)** — Function-by-function compatibility
321
328
 
322
329
  ---
323
330
 
@@ -325,28 +332,28 @@ PineTS aims for complete Pine Script API compatibility. Current status:
325
332
 
326
333
  **Algorithmic Trading**
327
334
 
328
- - Build custom trading bots using Pine Script strategies
329
- - Integrate indicators with your execution systems
335
+ - Build custom trading bots using Pine Script strategies
336
+ - Integrate indicators with your execution systems
330
337
 
331
338
  **Backtesting**
332
339
 
333
- - Test Pine Script strategies against historical data
334
- - Export indicator values for analysis in Python/R
340
+ - Test Pine Script strategies against historical data
341
+ - Export indicator values for analysis in Python/R
335
342
 
336
343
  **Alert Systems**
337
344
 
338
- - Create custom alert pipelines based on indicator signals
339
- - Monitor multiple assets with server-side indicator calculations
345
+ - Create custom alert pipelines based on indicator signals
346
+ - Monitor multiple assets with server-side indicator calculations
340
347
 
341
348
  **Research & Analysis**
342
349
 
343
- - Process large datasets with Pine Script indicators
344
- - Feed indicator outputs into machine learning models
350
+ - Process large datasets with Pine Script indicators
351
+ - Feed indicator outputs into machine learning models
345
352
 
346
353
  **Custom Dashboards**
347
354
 
348
- - Embed live indicators in web applications
349
- - Build real-time monitoring dashboards
355
+ - Embed live indicators in web applications
356
+ - Build real-time monitoring dashboards
350
357
 
351
358
  ---
352
359
 
@@ -369,7 +376,7 @@ PineTS aims for complete Pine Script API compatibility. Current status:
369
376
 
370
377
  ## Related Projects
371
378
 
372
- - **[QFChart](https://github.com/QuantForgeOrg/QFChart)** : Charting library optimized for PineTS visualization
379
+ - **[QFChart](https://github.com/QuantForgeOrg/QFChart)** : Charting library optimized for PineTS visualization
373
380
 
374
381
  ---
375
382
 
@@ -377,10 +384,10 @@ PineTS aims for complete Pine Script API compatibility. Current status:
377
384
 
378
385
  Contributions are welcome! Whether it's:
379
386
 
380
- - Adding missing Pine Script functions
381
- - Improving documentation
382
- - Fixing bugs
383
- - Suggesting features
387
+ - Adding missing Pine Script functions
388
+ - Improving documentation
389
+ - Fixing bugs
390
+ - Suggesting features
384
391
 
385
392
  Please feel free to open issues or submit pull requests.
386
393
 
@@ -404,7 +411,11 @@ Thanks to all PineTS contributors:
404
411
 
405
412
  ## License
406
413
 
407
- AGPL-3.0 - See [LICENSE](LICENSE) for details.
414
+ PineTS is dual-licensed:
415
+
416
+ - **[AGPL-3.0](./LICENSE)** — Free for everyone. You can use PineTS for personal projects, research, and internal tools without any obligation. The copyleft terms only apply if you **distribute** your application to others or **provide it as a network service** (e.g., SaaS, public API) — in that case, your full source code must also be released under AGPL-3.0.
417
+
418
+ - **[Commercial License](./LICENSE-COMMERCIAL.md)** — For companies and individuals who want to use PineTS in proprietary or closed-source software without AGPL-3.0 obligations. [Contact us for licensing](https://quantforge.org/contact/).
408
419
 
409
420
  ---
410
421