How can I calculate the Burke ratio?

2 visualizaciones (últimos 30 días)
Ludovica Moro
Ludovica Moro el 6 de Jun. de 2020
Comentada: David Hill el 8 de Jun. de 2020
You can find attached the formula of Burke ratio, where DDi is the i-th drawdown and n the number of DD realized over the last L trading days.
Note that I need to calculate it not over the whole period, but on the last L trading days. Thus, the Maxdrawdown function is not usefull in this case because I need ALL the realized DD, so I can squared and sum them.
  3 comentarios
Ludovica Moro
Ludovica Moro el 6 de Jun. de 2020
I have the daily price vector of an asset. The whole period is 4038 trading days, but I need to study BR on last L=5 and L=22 days.
Image Analyst
Image Analyst el 6 de Jun. de 2020
Editada: Image Analyst el 6 de Jun. de 2020
Which one of those variables (E, G, R, DD, n) is your price vector? What are the values of the other variables, and L and t also? Sorry - I'm not up on financial trading terminology.
Did you try
numerator = (EL(gt) - rf)
denominator = sqrt(sum(DD(1:L) .^ 2 / n));
BRt = numerator / denominator

Iniciar sesión para comentar.

Respuesta aceptada

David Hill
David Hill el 7 de Jun. de 2020
Editada: David Hill el 7 de Jun. de 2020
dailyRateofreturn=diff(value)./value(1:end-1);
freeReturn=.00003;%whatever you decide
maxRolling=arrayfun(@(n)max(value(1:n)),2:length(value));
dailyDrawdown=value(2:end)./maxRolling-1;
BR5=(mean(dailyRateofreturn(end-5:end))-freeReturn)/(sqrt(sum(dailyDrawdown(end-5:end).^2)/5));
  2 comentarios
Ludovica Moro
Ludovica Moro el 7 de Jun. de 2020
It works! Really thanks!
David Hill
David Hill el 8 de Jun. de 2020
You should accept answer to close it out.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Simulink Functions en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by