pinets 0.9.16 → 0.9.18
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 +14 -11
- package/dist/pinets.min.browser.es.js +29 -29
- package/dist/pinets.min.browser.es.js.map +1 -1
- package/dist/pinets.min.browser.js +29 -29
- package/dist/pinets.min.browser.js.map +1 -1
- package/dist/pinets.min.cjs +29 -29
- package/dist/pinets.min.cjs.map +1 -1
- package/dist/pinets.min.es.js +29 -29
- package/dist/pinets.min.es.js.map +1 -1
- package/dist/types/Context.class.d.ts +2 -0
- package/dist/types/PineTS.class.d.ts +20 -7
- package/dist/types/namespaces/line/LineHelper.d.ts +9 -0
- package/dist/types/namespaces/linefill/LinefillHelper.d.ts +11 -0
- package/dist/types/namespaces/polyline/PolylineObject.d.ts +3 -3
- package/dist/types/namespaces/strategy/methods/account_currency.d.ts +5 -0
- package/dist/types/namespaces/strategy/methods/any.d.ts +5 -0
- package/dist/types/namespaces/strategy/methods/avg_losing_trade.d.ts +6 -0
- package/dist/types/namespaces/strategy/methods/avg_losing_trade_percent.d.ts +5 -0
- package/dist/types/namespaces/strategy/methods/avg_trade.d.ts +5 -0
- package/dist/types/namespaces/strategy/methods/avg_trade_percent.d.ts +6 -0
- package/dist/types/namespaces/strategy/methods/avg_winning_trade.d.ts +5 -0
- package/dist/types/namespaces/strategy/methods/avg_winning_trade_percent.d.ts +5 -0
- package/dist/types/namespaces/strategy/methods/cancel.d.ts +1 -0
- package/dist/types/namespaces/strategy/methods/cancel_all.d.ts +6 -0
- package/dist/types/namespaces/strategy/methods/cash.d.ts +5 -0
- package/dist/types/namespaces/strategy/methods/close.d.ts +1 -0
- package/dist/types/namespaces/strategy/methods/close_all.d.ts +1 -0
- package/dist/types/namespaces/strategy/methods/closedtrades.d.ts +15 -0
- package/dist/types/namespaces/strategy/methods/convert_to_account.d.ts +9 -0
- package/dist/types/namespaces/strategy/methods/convert_to_symbol.d.ts +5 -0
- package/dist/types/namespaces/strategy/methods/default_entry_qty.d.ts +8 -0
- package/dist/types/namespaces/strategy/methods/entry.d.ts +1 -0
- package/dist/types/namespaces/strategy/methods/equity.d.ts +5 -0
- package/dist/types/namespaces/strategy/methods/eventrades.d.ts +2 -0
- package/dist/types/namespaces/strategy/methods/exit.d.ts +1 -0
- package/dist/types/namespaces/strategy/methods/fixed.d.ts +5 -0
- package/dist/types/namespaces/strategy/methods/grossloss.d.ts +5 -0
- package/dist/types/namespaces/strategy/methods/grossloss_percent.d.ts +4 -0
- package/dist/types/namespaces/strategy/methods/grossprofit.d.ts +5 -0
- package/dist/types/namespaces/strategy/methods/grossprofit_percent.d.ts +4 -0
- package/dist/types/namespaces/strategy/methods/initial_capital.d.ts +2 -0
- package/dist/types/namespaces/strategy/methods/long.d.ts +4 -0
- package/dist/types/namespaces/strategy/methods/losstrades.d.ts +2 -0
- package/dist/types/namespaces/strategy/methods/margin_liquidation_price.d.ts +13 -0
- package/dist/types/namespaces/strategy/methods/max_contracts_held_all.d.ts +2 -0
- package/dist/types/namespaces/strategy/methods/max_contracts_held_long.d.ts +2 -0
- package/dist/types/namespaces/strategy/methods/max_contracts_held_short.d.ts +2 -0
- package/dist/types/namespaces/strategy/methods/max_drawdown.d.ts +5 -0
- package/dist/types/namespaces/strategy/methods/max_drawdown_percent.d.ts +5 -0
- package/dist/types/namespaces/strategy/methods/max_runup.d.ts +5 -0
- package/dist/types/namespaces/strategy/methods/max_runup_percent.d.ts +5 -0
- package/dist/types/namespaces/strategy/methods/netprofit.d.ts +5 -0
- package/dist/types/namespaces/strategy/methods/netprofit_percent.d.ts +5 -0
- package/dist/types/namespaces/strategy/methods/openprofit.d.ts +5 -0
- package/dist/types/namespaces/strategy/methods/openprofit_percent.d.ts +5 -0
- package/dist/types/namespaces/strategy/methods/opentrades.d.ts +9 -0
- package/dist/types/namespaces/strategy/methods/order.d.ts +6 -0
- package/dist/types/namespaces/strategy/methods/param.d.ts +5 -0
- package/dist/types/namespaces/strategy/methods/percent_of_equity.d.ts +5 -0
- package/dist/types/namespaces/strategy/methods/position_avg_price.d.ts +5 -0
- package/dist/types/namespaces/strategy/methods/position_entry_name.d.ts +5 -0
- package/dist/types/namespaces/strategy/methods/position_size.d.ts +5 -0
- package/dist/types/namespaces/strategy/methods/risk.d.ts +22 -0
- package/dist/types/namespaces/strategy/methods/short.d.ts +4 -0
- package/dist/types/namespaces/strategy/methods/wintrades.d.ts +2 -0
- package/dist/types/namespaces/strategy/strategy.index.d.ts +7 -0
- package/dist/types/namespaces/strategy/types.d.ts +176 -0
- package/dist/types/namespaces/strategy/utils.d.ts +84 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -14,7 +14,8 @@ PineTS enables algorithmic traders, quant developers, and platforms to integrate
|
|
|
14
14
|
<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>
|
|
15
15
|
<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>
|
|
16
16
|
<a href="./.github/badges/coverage.svg"><img src="./.github/badges/coverage.svg" alt="Coverage"></a>
|
|
17
|
-
<a href="https://
|
|
17
|
+
<a href="https://github.com/LuxAlgo/PineTS#api-coverage"><img src="./.github/badges/api-coverage.svg" alt="API Coverage"></a>
|
|
18
|
+
<a href="https://luxalgo.github.io/PineTS/"><img src="https://img.shields.io/badge/docs-github--pages-blue?style=flat-square" alt="Documentation"></a>
|
|
18
19
|
</p>
|
|
19
20
|
|
|
20
21
|
<p align="center">
|
|
@@ -58,9 +59,9 @@ plot(ta.ema(close, 21), "Slow", color.red)
|
|
|
58
59
|
|
|
59
60
|
| Challenge | PineTS Solution |
|
|
60
61
|
| ------------------------------------------- | ---------------------------------------------------- |
|
|
61
|
-
| Pine Script® only runs on TradingView®
|
|
62
|
+
| Pine Script® only runs on TradingView® | Run indicators on your own infrastructure |
|
|
62
63
|
| Can't integrate indicators with custom apps | Full JavaScript/TypeScript integration |
|
|
63
|
-
| Limited to TradingView®'s data sources
|
|
64
|
+
| Limited to TradingView®'s data sources | Use any data source (Binance, custom APIs, CSV) |
|
|
64
65
|
| No programmatic access to indicator values | Get raw values for backtesting, alerts, ML pipelines |
|
|
65
66
|
| Can't run indicators server-side | Works in Node.js, Deno, Bun, browsers |
|
|
66
67
|
|
|
@@ -345,16 +346,15 @@ PineTS aims for complete Pine Script® API compatibility. Current status:
|
|
|
345
346
|
|
|
346
347
|
| Status | Feature |
|
|
347
348
|
| ------ | ----------------------------------------- |
|
|
348
|
-
| ✅ | Native Pine Script® v5/v6 support
|
|
349
|
+
| ✅ | Native Pine Script® v5/v6 support |
|
|
349
350
|
| ✅ | 60+ technical analysis functions |
|
|
350
351
|
| ✅ | Arrays, matrices, and maps |
|
|
351
352
|
| ✅ | Real-time streaming |
|
|
352
353
|
| ✅ | Multi-timeframe with `request.security()` |
|
|
353
|
-
|
|
|
354
|
+
| ✅ | Strategy namespace |
|
|
355
|
+
| ✅ | Market data Providers |
|
|
354
356
|
| 🚧 | Additional data providers |
|
|
355
|
-
| 🎯 | Pine Script® v6 full compatibility
|
|
356
|
-
| 🎯 | Market data Providers |
|
|
357
|
-
| 🎯 | Trading Connectors |
|
|
357
|
+
| 🎯 | Pine Script® v6 full compatibility |
|
|
358
358
|
|
|
359
359
|
---
|
|
360
360
|
|
|
@@ -378,11 +378,14 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for the full guidelines.
|
|
|
378
378
|
Thanks to all PineTS contributors:
|
|
379
379
|
|
|
380
380
|
<p align="left">
|
|
381
|
-
|
|
382
|
-
|
|
381
|
+
<a href="https://github.com/alaa-eddine"><img src="https://avatars.githubusercontent.com/u/1016513?v=4&s=64" width="64" height="64" alt="alaa-eddine" title="alaa-eddine" style="border-radius: 50%;"/></a>
|
|
382
|
+
<a href="https://github.com/dcaoyuan"><img src="https://avatars.githubusercontent.com/u/271571?v=4&s=64" width="64" height="64" alt="dcaoyuan" title="dcaoyuan" style="border-radius: 50%;"/></a>
|
|
383
383
|
<a href="https://github.com/C9Bad"><img src="https://avatars.githubusercontent.com/u/57975070?v=4&s=64" width="64" height="64" alt="C9Bad" title="C9Bad" style="border-radius: 50%;"/></a>
|
|
384
384
|
<a href="https://github.com/aakash-code"><img src="https://avatars.githubusercontent.com/u/71116743?v=4&s=64" width="64" height="64" alt="aakash-code" title="aakash-code" style="border-radius: 50%;"/></a>
|
|
385
|
-
|
|
385
|
+
<a href="https://github.com/alexgrover"><img src="https://avatars.githubusercontent.com/u/41912104?v=4&s=64" width="64" height="64" alt="alexgrover" title="alexgrover" style="border-radius: 50%;"/></a>
|
|
386
|
+
<a href="https://github.com/amoradi"><img src="https://avatars.githubusercontent.com/u/6855005?v=4&s=64" width="64" height="64" alt="amoradi" title="amoradi" style="border-radius: 50%;"/></a>
|
|
387
|
+
<a href="https://github.com/smack369"><img src="https://avatars.githubusercontent.com/u/126825390?v=4&s=64" width="64" height="64" alt="smack369" title="smack369" style="border-radius: 50%;"/></a>
|
|
388
|
+
<a href="https://github.com/NexusAlien"><img src="https://avatars.githubusercontent.com/u/181855714?v=4&s=64" width="64" height="64" alt="NexusAlien" title="NexusAlien" style="border-radius: 50%;"/></a>
|
|
386
389
|
</p>
|
|
387
390
|
|
|
388
391
|
---
|