Allow loading data from file in macd.py