yacoubb / stock-trading-ml

A stock trading bot that uses machine learning to make price predictions.
GNU General Public License v3.0
612 stars 254 forks source link

NameError: name 'MSFT_daily' is not defined #17

Open Eccedustin opened 4 years ago

Eccedustin commented 4 years ago

I get this error when running the basic_model.py:

File "basic_model.py", line 20, in ohlvchistories, , next_day_open_values, unscaled_y, y_normaliser = MSFT_daily.csv NameError: name 'MSFT_daily' is not defined

Can anyone advise what the issue is? I have already extracted the MSFT_daily.csv to the project folder.

linuxdebian commented 3 years ago

Check line number 58 in the file "save_data_to_csv.py"

change from : data.tocsv(f'./Stockcsvs/{symbol}{time_window}.csv') to : data.tocsv(f'{symbol}{time_window}.csv')