@@ -23,7 +23,7 @@ OakScriptJS is a simplified JavaScript/TypeScript library that provides the comp
2323Pure calculation functions matching PineScript signatures.
2424
2525``` typescript
26- import { taCore } from ' @deepentropy/ oakscriptjs' ;
26+ import {taCore } from ' oakscriptjs' ;
2727
2828const prices = [10 , 12 , 11 , 13 , 15 ];
2929const sma = taCore .sma (prices , 3 );
@@ -33,7 +33,7 @@ const sma = taCore.sma(prices, 3);
3333Lazy evaluation with operator chaining.
3434
3535``` typescript
36- import { Series } from ' @deepentropy/ oakscriptjs' ;
36+ import { Series } from ' oakscriptjs' ;
3737
3838const data = [/* bar data */ ];
3939const close = new Series (data , (bar ) => bar .close );
@@ -47,7 +47,7 @@ const change = close.sub(open);
4747Series-based wrappers for technical analysis.
4848
4949``` typescript
50- import { ta , Series } from ' @deepentropy/ oakscriptjs' ;
50+ import {ta , Series } from ' oakscriptjs' ;
5151
5252const close = new Series (data , (bar ) => bar .close );
5353const rsi = ta .rsi (close , 14 ); // Returns a Series
@@ -77,19 +77,19 @@ const rsi = ta.rsi(close, 14); // Returns a Series
7777
7878``` bash
7979# npm
80- npm install @deepentropy/ oakscriptjs
80+ npm install oakscriptjs
8181
8282# pnpm
83- pnpm add @deepentropy/ oakscriptjs
83+ pnpm add oakscriptjs
8484
8585# JSR
86- npx jsr add @deepentropy/ oakscriptjs
86+ npx jsr add oakscriptjs
8787```
8888
8989### Quick Start: Basic Calculations
9090
9191``` typescript
92- import { taCore , math } from ' @deepentropy/ oakscriptjs' ;
92+ import {taCore , math } from ' oakscriptjs' ;
9393
9494// Price data
9595const closes = [100 , 102 , 101 , 103 , 105 , 104 , 106 ];
@@ -109,7 +109,7 @@ const max = math.max(...closes);
109109The Series class enables lazy evaluation and operator chaining:
110110
111111``` typescript
112- import { Series , ta } from ' @deepentropy/ oakscriptjs' ;
112+ import {Series , ta } from ' oakscriptjs' ;
113113
114114const bars = [
115115 { time: ' 2024-01-01' , open: 100 , high: 105 , low: 99 , close: 103 },
@@ -136,7 +136,7 @@ const lastRSI = rsi.last();
136136The ` BarData ` class wraps bar arrays and tracks version changes for automatic cache invalidation:
137137
138138``` typescript
139- import { BarData , Series , ta } from ' @deepentropy/ oakscriptjs' ;
139+ import {BarData , Series , ta } from ' oakscriptjs' ;
140140
141141// Create BarData wrapper
142142const barData = new BarData (bars );
@@ -164,7 +164,7 @@ const values2 = sma.toArray(); // Fresh computation with new data
164164Complex Series expressions create closure chains that keep intermediate Series in memory. Use ` materialize() ` to break these chains:
165165
166166``` typescript
167- import { Series } from ' @deepentropy/ oakscriptjs' ;
167+ import {Series } from ' oakscriptjs' ;
168168
169169const close = Series .fromBars (bars , ' close' );
170170const open = Series .fromBars (bars , ' open' );
@@ -191,7 +191,7 @@ const result = materialized.div(low).add(volume);
191191#### Technical Analysis (` ta ` and ` taCore ` )
192192
193193``` typescript
194- import { ta , taCore } from ' @deepentropy/ oakscriptjs' ;
194+ import {ta , taCore } from ' oakscriptjs' ;
195195
196196// Core (array-based)
197197taCore .sma (priceArray , length )
@@ -219,7 +219,7 @@ ta.crossover(), ta.crossunder(), ta.cross()
219219#### Mathematics (` math ` )
220220
221221``` typescript
222- import { math } from ' @deepentropy/ oakscriptjs' ;
222+ import {math } from ' oakscriptjs' ;
223223
224224math .abs (x )
225225math .max (... values )
@@ -234,7 +234,7 @@ math.sin(x), math.cos(x), math.tan(x)
234234#### Arrays (` array ` )
235235
236236``` typescript
237- import { array } from ' @deepentropy/ oakscriptjs' ;
237+ import {array } from ' oakscriptjs' ;
238238
239239const arr = array .new_float (10 , 0 );
240240array .push (arr , 5 );
@@ -286,7 +286,7 @@ plot(bop, color=color.red)
286286
287287** Transpiled Output (Recommended):**
288288``` typescript
289- import { Series , type IndicatorResult } from ' @deepentropy/ oakscriptjs' ;
289+ import {Series , type IndicatorResult } from ' oakscriptjs' ;
290290
291291export function balanceOfPower(bars : any []): IndicatorResult {
292292 // Create Series
@@ -372,7 +372,7 @@ Series arithmetic uses method calls:
372372Every indicator function should return an ` IndicatorResult ` :
373373
374374``` typescript
375- import type { IndicatorResult } from ' @deepentropy/ oakscriptjs' ;
375+ import type {IndicatorResult } from ' oakscriptjs' ;
376376
377377export function myIndicator(bars : any [], options ? : any ): IndicatorResult {
378378 // ... calculations ...
@@ -418,7 +418,7 @@ hline(50, "Middle", color.gray)
418418
419419** Transpiled:**
420420``` typescript
421- import { Series , ta , type IndicatorResult } from ' @deepentropy/ oakscriptjs' ;
421+ import {Series , ta , type IndicatorResult } from ' oakscriptjs' ;
422422
423423export function rsiIndicator(
424424 bars : any [],
@@ -502,7 +502,7 @@ Features not in OakScriptJS (handle in transpiler):
502502#### taCore (Technical Analysis - Array-based)
503503
504504``` typescript
505- import { taCore } from ' @deepentropy/ oakscriptjs' ;
505+ import {taCore } from ' oakscriptjs' ;
506506
507507// Moving Averages
508508taCore .sma (source : number [], length : number ): number []
@@ -532,7 +532,7 @@ taCore.bb(
532532#### ta (Technical Analysis - Series-based)
533533
534534``` typescript
535- import { ta } from ' @deepentropy/ oakscriptjs' ;
535+ import {ta } from ' oakscriptjs' ;
536536
537537// All functions accept Series and return Series
538538ta .sma (source : Series , length : number ): Series
@@ -625,7 +625,7 @@ import type {
625625 HLineOptions ,
626626 FillData ,
627627 InputMetadata
628- } from ' @deepentropy/ oakscriptjs' ;
628+ } from ' oakscriptjs' ;
629629
630630interface IndicatorResult {
631631 metadata: IndicatorMetadata ;
@@ -642,7 +642,7 @@ interface IndicatorResult {
642642### Example 1: Simple Moving Average
643643
644644``` typescript
645- import { Series , ta , type IndicatorResult } from ' @deepentropy/ oakscriptjs' ;
645+ import {Series , ta , type IndicatorResult } from ' oakscriptjs' ;
646646
647647export function smaIndicator(
648648 bars : any [],
@@ -671,7 +671,7 @@ export function smaIndicator(
671671### Example 2: Balance of Power (Native Operators)
672672
673673``` typescript
674- import { Series , type IndicatorResult } from ' @deepentropy/ oakscriptjs' ;
674+ import {Series , type IndicatorResult } from ' oakscriptjs' ;
675675
676676export function bopIndicator(bars : any []): IndicatorResult {
677677 const close = new Series (bars , (bar ) => bar .close );
@@ -704,11 +704,11 @@ export function bopIndicator(bars: any[]): IndicatorResult {
704704
705705### Build Issues
706706
707- ** Problem** : ` Cannot find module '@deepentropy/ oakscriptjs' `
707+ ** Problem** : ` Cannot find module 'oakscriptjs' `
708708
709709** Solution** :
710710``` bash
711- npm install @deepentropy/ oakscriptjs
711+ npm install oakscriptjs
712712```
713713
714714** Problem** : Operators not working (` close - open ` gives error)
@@ -729,7 +729,7 @@ npm install @deepentropy/oakscriptjs
729729
730730** Solution** : Import Series type:
731731``` typescript
732- import { Series } from ' @deepentropy/ oakscriptjs' ;
732+ import { Series } from ' oakscriptjs' ;
733733```
734734
735735---
0 commit comments