+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 108

Thread: Model discussion

Hybrid View

  1. #1
    Join Date
    May 2011
    Location
    New Zealand
    Posts
    45
    Here's my opinions

    1. 20DMF
    --> agreed with Timothy, increased the numbers of ETF the robots trade, for example, when most ETF is in buy mode, the remaining neutral mode ETF cannot take short term short entry (a failed safe mechanism), alternatively, when most ETF is in short mode, the remaining neutral mode ETF cannot take short term long entry


    2. The GDX MF

    Model Weaknesses

    • The model acts very fast on a signal change but might be prone to whipsaws, mostly due to the underlying volatility.
    --> it happened in Dec last year, does it really due to volatility or does it due to the low volume because of holiday? Or, volatility due to the low volume?


    3. The Robots

    • Update the statistical trading tables for both robots
    --> is it possible to automate the process for the statistical trading tables?


    4. RT On-going development work

    --> sms alert (can be done via twitter)

    5. Sector Rotation (SR) trading model

    --> can we use GDX MF model to run on each different sectors? Then we don't need to worry about the stock.

    --> I think real time system will be v. useful to provide a better entry and tight stop but we need an real time alert system.

  2. #2
    The biggest challenge we have is a very short history of data available for backtesting; any idea that will resolve the few occurrences where the model broke down cannot be confirmed with statistical confidence. For this reason, the 20DMF had a couple of tweaks in the past. Were those optimal? We shall probably know only in many years from now (n fact, we trust the model because it makes fundamental sense, not because of a thorough out of sample statistical validation – for this we do not have sufficient data points. Adaptive OB/OS determination makes sense and it might be more robust than an arbitrary level. Maybe.
    So what can one do? On a conceptual level: (a) keep the model as simple as possible – the less parameters, decisions and ‘knobs’ there are - the less brittle it will be, (b) introduce additional data points of a somewhat different ilk by incorporating other indicators (for decision, confirmation, or vote), and (c) use several systems/robots for diversification. Well, all ideas mentioned earlier in this thread :-)
    On a practical level – there are a number of ‘breadth related’ indicators that could be used quite effectively to (i) identify bottoms - maybe combine with 20DMF in some voting mechanism, and (ii) identify a bullish state of the market – to get the 20DMF out of a ‘neutral’ state, and/or be used together either in a voting, or an allocation mechanism.
    By ‘breadth related’ indicators I mean things like: new highs/new lows, volume or issues advance/decline, TICK, TRIN (Arms), number of issues over or crossing a moving average. These days the data for these indicators can be easily accessed in real time - see my comment in the Tradestation thread.
    Breadth models try to measure the underlying happenings in the market as the MF does, though in a different way - and they can be used to create good timing models on their own. There is a good possibility that combining them with 20DMF will increase the model's robustness.

  3. #3
    While at it, a couple of general thoughts:

    - Whipsaws: If the losses on whipsaws are small, best to look at those just as the cost of doing business. Many systems whipsawed in the huge volatility of last year much more than in the last twenty years, simply bringing out the reality of the market... politicians and central banks flip-flopping.

    - When modifying / tweaking a model, it is a good idea to continue and maintain full data series (past and future) of both versions, not just discard the old one. In my experience one can still learn from systems abandoned many years ago.

    - We are very interested in the Maximum Drawdown of a backtest (and more than that, of a system we trade live). It is also important to understand that the MDD does not represent well the statistics of a trading system output (it is the outcome of a specific path in time, out of many that could have happened). Therefore, MDD is not a good predictor of a system’s future drawdown and is not a good measure for a system’s risk. The saying “your worst drawdown did not happen yet” has indeed a theoretical basis. When comparing different versions of a system in development - it is much better to use measures with more statistical contents, like a rolling period downward deviation.

  4. #4
    Join Date
    May 2011
    Location
    South Florida
    Posts
    51
    Quote Originally Posted by senco View Post
    While at it, a couple of general thoughts:
    - Whipsaws: If the losses on whipsaws are small, best to look at those just as the cost of doing business. Many systems whipsawed in the huge volatility of last year much more than in the last twenty years, simply bringing out the reality of the market... politicians and central banks flip-flopping.
    AFAICT, EV as a follower of large money can only be as good as they are. 2011 performance of large funds have been rather dismal (an understatement), so it's likely to expect EV to deteriorate in its predictive ability. Paul in a recent GGT post shows a bunch of examples where contrary to LEV divergence, price keeps going in the other direction, which begs the use of this technique with other indicator(s) as you've suggested, or at least a much more accurate understanding where EV does work.

    Quote Originally Posted by senco View Post
    - We are very interested in the Maximum Drawdown of a backtest (and more than that, of a system we trade live). It is also important to understand that the MDD does not represent well the statistics of a trading system output (it is the outcome of a specific path in time, out of many that could have happened). Therefore, MDD is not a good predictor of a system’s future drawdown and is not a good measure for a system’s risk. The saying “your worst drawdown did not happen yet” has indeed a theoretical basis. When comparing different versions of a system in development - it is much better to use measures with more statistical contents, like a rolling period downward deviation.
    Fully agree with MDD comment. Do you have a link to RPDD stat calculations?

  5. #5
    Quote Originally Posted by TraderD View Post
    AFAICT, EV as a follower of large money can only be as good as they are. 2011 performance of large funds have been rather dismal (an understatement), so it's likely to expect EV to deteriorate in its predictive ability. Paul in a recent GGT post shows a bunch of examples where contrary to LEV divergence, price keeps going in the other direction, which begs the use of this technique with other indicator(s) as you've suggested, or at least a much more accurate understanding where EV does work.

    Fully agree with MDD comment. Do you have a link to RPDD stat calculations?
    EV detects an equilibrium and not a force. It statistically detects when money comes in/out. For a single stock, the movements of money will often be opposite to the price moves, because large players use available liquidity to buy/sell. However, when the price is in a trading range or at a turning point, EV will often show what is happening below the surface and what the next move will be. This is why I always use AB/LER as a combination.

    The money flow is however more predictive when it is collected by sectors or industry group.

    Also, large money does not necessarily mean that these are large funds. It could be some artificial FED liquidity injection. Therefore, I believe that your statement that EV's predictive ability will deteriorate might or might not be true. I however believe that EV still gives early warnings of what large money is doing. A few years ago, I noted that it could give up to one day advance warning. Today, because the level field is pretty high and everybody is running fast computers, the warning time is probably less than a day.

    Anyway, I still prefer to know where the money is going than not to know it.


    Pascal

  6. #6
    I am attaching here a general figure of the different models that are in use, but also of a back-test campaign made last week using these models.

    We can see that the one level that cannot be traded is the sectors level, simply because these are sectors that I have defined myself and for which there is no instrument. These sectors are mainly used either for the 20DMF or for the stock filters.

    Name:  Models.gif
Views: 324
Size:  4.7 KB

    Below are the yearly returns of the S&P and the 20DMF. These are returns compounded within one year. If a 20DMF trade is overlapping two years, I separated taking one part in one year and the second in the following year. This way, we can have a better comparison.

    Name:  20DMF_SP500.gif
Views: 313
Size:  3.7 KB

    The objective of this back-test work was to measure the relevance to trade sector information.
    Is it good to buy a sector when the sector issues a buy signal and short it when it issues a short signal?

    The results are below. We can see that indeed, sectors trading is better than B/H on the S&P 500.
    However, sectors trading in sync with the 20DMF is still better. Unfortunately, "in Sync" does not give better results than the 20DMF itself.

    These results are not surprising: they are "in line" with what I had when I did a similar back-test two years ago.
    My conclusion at that time was that even when a sector is flashing a buy signal, it still needs to be as close as possible from a 20DMF buy signal. The later we are from that signal, the worst the returns.

    Name:  Setcors trading.gif
Views: 318
Size:  4.7 KB

    Therefore, the next idea was to select only five sectors when the 20DMF issued a signal and then from each of these sectors, get all the stocks AB/LER data and select the five stocks that were showing the best AB/LER combination. The results of such a test are shown below. These are also in line with the results I had two years ago. The table below show us that whatever efforts we can do to select specific stocks, it will be hard to beat a two time leveraged ETF that trades the 20DMF signals. Of course, specific stock trading might lead to lower DD (I did not calculate such DD.)

    Name:  AB_LER.gif
