powered by
DrawDown(x)
## construct a series ## x <- rnorm(100) + 10 ## calculate drawdown ## DrawDown(x)
Run the code above in your browser using DataLab