diff --git a/docs/wiki/Indicators-Overview.md b/docs/wiki/Indicators-Overview.md index f0b371a9..117d8dea 100644 --- a/docs/wiki/Indicators-Overview.md +++ b/docs/wiki/Indicators-Overview.md @@ -179,12 +179,13 @@ what each indicator actually computes. ## Source-of-truth files Every claim above can be checked against the source in -`D:\Coding\Wickra\crates\wickra-core\src\indicators\` — one file per -indicator. The Rust unit tests inside each module are the ground truth -for sample values. Python defaults (the `period = 14` etc. in tables -above) come from the `#[pyo3(signature = …)]` attributes in -`D:\Coding\Wickra\bindings\python\src\lib.rs`; indicators not listed -with a Python default require an explicit `period` argument. +[`crates/wickra-core/src/indicators/`](https://github.com/kingchenc/wickra/tree/main/crates/wickra-core/src/indicators) +— one file per indicator. The Rust unit tests inside each module are the +ground truth for sample values. Python defaults (the `period = 14` etc. in +tables above) come from the `#[pyo3(signature = …)]` attributes in +[`bindings/python/src/lib.rs`](https://github.com/kingchenc/wickra/blob/main/bindings/python/src/lib.rs); +indicators not listed with a Python default require an explicit `period` +argument. ## See also diff --git a/docs/wiki/indicators/trend/Indicator-Dema.md b/docs/wiki/indicators/trend/Indicator-Dema.md index f74e6c12..af88ff18 100644 --- a/docs/wiki/indicators/trend/Indicator-Dema.md +++ b/docs/wiki/indicators/trend/Indicator-Dema.md @@ -145,7 +145,7 @@ warmup_period = 9 ### Node ```javascript -const ta = require('D:/Coding/Wickra/bindings/node'); +const ta = require('wickra'); const dema = new ta.DEMA(5); const prices = Array.from({ length: 20 }, (_, i) => i + 1); console.log(dema.batch(prices)); diff --git a/docs/wiki/indicators/trend/Indicator-Ema.md b/docs/wiki/indicators/trend/Indicator-Ema.md index 16d68196..e50b8ad6 100644 --- a/docs/wiki/indicators/trend/Indicator-Ema.md +++ b/docs/wiki/indicators/trend/Indicator-Ema.md @@ -140,7 +140,7 @@ warmup_period: 3 ### Node ```javascript -const ta = require('D:/Coding/Wickra/bindings/node'); +const ta = require('wickra'); const ema = new ta.EMA(3); for (const x of [1, 2, 3, 10]) { console.log(x, '->', ema.update(x)); diff --git a/docs/wiki/indicators/trend/Indicator-Hma.md b/docs/wiki/indicators/trend/Indicator-Hma.md index 99101a9d..a1e5c34b 100644 --- a/docs/wiki/indicators/trend/Indicator-Hma.md +++ b/docs/wiki/indicators/trend/Indicator-Hma.md @@ -177,7 +177,7 @@ warmup_period (reported) = 11 ### Node ```javascript -const ta = require('D:/Coding/Wickra/bindings/node'); +const ta = require('wickra'); const hma = new ta.HMA(9); const prices = Array.from({ length: 20 }, (_, i) => i + 1); console.log(hma.batch(prices)); diff --git a/docs/wiki/indicators/trend/Indicator-Kama.md b/docs/wiki/indicators/trend/Indicator-Kama.md index dc6697c0..57033f58 100644 --- a/docs/wiki/indicators/trend/Indicator-Kama.md +++ b/docs/wiki/indicators/trend/Indicator-Kama.md @@ -169,7 +169,7 @@ warmup_period = 11 ### Node ```javascript -const ta = require('D:/Coding/Wickra/bindings/node'); +const ta = require('wickra'); const kama = new ta.KAMA(10, 2, 30); // no default constructor; pass the triple const prices = Array.from({ length: 20 }, (_, i) => i + 1); console.log(kama.batch(prices)); diff --git a/docs/wiki/indicators/trend/Indicator-Sma.md b/docs/wiki/indicators/trend/Indicator-Sma.md index bab9a9d6..13266a98 100644 --- a/docs/wiki/indicators/trend/Indicator-Sma.md +++ b/docs/wiki/indicators/trend/Indicator-Sma.md @@ -127,7 +127,7 @@ array. ### Node ```javascript -const ta = require('D:/Coding/Wickra/bindings/node'); +const ta = require('wickra'); const sma = new ta.SMA(3); console.log(sma.batch([2, 4, 6, 8, 10])); console.log('warmupPeriod:', sma.warmupPeriod()); diff --git a/docs/wiki/indicators/trend/Indicator-Tema.md b/docs/wiki/indicators/trend/Indicator-Tema.md index 52676b4a..795a098e 100644 --- a/docs/wiki/indicators/trend/Indicator-Tema.md +++ b/docs/wiki/indicators/trend/Indicator-Tema.md @@ -138,7 +138,7 @@ warmup_period = 13 ### Node ```javascript -const ta = require('D:/Coding/Wickra/bindings/node'); +const ta = require('wickra'); const tema = new ta.TEMA(5); const prices = Array.from({ length: 20 }, (_, i) => i + 1); console.log(tema.batch(prices)); diff --git a/docs/wiki/indicators/trend/Indicator-Wma.md b/docs/wiki/indicators/trend/Indicator-Wma.md index 0ba24068..236fb2e9 100644 --- a/docs/wiki/indicators/trend/Indicator-Wma.md +++ b/docs/wiki/indicators/trend/Indicator-Wma.md @@ -132,7 +132,7 @@ warmup_period = 4 ### Node ```javascript -const ta = require('D:/Coding/Wickra/bindings/node'); +const ta = require('wickra'); const wma = new ta.WMA(4); console.log(wma.batch([1, 2, 3, 4])); console.log('warmupPeriod:', wma.warmupPeriod());