Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use different input types #1

Closed
pennyfx opened this issue Mar 11, 2013 · 1 comment
Closed

How to use different input types #1

pennyfx opened this issue Mar 11, 2013 · 1 comment

Comments

@pennyfx
Copy link
Contributor

pennyfx commented Mar 11, 2013

You have an example for ADX, which uses inPriceOHLC, but how does inReal work? I tried passing "real":[ ], but that results in this error.

{ error: 'First argument must contain \'%s\' field' }

@oransel
Copy link
Owner

oransel commented Mar 11, 2013

The inputs array defined in the explain comes from the underlying technical analysis library used. For ADX, it should be reporting 'inPriceHLC' for inputs. This indicates that the function needs High, Low and Close prices. Once the calculations are completed, it returns array of Real numbers, as indicated in the outputs parameter.

A working example with all the parameters can be found at https://github.com/oransel/node-talib/blob/master/examples/adx.js

@oransel oransel closed this as completed Mar 11, 2013
garymathews pushed a commit to garymathews/node-talib that referenced this issue Apr 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants