machine-learning-for-trading
                                
                                
                                
                                    machine-learning-for-trading copied to clipboard
                            
                            
                            
                        Code for Machine Learning for Algorithmic Trading, 2nd edition.
Does anyone has an issue on chapter 20 "20_autoencoders_for_conditional_risk_factors/04_build_us_stock_dataset.ipynb" with the variable "yf-symbols = yf.Tickers(all_symbols) ? I have got this error : AttributeError: 'float' object has no attribute 'upper' 
**Describe the bug** When running ```file_name = may_be_download(urljoin(FTP_URL, SOURCE_FILE))``` First, there isnt a variable called FTP_URL, and when changed to HTTPS_URL, you get an invalid URL error. This doesnt work:...
This PR fixes minor things regarding connection to Nasdaq ITCH sample data storage.
I cannot find the data.py script mentioned in the section "Vectorized versus event driven backtesting". Can someone provide it ?
**Describe the bug** In create_stooq_data.ipynb Cannot Add symbols. This line `df = pd.read_csv(f'https://stooq.com/db/l/?g={code}', sep=' ').apply(lambda x: x.str.strip()) ` raises an error EmptyDataError: No columns to parse from file Basically, it...
**Describe the bug** The creation of a Box in trading_env.py:242 is failung. The Datatype of the parameters is not correct. It has to be an nd_array. Steps to reproduce the...
04_q_learning_for_trading -> experience_replay(self) --> predict q values gives shape mismatch error
### Error: This line of code: q_values[[self.idx, actions]] = targets Gives an error: Exception has occurred: ValueError shape mismatch: value array of shape (4096,) could not be broadcast to indexing...
**Describe the bug** The installation of the python packages by means of the ml4t.yml file is failing. I am getting the error: Encountered problems while solving: - package numpy-1.19.1-py36hbc911f0_0 requires...
best_alpha = ridge_scores.groupby('alpha').ic.mean().idxmax() fig, axes = plt.subplots(ncols=2, figsize=(15, 5)) plot_ic_distribution(ridge_scores[ridge_scores.alpha == best_alpha], ax=axes[0]) axes[0].set_title('Daily Information Coefficients') top_coeffs = ridge_coeffs.loc[best_alpha].abs().sort_values().head(10).index #I think there may be some error top_coeffs.tolist() ridge_coeffs.loc[best_alpha, top_coeffs].sort_values().plot.barh(ax=axes[1], title='Top...
**Describe the bug** A brief description of the bug and in which notebook/script it lives. In the notebook located at this issue's title, pandas.datareader for yahoo finance is broken. Changing...