public TradeExecutor(final double portfolioValue, final TradeStrategyFactory tradeStrategyFactory) { this.portfolioValue = portfolioValue; this.initialPortfolioValue = portfolioValue; this.timeSeries = tradeStrategyFactory.getTimeSeries(); this.tradeStrategyFactory = tradeStrategyFactory; }