35
Archived articleThis is an archived article from 2021 - please note that any content within the article may be out of date.

[QBO] Part 2: Is Momentum More Profitable Than Quality?

In my previous post, Part 1: Some Analysis of 2020 Using Back Testing and Stockopedia Rankings in a Breakout Strategy, I introduced my Quality Breaking Out (QBO) strategy, and my back testing approach. I then analysed its performance with simulated trading in 2020.

The first area for further investigation that came out of that analysis was:

"Further Analysis Item 1: The make up of the Tradeable World clearly has a big impact on the strategy performance."

The QBO Tradeable World is formed of 4 aspects:

  • An initial Quality Rank based selection (the main criteria)
  • A MarCap threshold as a filter
  • Additional ‘quality’ filters, on profit and debt
  • Liquidity filters, on spread, average traded value, and EMS

In this post, I explore the first of these aspects: the main ranking based selection criteria, and specifically whether a ranking other than Quality Rank could yield better results.

Key findings:

  • Taken in isolation Quality Rank performs much better than Momentum Rank
  • When Quality and Momentum are combined, with the other Stockopedia ranks, into the Stock Rank™ the performance can be much better than any individual rank in isolation (depending on the overall market conditions)
  • Quality is the most consistent factor over both of the the tested time periods (and overall market conditions)

Background and Approach

In my initial attempt at defining the QBO strategy I simply started with the basic idea of "Quality Breaking Out" and then refined the strategy using 'guesses' (or 'hypothesis' if I wanted to imply there was more scientific rigour...). The guesses were based on reading and research, which I then tested using back testing. Changes which seemed to work were incorporated into the strategy, ones which didn't (and there have been very many of them...) were dropped.

This time I decided to take a more methodical 'data centric' approach.

In order to examine the data, I first created a data set containing ranking and performance data for every Instrument as it was on the first trading day of each month across all of the data I have available. I added to that the future price movements over the next 1 month, 3 months and 12 months. I also added an 'Index Adjusted' version of the future price movements to smooth out the effect of general market movements, specifically the Covid-19 downturn (since we know pretty much all price movements during Feb / Mar 2020 were down!). All the future price movements were also ranked.

I then did some initial exploration and preparation of the data set, for example cleaning up outlier values in the data (by capping them at a multiple of either the median or standard deviation) and adding some classifications.

As I mentioned in the previous post, I like to divide the available data into separate Development and Test Periods so that I am developing the strategy against a different time period from the one I'm going to test it against. I started collecting Stockopedia ranking data in May 2018 and, since my previous post, have collected more data. In my previous post I was specifically interested in testing through the COVID-19 downturn in February / March 2020, however now I am more interested in comparing performance in the flat pre-COVID and buoyant post-COVID periods. I have therefore changed the Test Period to be May 2020 to May 2021, but the Development period remains June 2018 to May 2019.

To be completely transparent this is also partly driven by a feeling that my own portfolios performance since the post-COVID recovery started in April / May 2020 has not been anywhere near what the Stockopedia ranking performance charts suggest it should have been. I'm therefore hoping this research will also help shed some light on why.

Figure 1 shows the performance of the top decile (i.e. ranks 90+) of each of the Stockopedia rankings against the index adjusted movements over the two periods:

84160fbb381041972f9a4b4d2880b87a70469d1a1628255975.png

In Figure 1 above zero represents the FTSE All Share movement, so all plotted movements are relative to the FTSE All Share Index rather than absolute. The overlayed colour plot shows the proportion of risers (green) and fallers (red) in the market as a whole in the same period.

The traces on Figure 1 are equivalent to what would have happened if I had bought equal sized positions in all of the 90+ ranked instrument at the start of each month, and then rebalanced each subsequent month so the portfolio always contained equal weight positions in all of the 90+ ranked instruments at the start of each month (ignoring trading costs and spreads).

Caveat: Unfortunately when I started collecting Stockopedia ranking data I didn't think to include the QM and VM ranks so I have created my own. I simply added the Quality / Value Rank to the Momentum Rank and then re-ranked the result. This may differ from how the actual Stockopedia QM and VM Ranks are calculated.

In the Development Period (June 2018 to May 2019) the Quality, QM and Momentum Ranks outperformed the index, whereas the Growth, Stock Rank™, VM, and Value Ranks all underperformed. Quite a bit in the case of the Value Rank.

In the Test Period (May 2020 to May 2021) all ranks outperformed the index - very significantly!

It is interesting to note that, once the general market decline is taken out, the performance of the Quality, QM and Momentum Ranks barely seem to have been touched by the COVID downturn in February / March 2020, whereas a spike down is still very noticeable in the other ranks despite the performance being index adjusted.

The QM and Momentum ranks both performed well in both periods, as did Quality Rank, so I wondered there might be a better alternative to Quality Rank as the primary criteria for the QBO strategy.

One final observation on Figure 1 is the dramatic turn-around in the performance of the Value Rank from April 2020 (and especially from September / October 2020) onwards. I don't know if this is simply because all of the Value metrics got re-calibrated as a results of the dramatic falls in prices during the COVID downturn in February / March 2020, or whether it represents some kind of shift in the market sentiment / preference post-COVID? It certainly seem too pronounced to just be a coincidence.

Analysis of the Data

First off I looked at the distribution of the index adjusted future price movements against the Quality Rank.

Figure 2 below shows plots of the distribution of index adjusted future price movements against Quality Rank, over several time frames, and also against the other Stockopedia ranks.

In addition to ranking the future price movements, I also categorise them as follows:

  • Big rise: a rise of more than one standard deviation above the median (> 16% for 1 month movements)
  • Rise: a rise of less than one standard deviation above the median (2-16% for 1 month movements)
  • Neutral: close to the median (+/- 2% for 1 month movements)
  • Fall: a decline of less than one standard deviation below the median (2-16% for 1 month movements)
  • Big fall: a decline of more than one standard deviation below the median (> 16% for 1 month movements)

48072dc92d9d7cb1c6b289c6cd40c813036237c51628256109.png

The first plot (2a) shows the distribution of the index adjusted 1 month future price change categories against Quality Rank. This shows that the large movements (both risers and fallers) are biased towards the bottom end of the Quality Ranks, while the smaller and neutral movements are biased towards the top end - and there are an awful lot more of them! Interestingly falls are more evenly distributed across the range with only a very slight bias towards the top of the Quality Rank scale.

The second plot (2b), showing the distribution of the 1 month index adjusted future price movement ranks classified by Quality Rank pentile, is an interesting one. There are peaks at both ends of the price change ranking spectrum, suggesting that right across the Quality Rank range instruments move strongly in both directions. What is really interesting is that it is the two opposite ends of the Quality Rank pentile range (i.e. ranks <20 and 80+) which show the most pronounced polarity, with a large dip in the middle of the ranks. Although most pronounced in the top and bottom pentiles, all Quality Rank pentiles display a similar ‘polarity bias’.

The first two smaller plots (2c & 2d) show a similar distribution to 2b, but for longer time periods: 3 month, and 12 month index adjusted future price movements respectively. Again a similar polarity bias is evident.

The final four plots (2e to 2h) again show a similar price distribution to 2b, but this time against Stock Rank™, Momentum, Value and Growth Rank pentiles. Again all show the same bias towards the top and bottom end of the ranks.

Next I wanted to see how each of the ranks performed in simulated trading when used as the main selection criteria of my QBO strategy.

Back Testing the Ranks as part of the QBO Tradeable World

For all of the back tests in this post I used exactly the same strategy for each of the tests, and just changed the Tradeable World definition.

I started with the QBO ‘Buy & Hold’ strategy I ended up with at the end of my first post and removed all of the budget constraints to really focus on the effect of the Tradeable World definition. Here is the strategy used in the testing in full:

Trading Account Size: unlimited (just for the purposes of these tests)

