Code covered by the BSD License  

Highlights from
Algorithmic Trading with MATLAB - 2009 update

5.0

5.0 | 7 ratings Rate this file 66 Downloads (last 30 days) File Size: 3.19 MB File ID: #24320
image thumbnail

Algorithmic Trading with MATLAB - 2009 update

by Michael Weidman

 

01 Jun 2009

M-file scripts and Simulink models from webinar on 28 May 2009

| Watch this File

File Information
Description

These are the files and some of the data that I used in my recent webinar on Algorithmic Trading. Data has been shortened for size reasons. Included are:
MARISA
Nearest Neighbour model
Trailing stop-loss code
an illustration of Takens Theorem

Also included are Simulink models showing:
Moving Average crossover model
Simple tracking of the FTSE 100 - intro to basket trading
A bollinger band model using Stateflow
A simple market making system based on a paper by Sanmay Das

Required Products Financial Toolbox
DSP System Toolbox
Simulink
Stateflow
MATLAB release MATLAB 7.8 (R2009a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (16)
01 Jul 2009 Rob

Please post the Webinar video. Your last one was great.

02 Jul 2009 Aly Kassam

hi Rob

the webinar is available here:

http://www.mathworks.co.uk/company/events/webinars/wbnr34139.html?id=34139&p1=523845973&p2=523845982

I hope you enjoy it, and thanks for the comments.

aly

21 Jul 2009 Daronne Bonneau

Hi Aly,

Can Matlab connect to TTAPI (trading technologies) ?

Thanks

14 Aug 2009 Nick

does itwork properly and what's the return you make with this?

25 Sep 2009 Ted Teng  
21 Oct 2009 fan

thanks aly, your are really kind and selflessness to share all this to us. i wonder if you could tell us your new contact way/

my email is fanpeng@hotmail.com

18 Nov 2009 Roji

Dear Aly,

Thanks for this great work. Though, my fault, running callnnpiter with GBPdata1sShort, results are different as in the webinar. The PnL graph shows different (cummulative losses instead of continuous profits). Does someone know why?

19 Nov 2009 Roji  
20 Nov 2009 Roji

Now I see... it does not use transaction costs: we sholud use:

pnl = ([0;x(2:end).*sig2(1:end-1)]);

instead of:

pnl = ([0;x(2:end).*sig2(1:end-1)-abs(diff(sig2))*0.000028]);

Wasn't it?

Thanks a lot

29 Jul 2010 Ankur Dani

In strategyAnalysis.m , what does its parameters (t,p,pos,th,data(:,4)) stand for? Its giving me errors for undefined parameters?
Is there any other way to run this code as the above variables does nt seem to be present in the variable window.
Can these parameters be externally set n how do we set them ?

30 Aug 2010 Niall  
15 Oct 2010 Deniz Graf  
15 Oct 2010 Deniz Graf

sorry .. was just reading the comments and came to the stars, then it made a submission .. of course 5 stars, great work and sorry

15 Oct 2010 Deniz Graf

i'm playin around with the nnpiter function .. can anybody explain why the results vary from run to run (number of trades) and why i get completly different results if i change the parfor loop into a for loop?

03 Jan 2011 Adam

I tried the 'callnnpiter' with parfor ...loop and for ... loop, and got quite different results. I then checked the nnpiter.m. and found it rely on the order of the loop (So parfor cannot be used). Is this a bug?

14 Feb 2012 Qipeng

I recently came across your webinar on Algorithmic Trading in 2009 and it is a great one. However for the " simple market making system based on a paper by Sanmay Das" part, I am wondering which paper you are refering to and it seems that this system is not about market making but a directional bet system. Finally, would you please provide more resource on the code "callnnpiter" such as relevant papers? I really appreciate it and thank you in advance!

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
algorithmic trading Aly Kassam 09 Jun 2009 16:14:15
high frequency Aly Kassam 09 Jun 2009 16:14:15
market making Aly Kassam 09 Jun 2009 16:14:15
bollinger bands Aly Kassam 09 Jun 2009 16:14:15
systematic trading Aly Kassam 09 Jun 2009 16:14:15
finance Aly Kassam 09 Jun 2009 16:14:15
simulation Aly Kassam 09 Jun 2009 16:14:15
signal processing Aly Kassam 09 Jun 2009 16:14:15
simulink Aly Kassam 09 Jun 2009 16:14:15
algorithmic trading Benjamin 26 Jul 2009 11:06:35
finance brian Murray 20 Aug 2009 15:26:52
market making John 27 Aug 2009 02:07:03
algorithmic trading Trim R 12 Sep 2009 23:08:25
algorithmic trading Rei 29 Oct 2009 04:25:49
gui André Im Thurn 23 Nov 2009 09:36:23
high frequency Christian 24 Feb 2010 14:48:02
algorithmic trading abdelali zahi 11 Mar 2010 09:36:42
algorithmic trading Robert 13 Apr 2010 18:12:13
algorithmic trading Doru 18 Jun 2010 16:30:43
algorithmic trading Niall 30 Aug 2010 13:33:06
algorithmic trading Daniel Sutoyo 15 Sep 2010 12:05:14
high frequency Dhari 02 Nov 2010 05:33:35
algorithmic trading Taras G 15 Nov 2010 10:56:04
nearest neighbour Adam 03 Jan 2011 03:20:09
algorithmic trading Alexander Efremov 10 Feb 2011 10:26:47
algorithmic trading George 08 Mar 2011 00:32:29
algorithmic trading King's College London 28 Jul 2011 12:05:31
algorithmic trading Daniel 03 Aug 2011 22:32:06
algorithmic trading Kevin Y. Qsoft 23 Aug 2011 10:25:20
algorithmic trading Yared 03 Sep 2011 20:47:16
algorithmic trading Anatoly 16 Oct 2011 20:11:48

Contact us at files@mathworks.com