I developed a numpy based ADX custom factor for pipeline that gives an exact match to talib, but it is slow.
Currently it uses for loops for Wilder smoothing of ATR, +DI, -DI, and ADX.
I'm looking for ideas to replace the for loops with something faster and more pythonic.