Tradeable world: High quality, profitable, low debt, shares with reasonable liquidity

  • Quality Rank >= 90
  • MarCap >= £100M
  • Profitable (Net Profit / MarCap > 0.025)
  • Low debt (Net Debt < 3 * Net Profit)
  • Liquidity:
    • Spread < 1%
    • EMS value > £3,000
    • 50 day EMA of daily traded value > £1,000,000

Entry criteria: Breakout to a 1 month high on increased volume

  • Low price greater than high price in previous month
  • 5 day EMA of volume >30% above 50 day EMA

Risk management:

  • Maximum Trade size £5,000 (just for the purposes of these tests)
  • Initial position size 15% of maximum allowed
  • Scale in to 50% of maximum position when price has risen by 2 times 20d EMA of the ATR
  • Scale in to the full position when price has risen by 5 times 20d EMA of the ATR

Exit Criteria (early exit): Sell if position held for 49 days without scaling in

I’ll refer to this as the QBO Baseline from here on.

All of the tests were performed in the Development Period, June 2018 to May.

I tested variants of strategy with the Tradable World defined solely as the top decile (i.e rank >= 90) of the Quality, Momentum, Value, Growth, QM, VM and Stock Rank™. None of these variants included the MarCap, quality and liquidity filters of the baseline.

Figure 3 below shows the comparison of the results graphically, and Table 1 below shows the results of the tests in numbers.

a68c4a140e2fa0cd0c2db748a5c17913fd4c3d7f1628256339.png

As you can see in Figure 3, all versions of the QBO Tradeable World suffered during the latter months of 2018 (as indeed did I in my real portfolio!), and then recovered during 2019.

Moving on to the numbers:

d7490731d9c30a5c43a4d524149f1fad312f1fa71628256398.png


All of the Tradeable World variants outperformed the FTSE All Share in terms of percentage gain in the Development Period (June 2018 to May 2019).

Quality Rank with additional MarCap, quality and liquidity filters (the QBO Baseline) performed much better than Quality Rank alone. The Win Rate is much higher with the additional filters, and the Average Loss is lower. So the addition of MarCap, quality and liquidity filters do seem to have a positive effect in the (pre-COVID) Development Period at least - more on that later...

Of the tests with just the individual ranks, Quality Rank outperforms Momentum Rank, but Stock Rank™ is way better than either and is the best performing single rank by far. Surprisingly the combined QM Rank is the worst performing overall, performing worse that either Quality or Momentum in isolation. In contrast the combined VM Rank performs better than Value individually.

Interestingly it is Value Rank that has the lowest Fees & Slippage and Peak Holdings, the highest Average Gain, the lowest number of losing trades and the lowest individual loss. This suggests that there are fewer breakouts among high Value ranked instruments, but when they do break out they can breakout more strongly?

Growth Rank has the best Win Rate, suggesting that high Growth ranked Instruments are most likely to keep growing after a breakout?

Next I was interested to see how much overlap there was in the selected instruments in each of the Tradeable World definitions.

Analysis of Instruments Selected in the QBO Tradeable World Definitions

Of the 285 instruments that were selected as buys over all the tests of individual ranks in Table 1, there were no instruments that were select in all of the rankings tested. Figure 4 shows the number of instruments selected in 1 to 6 of the 7 ranks tested.

d3072df1e5fe1ddbca2eae7f37b40151f0f0a9211628256516.png

Just 3 Instruments (1.1%) were selected in 6 out of 7 of the rankings:

11 Instruments (3.9%) were selected in 5 out of 7 of the rankings:

28 instruments (9.8%) were selected in 4 out of 7.

53 instruments (18.6%) were selected in 3 out of 7.

75 instruments (26.3%) were selected in 2 out of 7.

Which leaves the largest portion, 115 instruments (40.4%), only appearing as a buy in the top decile of a single rank.

Figure 5 below shows all of the made trades in each of the tests shown in Table 1. The size of each cell is determined by the position size, and the colour by the Profit / Loss. The text in each cell contains the TIDM, Quality Rank, MarCap classification (mc = MicroCap, sc = SmallCap, MC = MidCap, LC = LargeCap), Spread and Profit / Loss %.

