paris0120

Results 37 comments of paris0120

I don't think that it's publicly available. All the functions are in the core.class.

I have no idea where it goes wrong but here is my worksheet. The results with talib for dx is array([ nan, nan, nan, nan, 100. , 58.70967742, 55.64929196, 71.1993739...

test script with python h = np.array([146.59,145.74,145.7,145.47,145.12,145.26,145.27,145.25,145.01,145.13]); l = np.array([145.85,145.53,145.4,145.0,144.92,145.0,145.12,144.91,144.92,144.93]); c = np.array([146.2,145.58,145.47,145.12,145.03,145.11,145.25,144.98,144.98,145.1]); talib.ADX(h, l, c, 4)

I tracked back to DX. I can't go further because there is no function for DM and DI. The results above is for DX. For ADX it should be [null,...

Here is the working sheet: h | 146.59 | 145.74 | 145.7 | 145.47 | 145.12 | 145.26 | 145.27 | 145.25 | 145.01 | 145.13 -- | -- |...

I track the issue to dx. dx to adx is correct. Here is my code. The results are consistent with the ones from the worksheet above. https://github.com/paris0120/talib.ts/blob/dev/src/index.ts#L433

I don't apply abs there coz I don't think that it makes sense, so the result there will be negative.

trange works fine. I have the same result as talib. > I don't know Typescript.... Could you veify your `tRange()`? > > The TA-Lib's implementation (particularly used in DX) is:...

this is a library. Download my repository. run 1. npm install 2. npm run test you can find the test script in test/test.ts. you can add this for tRange test...

ATR is calculated with SMA. DI is calculated with modified ma as you suggested https://github.com/paris0120/talib.ts/blob/dev/src/index.ts#L412