andre_007

TrendIndicators

andre_007 Mis à jour   
Library "TrendIndicators"
This is a library of 'Trend Indicators'.
It aims to facilitate the grouping of this category of indicators, and also offer the customized supply of
the source, not being restricted to just the closing price.

Indicators (this is a work in progress):

1. Absolute DI (Directional Moviment Index) (Difference between DI+ and DI-).
Used in 'DMI Stochastic Extreme' by Barbara Star.
2. DMI

DI_Abs(lengthDI, smoothDI, typeMA, lengthMA)
  @description Absolute DI (Directional Moviment Index).
Used in 'DMI Stochastic Extreme' by Barbara Star.
Difference between DI+ and DI-
  Parameters:
    lengthDI: (int) Length of DI+/DI-
    smoothDI: (bool) Sets whether absolute DI should be smoothed
    typeMA: (int) Type of moving average of smoothing
    lengthMA: (int) Length for moving average of smoothing
  Returns: (float) Absolute value of DI

dmi(diLength, adxSmoothing)
  @description DMI (Directional Movement Index)
Same as ta.dmi()
  Parameters:
    diLength: (int) Length of DI+/DI-
    adxSmoothing: (int) ADX Smoothing
  Returns: Tuple of three DMI series: Positive Directional
Movement (+DI), Negative Directional Movement (-DI) and Average Directional Movement Index (ADX).

dmi(source, diLength, adxSmoothing)
  @description DMI (Directional Movement Index)
Customized version of ta.dmi(), with custom source
  Parameters:
    source: (float) Source for DI+/DI-
    diLength: (int) Length of DI+/DI-
    adxSmoothing: (int) ADX Smoothing
  Returns: Tuple of three DMI series: Positive Directional
Movement (+DI), Negative Directional Movement (-DI) and Average Directional Movement Index (ADX).
Notes de version:
v2
New overloaded function:
Absolute DI (Directional Moviment Index) with custom source.
Notes de version:
v3
Minor fix

To contribute to my work, I accept cryptocurrency donations.
⚡Bitcoin Lightning Network: forwardocean64@walletofsatoshi.com
🟠Bitcoin: bc1qv0j28wjsg6l8fdkphkmgfz4f55xpph893q0pdh
🔵Litecoin: ltc1q4lssqlf6lnmpe4w7npdl5ws2uamm4v5zxwmf5j
Bibliothèque Pine

Dans le véritable esprit de TradingView, l'auteur a publié ce code Pine en tant que bibliothèque open-source afin que d'autres programmeurs Pine de notre communauté puissent le réutiliser. Bravo à l'auteur ! Vous pouvez utiliser cette bibliothèque à titre privé ou dans d'autres publications open-source, mais la réutilisation de ce code dans une publication est régie par notre Règlement.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.

Vous voulez utiliser cette bibliothèque?

Copiez le texte dans le presse-papiers et collez-le dans votre script.