Figure 5 is pretty busy and very hard to see the details, but the main points of interest are highlighted and discussed below.

I have provided an interactive version on my OneDrive: Figure5_TradesByTWDefinitionDevelopmentPeriod.html

The interactive version can be downloaded locally and viewed using a browser if anyone does want to explore all the details more. In the interactive version if you hover over a cell you will see more details, and you can click into a Tradeable World definition to expand it.

One thing to note when looking at Figure 5 is that the MarCap, Spread and rankings shown were as at either the point the position was closed, or at the end of the test period if the position was still open, not when the position was opened. This is why there are some apparent anomalies, for example instruments with a Quality Rank < 90 appearing in Quality Rank 90+, and trades like Lindsell Train Investment Trust (LON:LTI) where I stopped getting Stockopedia ranking information at some point so it is shown with a Quality Rank of zero.

82f569717f3ee76d60d783016bc4f3e86d317af01628256615.png

The first thing that stands out to me looking at Figure 5 is that across all the Tradeable World definitions, virtually all of the positions which are not scaled into full-size positions (highlighted in orange boxes), and all of the positions not scaled in to at all, were not profitable. The positions which were never scaled in to at all were dropped by my ‘quick exit rule’ ("Sell if held for 49 days and not scaled in"). Given that this is a break out strategy I wonder if I should be even more aggressive with getting out of positions which don’t go on to be scaled into a full-size position?

Further Analysis Item 5: Experiment with more aggressively getting out of positions which don't get scaled into full sized positions.

The second thing that stands out is that the QBO Baseline is the only Tradeable World definition which does not suffer any significant loses from full-sized positions (a loss of > 10%). All of the other ranks contain at least one significant full-sized losing position (highlighted with a red box). All of the significant losers were filtered out of the QBO B&H Baseline by the additional MarCap, quality and liquidity filters. Of course if I was using stop losses (which I removed after the first post when Buy and Hold proved to be more effective) these significant losses could have been avoided. I do intend to revisit stop losses, and sell signals, in a future post.

The final thing that stands out is that in all the versions of the Tradeable World, the bulk of the profit came from a handful of trades. Which mirrors my own trading experience.

As Stock Rank™ was the best performing rank in these tests, after the QBO Baseline, I decided to look at Stock Rank™ further.

Exploring Stock Rank™ Further

First I looked at distribution of Quality, Momentum , Value and Growth Ranks within Stock Rank™ across all of the data I have available. This is illustrated in Figure 6.

4ac72461b632920edee07685500ab9dfc9f3882d1628256712.png

Quality and Momentum Ranks are very neatly distributed through the Stock Rank™ range, with higher Stock Rank™ including a higher proportion of high Quality Rank and Momentum Rank. While the same is also true of Value and Growth Rank, the distribution within Stock Rank™ is not nearly so neatly delineated.

Next I tried back tests adding each of the other (non-compound) ranks one at a time as an additional secondary filter on top of the the Stock Rank™ primary selection. I tried variations of the threshold level for each of the additional ranks to see how their effect varied as the threshold increased. The results are shown in Tables 2-5.

Additional Quality Rank Filter on Stock Rank™

a11b3af53f7d2fa70a8f9c0908147573ca32b4451628256752.png

The additional Quality Rank filter improves the outcomes throughout the range, although the absolute Profit / Loss value peaks at a Quality Rank of 80. The Profit / Loss as a percentage of purchase cost continues to rise. As does the Average Profit on Winners, Win Rate and Adjusted P / L Ratio.

Quality Rank as an additional filter on Stock Rank™ has virtually no effect up until the threshold reached 50, and only really significantly effects the number of selected instruments from 70+. This seems to confirm that a Stock Rank™ of 90+ has already filtered out the majority of low Quality Ranked instruments as suggested in the distribution in Figure 6a.

Additional Momentum Rank Filter on Stock Rank™

b284765b3d3994bd7f5879f4922e9ea71432cf6d1628256819.png

