Calculates Historical Value at Risk for a given portfolio of returns.
confidence_level = 0.95;
plot_flag = true;
VAR_hist = computeHistoricalVaR(returns,confidence_level,plot_flag)
thanks for this nice contribution.
Thank you very much!!
Hi, thanks for the contribution. I have one question about the plotting of historical VaR. Since we don't use a normal fit here, it is obviously unreasonable that the y-axis still shows the normal fit number, how can I make y-axis the frequency of the data?
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.