Views: 333
Size:  3.8 KB

    I however did another test that gives interesting results.
    I selected one date in the past and decided to trade either long or short by intervals of 20 days from that date.
    this means at day one, I buy the five best sectors and I sell them at day 20.
    The five best sectors are those that show the weakest price RS.
    On day 20, I again select the five best sectors and buy them.

    On exactly the same day, I also short the five sectors that are the most overbought and I sell these positions 20 days later.

    The results are shown in the table below.

    We can see that this dumb strategy worked well for longs in 2009 and for shorts in 2008.
    In 2010 and 2011, it did not work that well.

    However, this strategy shows something important: the rotational aspect of the market. It shows that it makes sense to rotate money. This is of course obvious! I still prefer to see it in the data than not seeing it, because this means that it will probably make sense to develop a set of ETFs MF by industry groups and rotate between them.


    Name:  Sector rotation.gif
Views: 282
Size:  6.0 KB

    I will now start working on these industry group MF models.


    Pascal

  7. #7
    Join Date
    May 2011
    Location
    South Florida
    Posts
    51
    Quote Originally Posted by Pascal View Post
    ...
    I will now start working on these industry group MF models.
    Pascal
    Pascal, how do you explain the (admittedly anecdotal) observation that test results of models that use 20DMF invariably show 2010/2011 performance to be lower (typically much lower) than 2008/2009 performance? Is there a reason to suspect the market is becoming more "efficient" in arbitraging away the edge attributed to money flow rotation?

    Trader D

  8. #8
    Quote Originally Posted by Pascal View Post
    Therefore, the next idea was to select only five sectors when the 20DMF issued a signal and then from each of these sectors, get all the stocks AB/LER data and select the five stocks that were showing the best AB/LER combination. The results of such a test are shown below. These are also in line with the results I had two years ago. The table below show us that whatever efforts we can do to select specific stocks, it will be hard to beat a two time leveraged ETF that trades the 20DMF signals. Of course, specific stock trading might lead to lower DD (I did not calculate such DD.)
    - Pascal, could you please clarify: Was it five stocks per sector, or total of five from all sectors? Was it buying when a 20DMF signal is issued, and holding until next short, or something else?

    - on a first blush I am not sure I would dismiss that based on comparison to trading a leveraged ETFs. Since we can tailor the amount of leverage we take, It is all a matter of risk-reward; so depending on the downward volatility, the results could be just ho-hum, very good, or spectacular.

    In 2011 many sector rotation systems did not work that great, and numbers like in the table are not to sneeze at (especially if it were 25 stocks total). Also seeing better relative performance in 2011 than in 2010 is intriguing. If it were me I would check further whether it is just a matter of beta of stocks - or maybe there is a significant edge here. If you indeed do check the risk (e.g. downward volatility) and it is not higher than the market - it might be worthwhile looking at hedged results, and also at results obtained with a different timing signal gating entry and exit. For diversification, it would be great to identify added value that is not fully correlated to the 20DMF.


    .... The five best sectors are those that show the weakest price RS.
    ... I also short the five sectors that are the most overbought and I sell these positions 20 days later.
    - Could you please clarify the specific selection criteria: For longs, is it weak RS only, or you look at money flow as well? The timeframe for RS - is it 20 days? For shorts, what is the definition of 'overbought' in this context? ... I am trying to understand how EV is used here, and whether we are looking at simple mean reversion at the sector level.

    I have encountered in the past added value for mean reversion of individual stocks within a strong sector, and for longer timeframe sector momentum; this seems to be quite different and intriguing.

  9. #9

    XL Models

    Over the week-end and last week, I have applied the GDX model to a few industry groups: XLE, XLI, XLK, XLU and SPY.

    The results are below:

    Name:  Models1.gif
