zmm20

ADX and DI (Average Directional Index) - CORRECT FORMULA

צפיות ‎3965‎
400
3965 9
So... the popular version of "ADX and DI" shown on tradingview by masanakamura uses some wacky and incorrect formula for DI and uses SMA instead of the Wilder's MA that ADX/DI is supposed to use, and doesn't give the correct ADX and DI values. The Tradingview "Average Directional Index" uses the correct calculation but doesn't show DI+ and DI-. So, here it is with the DI+ and DI- visible. Enjoy!
הסר מסקריפטים מועדפים הוסף לסקריפטים מועדפים
For those unaware, TradingView provides most of the common indicators with viewable source. If you go to Pine Editor and click there is a drop down list containing each of them. Click "Directional Movement Index" for example, and you will see that indicator's source loaded in the Pine Editor window. You can then click if you wish to save a copy and/or click if you wish to load it. Once loaded, you will see it contains both ADX and DI. The "Directional Movement Index" indicator source provided by TradingView in Pine Editor's list exactly matches with the readings of the author's source displayed above, only difference being that TradingView's script is set for higher precision.

When you encounter an indicator from the public library that seems off, it is useful to check and compare from this alternate repository accessed from the Pine Editor.
השב
allanster allanster
^ Typo in 2nd sentence above, missing the word -> "If you go to Pine Editor and click there is a drop down list containing each of them."
השב
allanster allanster
Apparently TradingView is removing anything I type with "bracket word bracket" so one more time with quotes instead of brackets lol...

For those unaware, TradingView provides most of the common indicators with viewable source. If you go to Pine Editor and click "New" there is a drop down list containing each of them. Click "Directional Movement Index" for example, and you will see that indicator's source loaded in the Pine Editor window. You can then click "Save" if you wish to save a copy and/or click "Add to Chart" if you wish to load it. Once loaded, you will see it contains both ADX and DI. The "Directional Movement Index" indicator source provided by TradingView in Pine Editor's "New" list exactly matches with the readings of the author's source displayed above, only difference being that TradingView's script is set for higher precision.

When you encounter an indicator from the public library that seems off, it is useful to check and compare from this alternate repository accessed from the Pine Editor.
השב
thanks man, will try an adaptation for this, good script
השב
wow, simply outstanding. thank you
השב
Cool man, thank you !
השב
thanx a lot dude!
השב
thanks a lot !
השב
thanks for the correct formula bro
השב
בית סורק מניות סורק מט"ח סורק מטבעות-קריפטו יומן כלכלי סדרות איך זה עובד‏ תכונות גרף מחירון חוקי הבית מנהלים כלים לאתרים וברוקרים יישומונים פתרונות גרפיים ספריית גרפים קלי משקל מרכז תמיכה הפנה חבר בקשת פונקציה בלוג וחדשות שאלות נפוצות ויקי טוויטר‏
פרופיל הגדרות פרופיל חשבון וחיוב הפנה חבר לשוניות התמיכה שלי מרכז תמיכה רעיונות שפורסמו עוקבים עוקב אחרי... הודעות פרטיות צ'אט התנתק