in Search

mean reversion?

Last post 05-23-2009, 11:22 by jhughey. 3 replies.
Sort Posts: Previous Next
  •  05-14-2009, 13:47 29717

    mean reversion?

    I have recently read an interesting article in Futures Magazine about the existence (or lack thereof) of mean reversion in stocks.  Under the authors' apparent conclusion that there is a significant degree of autocorrelation in the SPX with a one-day lookback period, they suggest a simple trading system where one would buy at close if close<open and sell at close if close>open.

    Further looking into the mean reversion assumption, I tested (with optimization - sorry) the following system on SPY from 3/12/1997 to 5/8/2009, including some long-term trend filter:

    LE: ref(c<ref(O,-8) and l>mov(c,282,e),-1)

    LX: ref(c>ref(O,-1) or l<mov(c,282,e),-1)

    SE: ref(c>ref(O,-1) and h<mov(c,282,e),-1)

    SX: ref(c<ref(O,-8) or l>mov(c,282,e),-1)

    With the following parameters:

    Interest 0%

    Margin 3%

    100% available equity

    Position Limit 1

    Long Initial 100%

    Long Maintenance 0%

    Short Initial 200%

    Short Maintenance 101%

    Commissions $10

    Realistic Market Price No

    Delay to Open 0

    All trades at Close

     

    The results stats look good and the equity curve almost improbably good.  Would anybody care to post comments on this system?  Is it realistic from a practical point of view?

    Many thanks.

    ZigZag

  •  05-17-2009, 20:52 29743 in reply to 29717

    Re: mean reversion?

    Can you use Ref() like that? I get the same results but I'll rewrite it to read:
    "Do this today" if "Ref(your stuff) is true" to see if I get similar results.
  •  05-22-2009, 12:52 29770 in reply to 29743

    Re: mean reversion?

    tks for your reply johnl

    As far as I understand, REF may be used that way.  Would be curious to see your suggested code.

    I am wondering if anybody bothered to run the system on daily SPY and if so, what are his/her thoughts?

    More generally, does anybody have a system that attempts to exploit the existence (or lack thereof) of mean reversion in the stock market?  Or any ideas?

    This theme is very much in vogue given the demise of the mean reversion models widely used by hedge funds going into the Great Bust of 2008.

  •  05-23-2009, 11:22 29772 in reply to 29770

    Re: Mean Reversion System Feedback

    Hi Zigzag,

    If you want more feedback on the mean reversion system, may I suggest you might try posting it in the Advanced Coding Techniques Forum.   While I understand the math behind the concept, this topic seems a bit advanced for Basic Coding Techniques.

    Regards,

    Joe
View as RSS news feed in XML