Code covered by the BSD License  

Highlights from
Automated Trading with MATLAB - 2012

image thumbnail

Automated Trading with MATLAB - 2012


Stuart Kozola (view profile)


31 Aug 2012 (Updated )

Files from the Automated Trading webinar showing X_Trader and QuickFIX/J integration.

generateSpacedInts(lb, ub, number)
function spacedInts = generateSpacedInts(lb, ub, number)
%GENERATESPACEDINTS Generates approximately NUMBER integers between LB and
% UB that are evenly spaced on a logarithmic scale.  It is "approximately"
% NUMBER because at the lower end of the series, rounding to the nearest
% integer may cause duplicates that are then weeded out.

% Copyright 2010-2012, The MathWorks, Inc.

spacedInts = unique(round(logspace(log10(lb), log10(ub), number)));

Contact us