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
Average Directional Index seems to be slightly off #173
Comments
I’ll take a look. Are you able to confirm that the historical quote data used in both is the same? Some providers will adjust differently for splits and dividends, which would produce slightly different results. Also, make sure you are providing at least 250 points of quote history prior to the measured date in the GetAdx call. In your example, your history should start before January 2000. This algorithm uses a convergence method that increases in precision when more history is provided; if you only provided the minimum required history before that evaluation date, precision will be off a bit. |
I did find a minor bug with the initialization value that only had small precision impacts on the initialization period values. This bug did not impact the accuracy of values after the initialization period. I also increased the minimum required history from |
This fix was implemented in v1.1.1 |
Hi Dave,
Thank you for the swift response and for taking the time to respond to my
concern. I think you are right about the data set. I got my quotes from
yahoo finance, and TradingView probably uses a different type of data
source.
Have a nice weekend,
Alex
…On Wed, Nov 11, 2020 at 7:54 PM Dave Skender ***@***.***> wrote:
This fix was implemented in v1.1.1
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#173 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGHPY355UP7S5R75EW6MU3LSPNL73ANCNFSM4TSNTCPA>
.
|
This Issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new Issue for related bugs. |
Hi Dave,
First, thank you for your contribution to this project. I am excited to find this time-saving project a couple of weeks ago.
The issue I am submitting has to do with Average Directional Index (ADX). I notice that it is somewhat off when I compare it with tradingview's ADX/DMI indicator.
For example, on 2000-11-27, the Skender ADX indicator shows
ADX=30.1245
+DI=16.898
-DI=30.579
On the same day, TradingView indicator shows
ADX=30.4113
+DI=16.9263
-DI=30.6871
Could you check if this is a bug?
Thank you,
The text was updated successfully, but these errors were encountered: