Code covered by the BSD License  

Highlights from
Trading strategy back tester

image thumbnail

Trading strategy back tester

by

 

09 Mar 2011 (Updated )

This program shows the profit and lost of using different trading strategies on Singapore stocks.

runCSV.m
% This program runs the CSVconvert. It takes the current directory, browse
% the files, creates a string, and then have that string be the input of
% the CSVconvert() function.

clear namestring;
namestring = '';
directory = dir;
for (i = 1:length(directory))
    if (strfind(directory(i).name,'.csv') > 0)
        namestring = strcat(namestring,directory(i).name,'|'); 
    end
end
%namestring(length(namestring)) = [];
%namestring
length(strfind(namestring,'|'))
CSVconvert(namestring);

Contact us