ADX programming in python

can anybody explain about ADX and how to program it  in python'

#EPAT batch 50

Hi Ajit,



The ADX indicator consists of three components basically:

  1. Positive direction indicator
  2. Negative Direction indicator
  3. Directional Indicator (DX)



    The directional index indicator is given as:




    DX = (Difference of positive and negative directional index indicator) / (sum of positive and negative directional indicator)



    If you have a few minutes, I have written a blog where I go step by step on how the ADX indicator is calculated as well as how to use it in python. You just need the OHLC data of a stock or index and you will be able to calculate the ADX indicator in no time.



    The link is as follows: https://blog.quantinsti.com/adx-indicator-python/



    Do let me know if there is still a doubt and I will be happy to resolve any queries.