Like Quality Rank in Table 2, an additional Momentum Rank filter also seems to generally improve the outcomes throughout the range, with a bit of a 'wobble' towards the top end.

Again, very like Quality Rank, Momentum Rank as an additional filter on Stock Rank™ has no effect up until the threshold reached 50, and only really significantly effects the number of selected instruments from 70+. This again suggests that a Stock Rank™ of 90+ already contains mostly high Momentum Ranked instruments.

Additional Value Rank Filter on Stock Rank™

7e96c51b0793e795d7904480687020d6c5a7cc661628256850.png

Unlike Quality Rank and Momentum rank, the impact of Value Rank is not as linear, with a very noticeable dip in the middle range. There is a definite improvement to the Average Profit on Winners, Win Rate and Adjusted P/L Ratio at the very top end of the threshold range, but the overall Profit/Loss is very adversely affected in the mid-range although as a percentage of cost does improve again at the top end. This suggests that several of the big winners have a very low Value Rank, but that a very high Value Rank increases the probability of selecting a winner.

Additional Growth Rank Filter on Stock Rank™

73486c463a2f6c4649133a12b35b4977cfe998721628256917.png

The impact of Growth Rank as an secondary filter is also non-linear. The Growth Rank filter seems to improve outcomes early on, but starts to hurt the performance at 50 and eventually comes close to turning the QBO Strategy based on Stock Rank™ into a losing strategy!

Back Testing Stock Rank™ With Additional Filters

After the tests above, I back tested a version of the QBO Tradeable World with Stock Rank™ 90+ as the primary selection criteria, plus an additional Quality Rank filter at 80+ and a Momentum Rank filter at 70+. I did try a variant of Stock Rank™ with just the Quality Rank filter, and while it performed better than Stock Rank™ alone adding Momentum improved the performance further.

Figure 7 shows the results graphically, and Table 6 shows them numerically.

b9da4b1eb0bf1cf29771a84ee6bb7f7bbfa6bc4a1628256962.png 22d360d9d45f95881e0e2c73c7b56e3e99a4d2cf1628256988.png

Adding the additional Quality and Momentum filters to the Stock Rank™ has made quite a big improvement over the base Stock Rank™ performance. I will investigate moving from Quality Rank to Stock Rank™ (with some additional Quality and Momentum filters) as the main selection criteria for the QBO Tradeable World definition.

Further Analysis Item 6: Experiment with using Stock Rank™ (with additional Quality and Momentum filters) as the main selection criteria for the QBO strategy.

Finally, I wanted to see how all of the various ranks performed in the post-COVID Test Period (May 2020 to May 2021).

Back Testing on the post-COVID Test Period

I re-ran the back tests for all of the ranks against the Test Period (May 2020 to May 2021). Figure 8 shows the relative performance graphically.

9d41ccac33a051966ae42f0a0bd05019f5b4062d1628257036.png

The wild performance of the Value Rank demanded some explanation. It is caused by a handful of low Quality Ranked MicroCaps, most significantly Orosur Mining Inc (LON:OMI) - an unprofitable MicroCap in the Metals and Mining sector. Figure 9 shows a snip from the closest Stock Report™ that I could get to the purchase date for Orosur Mining Inc (LON:OMI) in the test, and an annotated chart for the test period.

2b12026b96af5984d9c12f890780e14353ef5df31628257071.png

The coloured boxes are heat map tiles to show the performance Orosur Mining Inc (LON:OMI) at some key points. See my heat map thread for an explanation of the heat map contents.

Despite the decline from the peak on 19th October, Orosur Mining Inc (LON:OMI) was still the largest individual gainer for Value Rank, and VM Rank. The trace for VM Rank in Figure 8 shows a similar profiled spike in October 2020 as Value Rank does, but it is less pronounced because VM Rank generally had more than twice the number of holdings as Value Rank so as a proportion of the portfolio value the impact is much less.

Table 7 shows the results of the Test Period back tests in numbers.

