Imported from https://github.com/MathiasKraus/FinancialDeepLearning