Code covered by the BSD License  

Highlights from
Algorithmic Trading with MATLAB - 2010

image thumbnail

Algorithmic Trading with MATLAB - 2010

by

 

22 Nov 2010 (Updated )

Files from the November 18, 2010 webinar.

wprFun(x,data,scaling,cost)
function sh = wprFun(x,data,scaling,cost)
% WPR wrapper
%%
% Copyright 2010, The MathWorks, Inc.
% All rights reserved.% define wpr to accept vectorized inputs and return only sharpe ratio

row = size(x,1);
sh = zeros(row,1);
parfor i = 1:row
    [~,~,sh(i)] = wpr(data,x(i,1),scaling,cost);
end

Contact us