[Python] How to get the ADX with pandas-ta library in Python without smoothing?

Discussão em 'Python' iniciado por Stack, Abril 24, 2025.

  1. Stack

    Stack Membro Participativo

    I need the ADX indicator in my Python code and I am using the pandas-ta library. The values given from the pandas-ta library is the smoothed version of the ADX, I need the 'raw' version.

    I have tried the ta-lib library but it is the same. On MetaTrader5 the smoothed and non-smoothed versions of this indicator is available as ADX and ADX Wilder. I need just the ADX.

    My Code:

    adx = ta.adx(data.high, data.low, data.close, length=14)

    I need the ADX indicator, not the ADX Wilder (which pandas-ta is giving me)

    Thanks!

    Continue reading...

Compartilhe esta Página