9b009eb5d330628aa30b4d5cd49a53ae286a522f1628257170.png

Growth Rank is the best performing rank overall in this period, and Value Rank and Stock Rank™ are the worst.

Figure 10 shows all the trades made during each test. Again it’s very busy and impossible to read the details, so I’ve put a interactive version on my OneDrive: Figure10_TradesByTWDefinitionTestPeriod.html

c9f3178ac747e6dfadc0b23ffc9612e27bf1794a1628257255.png

As in the Development Period tests in Figure 5, none of the trades which were not scaled in to full-size positions were profitable (highlighted with orange boxes). The QBO Baseline was the only Tradeable World variation not to suffer a significant loss in any of the full-sized positions (highlighted in red boxes). Momentum Rank had by far the most full-sized positions with a significant loss, even though Value Rank had the largest average loss.

Finally I compared the results of the test over the two periods.

Comparing the Tests over the Development and Test Periods

ba3e6e9ce7c4f87e04a95c41188b1a211d21328b1628257298.png

The QBO Baseline was the best performing variant in the Development Period, when the market was generally subdued, but Growth Rank was the best performing in the Test Period when the market was very buoyant.

It’s also interesting that the additional MarCap, quality and liquidity filters in the Quality Rank based QBO Baseline seem to help immensely during the Development Period, but to hinder during the Test Period with the QBO Baseline performing slightly worse than Quality Rank alone. Does this suggest that when the markets got more buoyant that it was low MarCap, low / no profit, high debt instruments with high spread and low liquidity that fueled the recovery?

Wrap Up and Next Steps

This testing confirms, for me at least, that the make up of the Tradeable World is indeed very important in the outcome of the trading strategy. Unfortunately it also highlights that there is unlikely to be a single ‘optimal’ definition that is the top performer across all time frames and market conditions. However, Quality Rank and Stock Rank™ (with an additional Quality Rank and Momentum Rank filter) seem to be most consistent across the two periods I've tested against so I'll stick to a primarily quality biased selection criteria in my QBO Strategy (which is convenient as I wont need to think of another name...).

Have I answered the question in the title? For me that's a definite yes, and Momentum is not more profitable than Quality - at least not on it's own, in this strategy. Obviously your mileage may vary...

Adding Momentum as an additional filter on top of Stock Rank™ does improve performance so Momentum is definitely valuable as a secondary selection criteria though.

It is very encouraging that the strategy outperformed the FTSE All Share during the trickier pre-COVID Development Period. However, it is disappointing that none of the variations managed to match, let alone surpass, the performance of the All Share Index in the much more buoyant post-COVID Test Period. Particularly given the stellar performance of the SIC Portfolio in the same period. It would be nice if the 'inversion' in the Quality Rank referred to in Jacks excellent review of the SIC performance accounted for the disappointing performance of the QBO strategy, and my own portfolio, since May 2020. However I'm not convinced it is the whole story.

Fortunately I'm just beginning this research and refinement process so the positive re-frame is that there would still seem to be plenty of opportunity for improvement!

I apologise for this being another epic post, despite my many efforts to trim it down (I had originally hoped to cover the entire Tradable World definition in a single post!). This process has also been brutally efficient at uncovering problems in my data which have taken a great deal of time and effort to identify and resolve (for example unhandled stock splits / consolidations, changes in TIDM, and missing or inconsistent End of Day data, ...). So I now have an appreciation of why the institutional data providers, such as Refinitiv (used by Stockopedia), charge so much for their services!

Again this process has been a very useful exercise for me. I have learned a lot and have identified a couple more areas for further investigation to add to my list. I hope anyone who is still reading at this stage has also found it of some value.

In the next posts I will examine the other aspects of the QBO Tradeable World definition, starting with MarCap.

Declaration: I currently hold, or have held, Evraz (LON:EVR) Ocean Wilsons Holdings (LON:OCN) Sylvania Platinum (LON:SLP) Games Workshop (LON:GAW) Ienergizer (LON:IBPO) and Renewables Infrastructure (LON:TRIG)

Disclaimer

This is not financial advice. Our content is intended to be used and must be used for information and education purposes only. Please read our disclaimer and terms and conditions to understand our obligations.

10 comments


Avatar for Juan Carlos Bethen

Outstanding work Greesiax, thank you!!!. 

I speak as a truly noob here so pardon me for my lack of knowledge in the matter ^^. I started investing this January and what i've found so far during this time is that a good Relative Strength, let's say 3m/6m, of more than 15% plus a low volatility, less than 60% and checking your stock every month to see if it is still good for the checklist has worked pretty well for me, but if you mix it with a good (+80) Quality Rank then is AMAZING how this stocks tend to give you pretty good returns in a short period of time (1/3 months) so i have to agree that Quality really matters when you're looking for a good investment and want to have good short term returns.

For that i like to mix Quality rank of more than 80 with the Lakonishok Strategy but investing only in low volatile stocks.

6
Avatar for greensiax

Thank you Juan Carlos,

You describe yourself as a 'noob' but you seem to be learning very quickly! You look to have developed a strategy that works for you so very well done! I wish I could say the same ;-)

I hadn't come across the  Lakonishok Strategy before so thanks for highlighting it. I do keep thinking I should invest some time looking through all of the Guru screens on Stockopedia as there is a lot of great knowledge / research encapsulated in them.

Warm regards,

greensiax

1
Avatar for Lucas

I suggest a great book “What works on Wall Street”. And yes, momentum outperforms quality.

1
Avatar for greensiax

Hi Lucas,

I have read "What works...", and I seem to recall that the book used relative strength to mean momentum. It is a fascinating book (if not exactly light reading...).

I'm not in any way trying to suggest that its not the case that some 'momentum' factors may outperform some 'quality' factors (or 'value' or 'growth' for that matter) in some strategies over some time period(s). 

What I am suggesting is that the Stockopedia Momentum Rank does not outperform the Stockopedia Quality Rank for ME in THIS strategy over the periods I tested. My apologies if that was not clear enough.

Warm regards

greensiax



3
Avatar for Michael

Hi Greensiax,

Thanks for taking the time to share your extensive findings. I've read this and your earlier post which I missed the first time around.  I've been through a similar process to you finding that my personal trading results didn't match up to what I could have got mechanically following the Stockopedia ranks. Also similar to you I've done quite a bit of backtesting and faced some of the same hurdles. Issues with data quality and scope spring to mind (not from current Stockopedia data I hasten to add).  There is loads of good stuff in what you've written. Having said that I wonder what your thoughts are about having such a big gap between your development and test timescales? Could you try using all the data up to the start of your test phase for development? I know that would take the backtest through the covid dip, but personally, I think that the best backtests should incorporate extreme conditions as this can give more confidence in how the portfolio may perform under stress. I've just been playing around with your interactive results in Figure 5 as well, which is a very expressive and effective way of presenting a lot of data interactively. Great work!

*** The following comments might not be of interest to most readers as they are about the software implementation used. ***

I've also got a technical background and was wondering how you did the backtesting? Did you write your own backtester or you use an existing library? It looks some of your charts are seaborn or ggplot. I'd be especially interested if you used python. Is there a github for any of this? Or perhaps you have a blog on a more software-oriented site that contains more of the technical details? If so please share a link. This is the sort of conversation normally I'd try to take offline but I don't know if there is a way to do that on Stockopedia, so apologies to any readers who are not interested in the software implementation side of this.

Anyway, as I say, this was a fascinating read and I look forward to any future content you are able to share.

All the best
Michael

4
Avatar for greensiax

Hi Michael,

Thank you for your very kind comments *blush* ;-)

I have a list of topics I plan to cover in the future, including: MarCap (next); Liquidity; additional quality filters (on debt and profit); Stops; Sell Signals; Minimum holding period (and a 'get out quick'  early exit period); Budget management (e.g. expedited sales for scaling in to winners when fully invested); Position sizing; and using SUK2 as a hedge. 

As you may have observed it takes me quite a while to prepare a post so this list should keep me going for quite a while yet...

I'm deliberately choosing the dev / test periods based on what I am trying to explore. In this case I was very interested in the very different market conditions pre- and post- COVID, and was trying to find a base selection criteria which performed with some consistency across the two. I totally agree that a valid test should include extreme conditions and I do plan to do a 'mega test' over all the data I've got at some point, probably once I have a better defined strategy. Perhaps as the 'grand finale'  to this series ;-)

Technically....

I do use Python a lot, especially for data acquisition, analysis and visualisation. The plots in the post are all either matplotlib / seaborn or plotly. The interactive ones are plotly.

The back testing is all home brew. I have backlog items to look at zipline and PyFolio for backtesting, but when I started with this what I wanted to do was to simulate my own trading patterns as closely as I could (without the input of **ME** of course) and for that I had to roll my own. Plus I wanted lots of instrumentation to see what was going on.

I don't have a public GitHub repo, but one of the many backlog items I have is to do a post on data visualisation in Python which I would make public. The main reason I don't make what I have public is that it is so dependent on the data - some of which I pay for under a 'personal use only' licence. 

Your suggestion of a technical blog is interesting, but I am very time-constrained (young family, day job, ...) so probably not right now.

Thanks again for your comments and suggestions, and I'm glad you found my humble contribution to the Stockopedia knowledge base interesting.

Warm regards,

greensiax

4
Avatar for DWit199

Is quality inversely correlated with volatility? If so, I would expect longer holding periods to be beneficial to a portfolio of high quality rank shares.  What is the average holding period of your strategy?

2
Avatar for greensiax

Hi DWit199,

I don’t know how Quality correlates to volatility, though I would guess it is inverse. I’ll add it to my list of things to try. Thank you for the suggestion.

Holding periods is also on my list of things to experiment with. Currently the strategy is buy and hold (with the exception of the 49 day sell if not scaled in rule). I started with stops and a breakdown sell signal, but testing through the Covid-19 downturn  proved that buy and hold was more effective. Again I’m going to re-visit stops and sell signals.

Thanks for reading and your comments.

Warm regards,

greensiax

2
Avatar for DavidMcCabe

Hi Greensiax

Thanks for taking the trouble to post this, it is always interesting to see someone take a purely statistical approach to investing, which I believe helps to take out the emotional risk out, and is far less work.

I have a few comments:

A spread < 1%  really limits the stocks you can trade in, and is likely to exclude those that are smaller companies.  If you take a look at the stockpopedia stock ranks backtesting, you will see the effects of the rank are most pronounced for small stocks.  Obviously you don't want to throw away the nominal performance in spread costs, so a lot will depend on if you are short term trading i.e holding for less than three months, or looking at 1 year plus.

Also, again looking at the  stockpopedia stock ranks backtesting, you will often see that a particular rank will do well for a few months, then dip, then do well again.  The same applies to all of the Guru screens.  Hence any test that is for less than two years, is likely to not be helpful.

Finally, it can be quite dangerous to look at very specific factors, over the short term, as it can result in just picking, or excluding a small number of very high, or very low performing shares that coincidentally share the characteristic.  This gives a false sense that this is the key to making the right investment.

Hope this is helpful and of interest.


David


3
Avatar for greensiax

Hi David,

Thank you for reading and taking the time to share your thoughts. You make some good points.

I said in my last post (and perhaps should have re-stated in this one) that my aim with this exercise is not to create a mechanical strategy, rather to explore the impact of, and formalise, some of the decisions / judgements I make  during my trading. And also to learn  by experiment. In my real portfolio I’m afraid the emotion (and work...) is still very much there ;-)  

As for spread and company size, completely agree and I’ll be looking at MarCap next, followed by spread (and liquidity). I have quite a long list of things I’d like to explore - several years worth at my current posting rate!

I’d love to test over longer time periods but I’m limited a bit by the amount of (Stockopedia) data I have available.

Thanks again for your helpful comments.

Warm regards

Greensiax

4
Get the free newsletter