1.. Install python3
$ brew install python2.. Install python packages
$  pip3 install -r requirements.txtOnly 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.pyThan File -> open (for instance AMD.csv ) and press Calculate  button