tradytics / eiten

Statistical and Algorithmic Investing Strategies for Everyone
https://www.tradytics.com/
GNU General Public License v3.0
2.76k stars 329 forks source link

Only a few stock are being taken into account #16

Open edoreld opened 4 years ago

edoreld commented 4 years ago

Command to run:

python3 portfolio_manager.py --is_test 1 --future_bars 90 --data_granularity_minutes 3600 --history_to_use all --apply_noise_filtering 1 --market_index QQQ --only_long 1 --eigen_portfolio_number 3 --stocks_file_path stocks/stocks.txt

When loading data for all stocks:

Exception No objects to concatenate

Then, I see only info about 4 stocks, even though there's 15 in my stock file.

silvavn commented 4 years ago

@edoreld The stocks loaded have to have the same length historically as the other stocks. For example, it would be good practice to have stocks from the same exchange together. If you mix for example Nasdaq and Toronto some of the stocks might not be aligned, which will make them to be ignored.

MitchellChen03 commented 2 years ago

Pretty new to this, but could you use a loop for every stock you have?