I have a problem calculating VaR with the Monte Carlo Simulation.
I followed the next steps and would like know if it is a right way to calculate VaR or if I need something more?
Generate random numbers
Define Correlation Matrix
Define volatilities, drift and weights
Perform a Cholesky decomposition of the correlation matrix
Multiply random numbers by the Cholesky matrix
Multiply result of step 5 by volatility and drift
Take the exponent of results from step 6
Take log returns of step 7 results
Create the weighted portfolio returns
Calculate the VaR (use percentile function at right confidence interval)
Calculate the volatilites of your random numbers
Cross-check with analytical VaR