Monte Carlo Simulation, Quantitative Finance, Python, Data Science, Data Visualization.
apply the cumulative sum of each trade during the period to find the final result. # Applying the simulation on the first column in 'coins' simulation = pd.DataFrame(coins[:,0] * spy['returns'] - trading_costs).cumsum() This results in the following output: After doing that, by December 30ᵗʰ, 2022,