Code covered by the BSD License  

Highlights from
Estimation value at risk by using Exponentially Weighted Moving Averagege

5.0

5.0 | 1 rating Rate this file 20 Downloads (last 30 days) File Size: 11.7 KB File ID: #32251
image thumbnail

Estimation value at risk by using Exponentially Weighted Moving Averagege

by Ali Najjar

 

19 Jul 2011 (Updated 28 Aug 2012)

Estimating Value at Risk of portfolio by using Exponentially Weighted Moving Average

| Watch this File

File Information
Description

This file contains three m-file which estimates the Value at Risk (VaR) of portfolio composed of two stocks prices by using Exponentially Weighted Moving Average.
the main function is 'ewmaestimatevar'. For estimating VaR you should use this function. This function also sketch related diagrams at give confidence levels (two confidence levels).

MATLAB release MATLAB 7.11 (R2010b)
Tags for This File  
Everyone's Tags
ewma(2), exponentially weighted moving average, finance, statistics, value at risk, var
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
14 Mar 2012 Yang Zhao

you mentioned that "cl" is confidence level vector, could you explain what's that mean?

Updates
28 Aug 2012

This update contains example of ewmaestimatevar()Arguments, P1, P2.
Just move P1 and P2 into Workspace and for example Run following command:
[VaR violation RP]=ewmaestimatevar(P1,P2,1000,.94,[.95;.99],.5)

Contact us