Open iSkywalker168 opened 4 days ago
I need to come back to ADX, i have some differences in first hundred or so readings, I couldn't pinpoint the issue. I think part of the issue is ADX in pandas_ta uses RMA, which does not calculate accurately, and with ADX using it multiple times the difference gets amplified.
as you can see, tulipy, talib, pandas_ta produce different ADX value at index 32.
it seems, talib and pandas_ta got very close ADX value, and I try to calculate ADX with formula from https://en.wikipedia.org/wiki/Average_directional_movement_index
and got ADX at index 31 for 9.41588407 which is very close to talib and pandas_ta. but not use whether my calculation is correct, do you have any ideas?
here is my testing code(need to download the attachment):
DOGE
FDUSD
5m`pandas_ta.zipand here is my own ADX calculation code: