No BSD License  

Highlights from
A baby trading system

Be the first to rate this file! 20 Downloads (last 30 days) File Size: 51.66 KB File ID: #18836
image thumbnail

A baby trading system

by Dimitri Shvorob

 

19 Feb 2008 (Updated 20 Feb 2008)

(No, we don't trade babies!)

| Watch this File

File Information
Description

..but build a primitive, stylized automated trading system operated by a fixed-rate timer and handling retrieval, storage and analysis of data; a 'strategy' guides rebalancing the portfolio at each iteration, and basic output is displayed in a front-end GUI.

The code may help one think about the technical requirements that a real trading system has to meet. It may also be retooled for one's own data-retrieval-storage-and-dynamic-GUI-display exercise. (An OOP re-design would be a clear improvement).

PS. The 'strategy', of long-short variety, focuses on choosing, at each timer-triggered 'epoch', five stocks with the largest (simulated) next-period return, and five with lowest. Choice is driven by simple interpolation, with a moving average calculated for individual return series. Epochs 1-3 are used for 'training', i.e. to get the initial averages.

MATLAB release MATLAB 7.5 (R2007b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
finance Dimitri Shvorob 22 Oct 2008 09:49:46
modeling Dimitri Shvorob 22 Oct 2008 09:49:46
analysis Dimitri Shvorob 22 Oct 2008 09:49:46
silly time waste Dimitri Shvorob 22 Oct 2008 09:49:46
automated trading Dimitri Shvorob 22 Oct 2008 09:49:46
fixedrate Dimitri Shvorob 22 Oct 2008 09:49:46
handling Dimitri Shvorob 22 Oct 2008 09:49:46
storage Dimitri Shvorob 22 Oct 2008 09:49:46
fi Dimitri Shvorob 22 Oct 2008 09:49:46

Contact us at files@mathworks.com