Code covered by the BSD License  

Highlights from
Trading strategy back tester

image thumbnail
from Trading strategy back tester by Donny Lee
This program shows the profit and lost of using different trading strategies on Singapore stocks.

whatisname(na)
function retname = whatisname(na)

retname = 'No Name';

switch na
   
    case {'x1'}
        retname = 'UOL';
    case {'x2'}
        retname = 'OSIM';    
    case {'x3'}
        retname = 'WILMAR';
    case {'x4'}
        retname = 'CREATIVE';
    case {'x5'}
        retname = 'KIMENG';
    case {'x6'}
        retname = 'UOB';
    case {'x7'}
        retname = 'SIA';
    case {'x8'}
        retname = 'F&N';
    case {'x9'}
        retname = 'KEPCORP';
    case {'x10'}
        retname = 'STARHUB';
    case {'x11'}
        retname = 'DBS';    
    case {'x12'}
        retname = 'SPH';    
          
end

end

Contact us