At the beginning of each year, given some expected gain E, the portfolio was computed by using all news articles and historic prices until the end of the previous year.
for each year, the training set in the experiment consisted of samples strictly earlier than those constituting the test set.