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.

draw(S)
% Draw everything with default values.

function draw(S)
        
    close all;
    figure;
    stddev(S);
    figure;
    stoc(S,14,3,3);
    figure;
    movavg(S,20);
    figure;
    expavg(S,20);
    figure;
    MACD(S,16,26,9);

end

Contact us