Code covered by the BSD License
 CSVconvert(thelist)This script reads the current directory for .csv files.
 IndBol(s)We set the default variables.
 IndMA(s)We set the default variables.
 IndMACD(s)This function plots the Heads Up Display of a Stochastic Indicator.
 IndStoc(s)This function plots the Heads Up Display of a Stochastic Indicator.
 MACD(s,x,y,w)It plots the moving average of a stock.
 MACDcand(val,t,col)This function will draw a candlestick.
 MACDdisplay(s,x1,x2,x3)This function plots the Heads Up Display of a Stochastic Indicator.
 RSI(stock)This m.file is a function that plots the candlestick diagram and the RSI
 StocChart(look,x,y,ent,ex...UOL Box.
 StocGUI(x1,x2,x3,x4,x5,x6...This program opens up the main page of our "Stochastic Indicator"
 cand(o,h,l,c,t,col)This function will draw a candlestick.
 cand2(ourData,period)This plots the candlestick graph for a certain stock, at the same time
 contCSV(filename)Input a CSV file, make it continuous, and then output another CSV file.
 distance(A,vi,vj);distance computes the distance between 2 vertices, vi and vj. Input
 draw(S)Draw everything with default values.
 draw2(S)This draws the main display, showing three indicators  Bellinger,
 drawcand(s)This is a function which uses the candlestick function and draw the ohlc
 drawcand2(s)This is a function which uses the candlestick function and draw the ohlc
 drawcandMACD(s,bsmat,x,y,w)This is a function which uses the candlestick function and draw the ohlc
 drawcandstoc(s,bsmat)This is a function which uses the candlestick function and draw the ohlc
 expavg(s,period)It plots the exponential moving average of a stock.
 mainGUI(one,two,three,fou...This MATLAB script creatives the main GUI for selecting our stocks.
 mainwindow(onestock,ind1,...This is the main display for the stock we choose.
 min2time(time,add)Function to add minutes to a time.
 mindiff(time1,time2)A function to calculate the difference in minutes between two 24hour
 movavg(s,day)It plots the moving average of a stock.
 readdata(filestring)This function will read a CSV file downloaded from Yahoo! data.
 readdata(filestring)This function will read a CSV file downloaded from Yahoo! data.
 stddev(s)It plots the standard deviation of a stock.
 stoc(s,look,x,y,ent,ext1,...It plots the stochastic indicator of a stock.
 stoccalc(s,look,x,y,ent,e...This program takes in the following variables
 stoccalcmat(s,look,w1,w2,...This function takes a stock and makes a 3D plot of the profit and loss
 stocdisplay(s,look,x,y,en...This function plots the Heads Up Display of a Stochastic Indicator.
 stocdisplay2(s)This function plots the Heads Up Display of a Stochastic Indicator.
 stocopt(stock)This function will use the stochastic indicator and find the variables
 textxx1(justtake)We test. We get an array of strings.
 whatisname(na)
 writetofile(Data,name,fil...We take in the matrix called Data and write it to a file called
 draw3.m
 exe.m
 getdatamat.m
 graphtest.m
 run.m
 runCSV.mThis program runs the CSVconvert. It takes the current directory, browse
 runGUI.m
 testxx2.m
 writetest.m

View all files
Trading strategy back tester
by
Donny Lee
09 Mar 2011
(Updated
30 Mar 2011)
This program shows the profit and lost of using different trading strategies on Singapore stocks.

exe.m 
close all;
mainGUI(CREATIVE,DBS,FandN,KEPCORP,KIMENG,OSIM,SIA,SPH,STARHUB,UOB,UOL,WILMAR);


Contact us