Code covered by the BSD License  

Highlights from
A simple CPPI strategy in MATLAB

image thumbnail
from A simple CPPI strategy in MATLAB by Vincent Leclercq
Backtesting of a CPPI strategy

SimpleXlsReader(filename);
function  [Prices,NumericDates,StartDate,EndDate] = SimpleXlsReader(filename);

[Prices,txtdata] = xlsread(filename);
NumericDates = flipud(datenum(txtdata(:,1),'dd/mm/yyyy'));
Prices = flipud(Prices(:,1));
StartDate = NumericDates(1);
EndDate   = NumericDates(end);

Contact us at files@mathworks.com