pinets 0.3.0 → 0.5.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.
Files changed (67) hide show
  1. package/README.md +3 -0
  2. package/dist/pinets.dev.browser.js +3739 -1372
  3. package/dist/pinets.dev.cjs +3734 -1368
  4. package/dist/pinets.dev.cjs.map +1 -1
  5. package/dist/pinets.dev.es.js +3688 -1326
  6. package/dist/pinets.dev.es.js.map +1 -1
  7. package/dist/pinets.min.browser.js +15 -11
  8. package/dist/pinets.min.cjs +15 -11
  9. package/dist/pinets.min.es.js +5 -1
  10. package/dist/types/Context.class.d.ts +61 -15
  11. package/dist/types/PineTS.class.d.ts +11 -1
  12. package/dist/types/namespaces/Core.d.ts +1 -0
  13. package/dist/types/namespaces/array/methods/from.d.ts +1 -1
  14. package/dist/types/namespaces/request/methods/security.d.ts +1 -1
  15. package/dist/types/namespaces/request/types/barmerge.type.d.ts +7 -0
  16. package/dist/types/namespaces/request/utils/findLTFContextIdx.d.ts +1 -0
  17. package/dist/types/namespaces/ta/getters/obv.d.ts +12 -0
  18. package/dist/types/namespaces/ta/methods/accdist.d.ts +7 -0
  19. package/dist/types/namespaces/ta/methods/alma.d.ts +18 -0
  20. package/dist/types/namespaces/ta/methods/barssince.d.ts +6 -0
  21. package/dist/types/namespaces/ta/methods/bb.d.ts +17 -0
  22. package/dist/types/namespaces/ta/methods/bbw.d.ts +9 -0
  23. package/dist/types/namespaces/ta/methods/cci.d.ts +20 -0
  24. package/dist/types/namespaces/ta/methods/cmo.d.ts +17 -0
  25. package/dist/types/namespaces/ta/methods/cog.d.ts +18 -0
  26. package/dist/types/namespaces/ta/methods/correlation.d.ts +7 -0
  27. package/dist/types/namespaces/ta/methods/cross.d.ts +15 -0
  28. package/dist/types/namespaces/ta/methods/cum.d.ts +14 -0
  29. package/dist/types/namespaces/ta/methods/dmi.d.ts +24 -0
  30. package/dist/types/namespaces/ta/methods/falling.d.ts +15 -0
  31. package/dist/types/namespaces/ta/methods/highestbars.d.ts +7 -0
  32. package/dist/types/namespaces/ta/methods/iii.d.ts +7 -0
  33. package/dist/types/namespaces/ta/methods/kc.d.ts +12 -0
  34. package/dist/types/namespaces/ta/methods/kcw.d.ts +11 -0
  35. package/dist/types/namespaces/ta/methods/lowestbars.d.ts +7 -0
  36. package/dist/types/namespaces/ta/methods/macd.d.ts +18 -0
  37. package/dist/types/namespaces/ta/methods/mfi.d.ts +15 -0
  38. package/dist/types/namespaces/ta/methods/mode.d.ts +6 -0
  39. package/dist/types/namespaces/ta/methods/nvi.d.ts +10 -0
  40. package/dist/types/namespaces/ta/methods/obv.d.ts +12 -0
  41. package/dist/types/namespaces/ta/methods/percentile_linear_interpolation.d.ts +6 -0
  42. package/dist/types/namespaces/ta/methods/percentile_nearest_rank.d.ts +7 -0
  43. package/dist/types/namespaces/ta/methods/percentrank.d.ts +6 -0
  44. package/dist/types/namespaces/ta/methods/pvi.d.ts +10 -0
  45. package/dist/types/namespaces/ta/methods/pvt.d.ts +12 -0
  46. package/dist/types/namespaces/ta/methods/range.d.ts +7 -0
  47. package/dist/types/namespaces/ta/methods/rising.d.ts +15 -0
  48. package/dist/types/namespaces/ta/methods/sar.d.ts +12 -0
  49. package/dist/types/namespaces/ta/methods/stoch.d.ts +21 -0
  50. package/dist/types/namespaces/ta/methods/supertrend.d.ts +23 -0
  51. package/dist/types/namespaces/ta/methods/swma.d.ts +14 -0
  52. package/dist/types/namespaces/ta/methods/tr.d.ts +1 -0
  53. package/dist/types/namespaces/ta/methods/tsi.d.ts +17 -0
  54. package/dist/types/namespaces/ta/methods/valuewhen.d.ts +6 -0
  55. package/dist/types/namespaces/ta/methods/vwap.d.ts +14 -0
  56. package/dist/types/namespaces/ta/methods/wad.d.ts +11 -0
  57. package/dist/types/namespaces/ta/methods/wpr.d.ts +17 -0
  58. package/dist/types/namespaces/ta/methods/wvad.d.ts +7 -0
  59. package/dist/types/namespaces/ta/ta.index.d.ts +120 -5
  60. package/dist/types/transpiler/analysis/ScopeManager.d.ts +11 -0
  61. package/dist/types/transpiler/index.d.ts +4 -1
  62. package/dist/types/transpiler/transformers/InjectionTransformer.d.ts +6 -0
  63. package/dist/types/transpiler/transformers/MainTransformer.d.ts +4 -1
  64. package/dist/types/transpiler/transformers/NormalizationTransformer.d.ts +15 -0
  65. package/dist/types/transpiler/transformers/WrapperTransformer.d.ts +9 -0
  66. package/dist/types/transpiler/utils/ASTFactory.d.ts +2 -0
  67. package/package.json +1 -1
package/README.md CHANGED
@@ -28,6 +28,7 @@ PineTS is used to generate plot data, and tradingview light weight chart is used
28
28
  ## Key Features
29
29
 
30
30
  - **Pine Script Compatibility**: Supports Pine Script v5+ syntax and functionality
31
+ - **High Precision**: Aims for the same precision as Pine Script (up to the 8th digit)
31
32
  - **Time-Series Processing**: Handles historical data and series operations
32
33
  - **Technical Analysis Functions**: Comprehensive set of TA indicators and calculations
33
34
  - **Mathematical Operations**: Advanced mathematical functions and precision handling
@@ -156,6 +157,8 @@ const { result } = await pineTS.run((context) => {
156
157
 
157
158
  ## Project Goals
158
159
 
160
+ PineTS aims for **full coverage** of Pine Script functions and capabilities. The ultimate goal is to enable running **original Pine Script code directly** without manual conversion to PineTS syntax.
161
+
159
162
  - Runtime Transpiler
160
163
  - Core Pine Script functions and variables
161
164
  - Series and scope management