Rank: 25572 based on 0 downloads (last 30 days) and 0 file submitted
photo

Philip

E-mail

Personal Profile:

 

Watch this Author's files

 

Comments and Ratings by Philip
Updated File Comments Rating
16 Mar 2011 Trading strategy back tester This program shows the profit and lost of using different trading strategies on Singapore stocks. Author: Donny Lee

Hello Donny,
I found your program and tested it out.

Initially I had a problem with readdata when I clicked on execute after selecting an input CSV file on the first screen. Matlab returned the following error:

??? Undefined function or method 'readdata' for input arguments of type
'char'.

Error in ==> CSVconvert>execute at 126
[TheData TheName] = readdata(tempname);

??? Error while evaluating uicontrol Callback

As a work around, I copied the contents of TradingStrat into the CSV folder. This seemed to work.

Then, while using your STE.csv file:

I found that if I removed all data after 6/11/10 15:32, The data range is incorrectly displayed as 2/11/10 to 6/10/10.
If I add anymore data points from 6/11/10 after 15:32, the range is fine.
I found that if I removed all data after 6/10/10 15:36, The data range is incorrectly displayed as 2/11/10 to 0/69/10
(which I assume is a formatting error combined with the incorrect date). If I add anymore data points from 6/10/10 after 15:36, the range is fine.
I found that if I removed all data after 6/09/10 15:35, The data range is incorrectly displayed as 2/11/10 to 0/68/10.
If I add anymore data points from 6/09/10 after 15:35, the range is fine (although there is still the formatting error of 0/69/10).

In conclusion, it seems as though the correct day is not registered until some time after 15:30pm. Any ideas?

I have been using matlab for one day so unfortunately I do not have the knowledge to fix these errors! Any input you could provide would be greatly appreciated.
Thanks again for posting this program.

Contact us