[R-SIG-Finance] Test data

BBands bbands at gmail.com
Fri Sep 30 00:00:09 CEST 2011


On Tue, Sep 27, 2011 at 2:14 PM, Worik Stanton <worik.stanton at gmail.com> wrote:
> I am about to generate some data to test some technical analysis functions.
>
> I expect I am not the first!  Has anybody some advice about where to look
> for some data sets?
>
> What I need, naturally,  is pairs of series, input and output.  I expect I
> can roll my own without too much difficulty but...

In developing indicators and technical methods it is very helpful to
feed models various synthetic data streams. I have a library of these
and will discuss a few that I use here.

1. Instantaneous change. The is a dead simple series, but it can be
amazingly informative. Mine runs at 1 and then jumps to 2. You might
be surprised at the results you get, especially if any form of
advanced smoothing is used.

2. Sine, triangle, saw tooth and square waves of various periodicities.

3. Idealized typical technical patterns, head and shoulders, double
bottoms and tops, wedges, simple reversals and the like.

4. Cyclically varying volatility.

5. Most of the above coupled with trends, say  plus or minus 10%
annualized growth rates.

The ideal is of course to torture test transforms so you will know
what to expect from them in evolving market conditions. This is
especially helpful in avoiding signals that are artifacts of your
transforms rather than of the data. Try plotting 20 period, 2 standard
deviation Bollinger Bands with 10, 20, 30 and 40 period square waves.

Best,

    John



More information about the R-SIG-Finance mailing list