Interesting Strategy, Do Moon Cycles affect the markets?

Discussion in 'Strategy Building' started by B The House, Jul 21, 2015.

  1. Most people don't have your courage to think for themselves and go their own way, so they comfort themselves by clinging to other, similar minds, and complaining about how the markets are unfair. I have to read the article more closely, it's been a very busy week.

    Thanks,

    Brian
     
    #11     Jul 21, 2015
  2. Apparently the link to my blog was free advertising....so I'm posting the article here to read.

    Many moons ago....(see what I did there) when I was in my infancy as a trader, I was a regular in a chat room of what used to be pivotfarm where they had a free tool in beta testing that was basically an audio "tape reader." It would make popcorn sounds when big selling pressure was hitting the tape, and crickets when big buying pressure was hitting the tape...anyways there was quite the assortment of traders in the room, & I learned a great deal from many of them. Perhaps one of the greatest lessons that I learned in that room, that I can unequivocally say is one of few truths of making a living via the markets, is that there is no "right or wrong" way to extract money from the markets. I see it all the time on twitter and elsewhere where traders or money managers think that there is only 1 way to make money in the market, which couldn't be further from the truth. One of the classic debates is the merits of fundamental analysis vs. technical analysis....both camps can argue to the death that one is fubar, and the other is the "only correct way to make money"...but there are tons of guys on both sides that have done just fine for themselves.
    So to circle back to the chat room, I remember there was this one trader in there (her name escapes me) but I witnessed her extract money from the markets at an amazing clip, in real time, using nothing but time cycles & moon cycles, all of which are considered nonsense by a large group of traders and investors. She certainly made a believer out of me (keep in mind this was 2008), so I decided to go back and test if there was in fact an edge to be had in trading moon cycles or if my eyes had been deceiving me all those years ago.

    Theory: From what I had remembered, the main thesis was to buy a full moon, & sell on the following new moon. So lets see what that looks like in an equity curve....for testing, we will use a flat 50k of buying power per trade rounded down to the nearest 50 shares. We will be testing this idea on the SPY for the last 20 years, I'm not including any slippage or commissions as this is just a thought experiment & not a complete trading system. One last note is that my coding is not exactly perfect, as when I go back and manually review the trades, they are off by 1 day about once a year...even though the moon is almost in a perfect circular orbit, it is not quite perfect....and depending what hemisphere your in (because of the angle you are viewing it from) the phase might appear a tiny bit different. So for this test we are assuming that we are in the northern hemisphere in the eastern standard time zone, and even though the date will sometimes be off by a day, it's close enough so that we can get a general idea of the effect. So without further ado, lets see what it looks like:

    [​IMG]
    [​IMG]
    So that certainly doesn't suck (keep in mind there are no other filters, no stops, and no profit target of any kind). Assuming you start out with a $25k trading account, the return on initial capital is almost the exact same as buy and hold the last 20 years (284% vs 287%), yet this system is only in the market 50% of the time, & the max drawdown (24.77%) is way less then what buy & hold produces. A couple of interesting notes about the initial test are that when the markets have experienced "bubbles" aka the lead up to the dot com bubble, and our current bubble, this sweet and simple methodology has really done well. It certainly floundered around in the 2000's, but since the bottom in 2009, has really outperformed buy and hold with zero other filters (and no stops). One other big thing I look at to see if something like this is random or might have an edge is simply the percent winners. If the moon cycle theory was totally random, we should expect to see a winning percent of around 50% (or less), but the study comes back at a pretty impressive 65% winners. Taking these things into consideration at least at first glance, its hard to not conclude there is something to the moon cycle and its relationship to the SPY. Lets try to add a simple filter or profit target to see if that improves the results and equity curve.

    First lets try adding a simple moving average to define a bull or bear market on the SPY daily chart. We'll test from a 10 SMA-200 SMA in increments of 10 (price must be ABOVE the moving average for the trade to trigger) to see if that improves the moon cycle idea.

    [​IMG]

    So as you can see, pretty mixed results. Using a 170 simple moving average is what tested as best, but we lose a lot of net profit, even though the profit factor is increased. So I wouldn't use this particular filter just because it really doesn't improve the results.

    Lets quickly reverse the filter to only take trades in a bear market (or under the moving average) and see what we get. We'll run the same test, 10 SMA - 200 SMA in increments of 10.

    [​IMG]

    Kind of the same story, the efficiency of the idea improves as we get a better profit factor, and bigger average trade for the top results, but comes at the expense of losing a ton of net profit, even at the most optimized values which appear to be outliers.

    Lets see if adding a profit target of some kind can improve the idea. We'll test a profit target ranging from 1000-8000 in increments of 500.

    [​IMG]

    So this is a bit more interesting. As you can see, any profit target above 6000 makes no difference, but using a profit target of 1000 seems to be quite helpful. Using the 1000 profit target, you improve the profit factor, cut the max drawdown in almost half, and the equity curve GREATLY improves. You do lose about 4k in net profit, and their is certainly the potential that it is a slight outlier with further testing needed to draw a better conclusion, but at least in this initial test, it is very helpful. Lets quickly test if a stop will help the performance.....it has been my experience that stops on swing trading systems almost always hurt the performance, but lets see if one will help the max drawdown again or improve the profit factor. Here are the results for testing a stop loss between 1000-8000 in increments of 500 (profit target has been removed).

    [​IMG]

    Yep, every single stop hurts the performance.

    One other idea I wanted to test was a day of the week filter. The overall market has shown day of the week tendencies previously, so lets see if combining the moon phase tendency with the day of the week tendencies will improve the results. In Tradestation, 1=Monday, 2=Tuesday, 3=Wednesday, 4=Thursday, 5=Friday....also keep in mind that full moons that occur on Saturday or Sunday will be triggered on the following Monday or Tuesday.

    [​IMG]

    Now this is very interesting....Moon cycle trades that occur on Tuesday (2) or Wednesday (3) do very, very well. They both have profit factors over 2, and much larger average net trades. All of the days of the week are profitable, but Friday seems to be the weak link. This filter actually lines up with know performance by the day of the week, as Tuesday and Wednesday are the most positive historically anyways. Here is what the equity curve looks like if you only take the moon cycle trades that fall on Tuesday or Wednesday:

    [​IMG]

    You still get a pretty nasty drawdown in 2008, but the equity curve is certainly better, and a profit factor of 2.11 is certainly an improvement.

    Lastly, just for fun, lets see what it looks like if we only take the moon cycle trade on Mon, Tues, Wed, or Thurs and use a 1000 profit target. (Below I've zeroed in on the profit target testing from 500-2000 in increments of 100, and as you can see, 1000 does not appear to be an outlier, as anything from 600-1500 is fairly stable.
    [​IMG]

    [​IMG]

    [​IMG]

    Not to shabby....the equity curve really looks pretty good, we improved the profit factor, we greatly improved the max drawdown, and we didn't lose a ton of net profit. So in conclusion, I certainly think there is something to the moon cycle and its effect on the markets. If you really think about it, it's not a stretch to come to the conclusion in the first place since the gravity of the moon effects every living thing on this planet, so why would it NOT effect the markets might be a better question?? There are a TON of other things that could be tested on this theory, and remember this was simply a thought experiment and NOT a complete trading system. But I'm certainly intrigued, and intend to do more testing of my own.
     
    #12     Jul 21, 2015
  3. Tavurth

    Tavurth

    Try rolling the signals forward 5 to 10 days, how does the equity chart change?
    It might be interesting for you to look at buying just before a full moon, and selling just before a new moon.

    Moon Phases
     
    Last edited: Jul 22, 2015
    #13     Jul 22, 2015
  4. heypa

    heypa

    Don't know about the market but I do believe it affects horse racing.Seems that they run a little different around full moon time.Haven't incorporated it yet but I'm a more cautious better around full moon time.
     
    #14     Jul 22, 2015
  5. mah56j

    mah56j

    I have in my archives a system developed by Welles Wilder based on moon cycles. I bought it on impulse but never used it. If anyone wants it, I'll make a good deal.
     
    #15     Jul 26, 2015
  6. Sergio77

    Sergio77

    No moon does anything to markets.
     
    #16     Jul 27, 2015
  7. Shax

    Shax

    If anyone wants to try to test whether or not lunar cycles can work in the Markets, I insert here the formula in Easylanguage (for Tradestation and Multicharts) for Full Moon Cycles;
    obviously changing the dates, you can insert also the New Moon Cycles.

    LUNARCYCLE: Plots a dot every 27 days, so if you type a full moon date as the input, it will continue to show you full moon days.


    Note: Date should be entered as YYMMDD.

    ----------------------------------------------------------------------------------

    Function: LUNARCICLE

    [LegacyColorValue = true];

    Input: MOON1(Numeric);
    LUNARCICLE = INTPORTION((DATETOJULIAN(DATE) - DATETOJULIAN(MOON1)) / 27)

    --------------------------------------------------------------------------------------------------

    Indicator:


    [LegacyColorValue = true];

    INPUT:VALUE(960305);

    VALUE1 = LUNARCICLE(VALUE);

    IF VALUE1 > VALUE1[1] THEN
    PLOT1(H,"FULLMOON");

    --------------------------------------------------------------------------------------------------
     
    Last edited: Nov 23, 2021
    #17     Nov 23, 2021
  8. maxinger

    maxinger

    is the OP
    @B The House
    still around?

    If he is not around, that means 7 long years of
    moon study didn't help him to earn $$$$ from trading.

    Next planet / star / Galaxy study please.
     
    Last edited: Nov 23, 2021
    #18     Nov 23, 2021