New answers tagged

0

I was looking for someone else's answer to compare with mine. Vectorization is clearly the way to go. Question is, how do we vectorize this problem. Below is a commented function that accomplishes this in python using numpy and pandas. import numpy as np import pandas as pd def max_dd(returns, rolling=None): # make into a DataFrame so that it is a ...



Top 50 recent answers are included