PROTECTED SOURCE SCRIPT
ADX and DI by MiG

This Pine Script calculates and plots the ADX (Average Directional Index) and its components, DI+ and DI-, which are part of the Directional Movement Index (DMI) system. The indicator helps traders assess trend strength and direction.
len: the period used for smoothing calculations (default 14).
th: threshold line for ADX (default 20) to visually indicate weak vs. strong trends.
True Range (TR): Measures the most extreme price movement between consecutive bars.
Directional Movement Plus (DM+): Measures upward movement; non-zero only if the current high is higher than the previous high and exceeds downward movement.
Directional Movement Minus (DM-): Measures downward movement; non-zero only if the current low is lower than the previous low and exceeds upward movement.
• DIPlus and DIMinus are the smoothed Directional Indicators (percentage form).
• DX measures the relative difference between DI+ and DI- as a percentage.
• ADX is the smoothed average of DX, representing trend strength:
• ADX > threshold → strong trend
• ADX < threshold → weak or no trend
len: the period used for smoothing calculations (default 14).
th: threshold line for ADX (default 20) to visually indicate weak vs. strong trends.
True Range (TR): Measures the most extreme price movement between consecutive bars.
Directional Movement Plus (DM+): Measures upward movement; non-zero only if the current high is higher than the previous high and exceeds downward movement.
Directional Movement Minus (DM-): Measures downward movement; non-zero only if the current low is lower than the previous low and exceeds upward movement.
• DIPlus and DIMinus are the smoothed Directional Indicators (percentage form).
• DX measures the relative difference between DI+ and DI- as a percentage.
• ADX is the smoothed average of DX, representing trend strength:
• ADX > threshold → strong trend
• ADX < threshold → weak or no trend
Geschütztes Skript
Dieses Script ist als Closed-Source veröffentlicht. Sie können es kostenlos und ohne Einschränkungen verwenden – erfahren Sie hier mehr.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Geschütztes Skript
Dieses Script ist als Closed-Source veröffentlicht. Sie können es kostenlos und ohne Einschränkungen verwenden – erfahren Sie hier mehr.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.