Views: 860
Size:  18.6 KB

    First, let me say that this is "on-going work". There is still further analysis work to be made in regards to:
    - Draw downs
    - Trade statistics
    - Correlation
    - Stock selection within each industry group
    - Complete these tables with XLB, XLY, XLP, XLV

    What I did was simply to use the OB/OS GDX MF model and apply it "as is" to the different industry group.
    The OB/OS and the porosity levels are automatically adapted (using only past but more recent data than very old past data).

    Let me already comment on the first results:

    1. In blue, I highlighted the positive returns for 2008 on the 20DMF, SPY and GDX models groups, while the four other groups were negative. There is one reason for this: data! For the four XL groups, I indeed took the group's composition/weight as of today and applied it down to 2008. However, in 2008/2009, there were 63 changes in the S&P500, 16 in 2010 and 12 in 2011. With the weights also changing, this means that the older the data, the less reliable the results will be. For the S&P500, I manually kept track of all the past changes (I did not do that for the underlying groups.) I also think that for GDX, the index has been very stable since many years with the larger stocks taking the "bulk" of the index: ABX, GG, KGC, SLW, etc...

    2. Because of this and also because 2008/2009 were really exceptional trending years, I prefer to concentrate on the results for the past two years, shown in yellow and green. The yellow represents the total of the past two years, while the green color highlights the difference between the model and the corresponding ETF return.

    We can see that:
    2.A. The model works well for XLK, XLI, XLE and less so for SPY and XLU. I understand that it would not work well for SPY, which involves all the sectors, while each sub-group is more focused and hence, the movements of money are easier to detect when we analyse each group separately. This however does not explain the fact that the model does not act so well with XLU. It might be a lack of volatility in this sub-group, but I had no time to study trades in detail to point this out.
    2.B. We should also note that XLU ETF acted well in 2011, while all other sectors were poor. We indeed had a defensive market in 2011. However, the model could take advantage of the groups' inherent volatility.
    2.C. GDX offered the strongest returns. This is also due to the higher volatility and waves of changes that is a characteristic of this sector.

    3.For the past two years, the XLE model did better than the 20DMF and the XLI model did almost as good as the 20DMF. This means that there is something to dig around here with probably the possibility to rotate between industry groups independently from the 20DMF itself.


    Pascal
    Last edited by Pascal; 02-13-2012 at 04:28 AM.

  10. #10
    Quote Originally Posted by senco View Post
    While at it, a couple of general thoughts:

    - Whipsaws: If the losses on whipsaws are small, best to look at those just as the cost of doing business. Many systems whipsawed in the huge volatility of last year much more than in the last twenty years, simply bringing out the reality of the market... politicians and central banks flip-flopping.
    Whipsaws is a clear limitation in the EV based models and must be dealt with with great care.
    Indeed, we have seen the EV often moves in a direction opposite to price on single stocks, because large players would take advantage of higher liquidity to buy/sell positions contrary to the price move. However, when a stock/Sector is on its lower boundary or in oversold, then a bounce in EV might indicate that there is real accumulation because the stock/sector is "cheap".

    Hence, when I applied the OB/OS MF model to the 96 sectors that I defined, I noticed that the return was lower than using the usual simpler sector model to buy and short. The reason was simply that the sectors are in a "hectic" manner when in OB/OS. They will switch up/down until they stabilize and move definitively in a new direction. I believe that this is a factor that is "inherent" to EV , especially on single stocks or on a basket of a few stocks.

    However, industry groups and total market level measures are less prone to EV whipsaws, because they do compensate each other. We would need the majority of the stocks in the sector to be bought and then sold the next day to have whipsaws on an industry level. This has fewer chances to occur and hence, OB/OS works better the more stocks you use in the basket.


    Pascal

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts