1.. Install python3
$ brew install python
2.. Install python packages
$ pip3 install -r requirements.txt
Only if you want to fetch history data from IB:
1.. Install IB Gateway from https://www.interactivebrokers.co.uk/en/index.php?f=16896
2.. Before run open the IB Gateway and log in your IB account
$ python3 chart.py
Than File -> open (for instance AMD.csv ) and press Calculate
button