Stock Screener with Back test function | Quant Investing (2024)

The key to making a stop-loss strategy work. These research papers prove that a trailing stop-loss strategy increase your returns.

I hated stop-losses! Mainly because some limited testing I did found that a stop-loss strategy lead to lower returns even though it did reduce large losses.

But you know here at Quant Investing we look at investment research all the time and I found three interesting papers that tested stop-loss strategies with results that changed my view completely.

But before we get to HOW and WHAT stop loss you can use to increase your returns first the research studies.

Research study 1 - When Do Stop-Loss Rules Stop Losses?

The first research paper When Do Stop-Loss Rules Stop Losses? and was published in May 2008 by Kathryn M. Kaminski and Andrew W. Lo.

The paper looked at the application of a simple stop-loss strategy applied to an arbitrary portfolio strategy (for example buying the index) in the US over the 54 year period from January 1950 to December 2004.

How was the stop loss applied?

The strategy used a simple 10% stop loss rule. When a 10% loss was exceeded the portfolio was sold and invested in long term US government bonds.

Cash would be moved back into the stock market once the 10% fall in the stock market was recovered (the 10% stop-loss was recovered).

What they found it worked very well

The researchers found that when the model was invested in the stock market it gave higher return than bonds 70% of the time, and during stopped-out periods (when the model was invested in bonds), the stock market provided a higher return only 30% of the time.

So it worked!

Over the whole 54 year period the study found that this simple stop-loss strategy provided higher returns while at the same time limiting losses substantially.

They also found that the stop-out periods were relatively evenly spread over the 54 year period they tested. This shows you that the stop-loss was not just triggered by a small number of large market movements (crashes).

If the researchers excluded the technology bubble (used data from Jan 1950 to Dec 1999) the model worked even better. This was because it got back into the stock market too quickly after the technology bubble crash.

This was most likely because the stop loss level was set too low. For a better stop loss level look at the next research studies.

To find investment ideas that fit your investment strategy - Click here

Research study 2 – Performance of stop-loss rules vs. buy and hold strategy

The second research paper was called Performance of stop-loss rules vs. buy and hold strategy, published in 2009 by Bergsveinn Snorrason and Garib Yusupov.

What they tested

They compared the performance of following a trailing and normal stop-loss strategy to a buy and hold strategy on companies in the OMX Stockholm 30 Index over the 11 year period between January 1998 and April 2009.

This is a short test period but it included the bursting of the internet and the financial crisis.

Investments were made on the first trading day of every quarter (starting January 1998). When a stop-loss limit was reached, the stocks were sold and cash was held until the next quarter when it was reinvested.

What is really helpful is they tested stop-loss levels from 5% to 55%.

Trailing stop-loss results

The table below shows the results of the use of a trailing stop-loss strategy.

As you can see the highest average quarterly return (Mean = 1.71%) was obtained with a 20% trailing stop-loss level limit. The highest cumulative return (Cumulative = 73.91%) was achieved with a 15% trailing stop-loss limit.

The only stop-loss level that did worse than the buy-and-hold (B-H) portfolio, with a negative average return of 0.12% and cumulative return of -8.14%, was from a trailing stop-loss strategy with 5% loss limit.

Returns from using a trailing stop-loss strategy

Click image to enlarge

The following chart shows the total end value of all the strategies.

Trailing Stop-loss, equally-weighted total portfolio performance

Click image to enlarge

As you can see the 15% and 20% trailing stop loss levels give you about the same overall result with the 20% stop-loss level leading to higher returns most of the time.

Traditional stop-loss strategy - not trailing

The following table shows you the results if you applied a traditional stop-loss strategy, which means that you would calculate the stop-loss from the purchase price.

Returns from using a traditional stop-loss strategy

Click image to enlarge

Surprisingly, all traditional stop-loss levels from 5% to 55% would have also given you better returns than the buy and hold (B-H) strategy.

The highest average quarterly return (Mean = 1.47%) was achieved at the 15% stop loss level and the highest cumulative results of 57.1% at the 10% stop-loss level closely followed by the 15% stop-loss level at 53.31%.

The chart below shows you the results of the traditional stop-loss strategy for all tested stop-loss levels.

Traditional Stop-loss, equally-weighted total portfolio performance

Click image to enlarge

In the chart you can see that the 15% loss level would have given you the best result over the largest part of the 11 year test period.

What is the best stop loss strategy?

So what is the better stop-loss strategy?

To find out we deducted the results of the traditional stop-loss strategy from the trailing stop-loss strategy.

The results are summarised in the following table:

Trailing stop-loss minus Traditional stop-loss

Click image to enlarge

Trailing stop loss is LOT better

Only at the 5% and 10% stop loss levels did the traditional stop-loss perform better than the trailing stop-loss BUT the overall returns were bad.

At all other loss levels the trailing stop loss outperformed, most notably at the 20% stop loss level where it performed 27.47% better over the 11 year period.

To find ideas that EXACTLY fit your investment strategy - Click here

Research study 3 - Taming Momentum Crashes: A Simple Stop-loss Strategy

The third research study is calledTaming Momentum Crashes: A Simple Stop-loss Strategy by Yufeng Han (University of Colorado), Guofu Zhou (Washington University) and Yingzi Zhu (Tsinghua University) and was published in August 2014.

What they tested

The researchers applied a simple momentum strategy of each month buying the 10% of companies with the largest price increase over the past six months and selling short the 10% of companies with the largest price falls the past six months.

Once the stop-loss was triggered on any day the company was either sold (Winners) or bought (Losers) to close the position. Remember this was a long-short portfolio.

If a position was closed the proceeds were invested in the risk-free asset (T-bills) until the end of the month.

Tested over 85 years

They applied this strategy over the 85 year period from January 1926 to December 2011 on all US domestic companies listed on the NYSE, AMEX, and NASDAQ stock markets (excluding closed-end funds and real estate investment trusts).

A lot lower losses

At a stop-loss level of 10%, they found that the monthly losses of an equal weighted momentum strategy went down substantially from −49.79% to −11.34%.

For the value-weighted (by the last month-end market value) momentum strategy, the losses were reduced from −65.34% to −23.69% (to -14.85% if August 1932 is excluded).

And higher returns

Not only did the use of the simple stop loss strategy reduce losses it also increased returns.

The stop-loss strategy increased the average return of the momentum strategy from 1.01% per month to 1.73% per month (a 71.3% increase), and reduced the standard deviation of returns from 6.07% per month to 4.67% (23% reduction).

It also increased the Sharpe ratio (measure of risk adjusted return) of the stop-loss momentum strategy to 0.371, more than double the level of the original momentum strategy of 0.166.

Helps you avoid market crashes

The stop-loss momentum strategy also completely avoided the crash risks of the original momentum strategy as the following table clearly shows.

Stock Screener with Back test function | Quant Investing (6)

Click image to enlarge

Note that if you followed a stop loss strategy you would have made a small profit when the momentum only strategy lost nearly 50% and 40%.

Do you hate price driven stop loss strategies?

Do you hate a price driven stop-loss system? If so you are most likely a hard core value investor.

Here is something you may want to consider, a fundamental stop loss suggested by a friend and long-term subscriber to the Quant Investing stock screener.

You can read the whole article here:

Ever thought of using a fundamental stop-loss?

Summary and conclusion - Stop-loss strategies work

This has been a long article to show you that stop-loss strategies work

As you have seen:

  • When applied to a 54 year period a simple stop-loss strategy provided higher returns while at the same time lowering losses substantially
  • A trailing stop loss is better than a traditional (loss from purchase price) stop-loss strategy
  • The best trailing stop-loss percentage to use is either 15% or 20%
  • If you use a pure momentum strategy a stop loss strategy can help you to completely avoid market crashes, and even earn you a small profit while the market loses 50%
  • Stop-loss strategies lowers wild down movements in the value of your portfolio, substantially increasing your risk adjusted returns

The difficult part - your emotions

The key to making a stop-loss strategy work is to stick to your plan, not once but over and over and over again.

The difficult part is to not let your emotion keep you from selling when a stop-loss level is reached.

How to implement a stop-loss strategy

This is how you can implement a stop-loss strategy in your portfolio, it is also the stop loss strategy we use in the Quant Value investment newsletter.

  1. Implement a trailing stop-loss strategy where you calculate the losses from the maximum price the company has reached since you bought it
  2. Only look to see if the stop-loss has been exceeded on a monthly basis. If you look at it daily you will trade too much and the costs will lower your returns
  3. Remember to include dividends. When a company goes ex dividend (trades without the dividend) its stock price drops by the amount of the dividend so you have to add the dividend to the current stock price, here is the formula: (Current stock price - the highest stock price + the dividend per share) / the highest stock price.
  4. Sell your investment if at the monthly evaluation date the trailing stop-loss level of 20% has been exceeded
  5. Measure the trailing stop-loss in the currency of the company’s primary listing. This means measure the stop-loss of a Swiss company in Swiss Francs (CHF) even if your portfolio currency is Euros or US Dollars
  6. Reinvest the cash from the sale in the best idea that currently fits with your investment strategy. If you subscribe to the newsletter you would invest in the ideas you receive the month the investment is sold

Of course it will not always work

These studies all showed the success of a stop-loss strategy over long periods of time, this of course does not mean that a buy and hold strategy will not sometimes outperform your stop-loss strategy.

But over the long term it will reduce your portfolio’s volatility (large losses) and increase your compound investment returns. This will also help you stick to your investment strategy!

System that sells your losers to invest in your best ideas

What a stop loss strategy also does is it gives you a disciplined system to sell losing investments, let your winners run, and invest the proceeds in your current best ideas.

PS Do you hate a price driven stop-loss system? If so here is an idea that will help you limit your losses if the underlying business of your investment starts to go downhill. Ever thought of using a fundamental stop-loss?

PPS To find investment ideas that EXACTLY fit your investment strategy click here

It is so easy to get distracted, why not sign up right now? It costs less than an expensive lunch for two and if you don't like it you get your money back.

To find investment ideas that EXACTLY fit your investment strategy - Click here

Sources:

Gergely Korpos What is a stop-loss order

Performance of stop-loss rules vs. buy and hold strategyBergsveinn Snorrason and Garib Yusupov – Spring 2009

Taming Momentum Crashes: A Simple Stop-loss StrategyYufeng Han, Guofu Zhou, Yingzi Zhu, August, 2014

When Do Stop-Loss Rules Stop Losses?Kathryn M. Kaminski and Andrew W. Lo May 1st, 2008

The Big Picture Blog - The Virtues of Stop Losses

Stock Screener with Back test function | Quant Investing (2024)

FAQs

How to backtest a stock screener? ›

Backtest before invest
  1. Verify investment strategies. Do you want to invest in a promising strategy that you found with the Screener? ...
  2. Backtest copied portfolios. Before copy trading a portfolio, calculate the return by backtesting. ...
  3. Top ROI through criteria weighting. ...
  4. Optimize rebalance intervals.

How to backtest an investing strategy? ›

  1. Backtest Investment Strategies Using Financial Toolbox.
  2. Load Data.
  3. Define the Strategies.
  4. Implement the Strategy Rebalance Functions.
  5. Compute Initial Strategy Weights.
  6. Create Backtest Strategies.
  7. Backtest the Strategies.
  8. Examine Backtest Results.

Who is the number 1 stock screener? ›

Compare the Best Stock Screeners
Stock ScreenerMonthly PriceBest Features
Stock Rover Best for Buy & Hold InvestingStarts at $7.99/mo.Stock rating system
TC2000 Best OverallStarts at $9.99/mo.Powerful screening tools
TradingView Best for Global InvestingStarts at $14.95/mo.Follows 70+ global exchanges
3 more rows

How do you screen stocks for investing? ›

Consider factors such as market capitalization (large cap or small cap), debt ratio, profitability, growth potential, and dividend yield. Having a clear idea of your investment criteria will help you refine your search.

Can I backtest using TradingView? ›

TradingView offers a rich set of tools to facilitate backtesting: Bar Replay Function: Enables manual backtesting. Pine Script: A scripting language unique to TradingView, allowing you to code your own strategies and then backtest them using the Strategy Tester.

Where can I backtest my trading strategy for free? ›

AlgoTest - Free Backtesting Options Trading Strategies in India.

Is backtesting free on TradingView? ›

Cost - Basic backtesting capabilities are available for free on TradingView and reasonably priced paid plans give more advanced options. Platform access - Web-based platform means TradingView can be accessed from anywhere.

How far back should you backtest a trading strategy? ›

When you are backtesting a day trading strategy (15-minute timeframe or lower), it is usually enough to go back two to three months and start your backtest there. When you are backtesting a strategy on a higher timeframe, you will have to go back 6 to 12 months.

What are the pitfalls of backtesting? ›

Limited data quality: Backtesting relies on historical data, and the quality and accuracy of the data used can have a significant impact on the results. Data may contain errors, gaps, or other inconsistencies, which can distort the backtest results and lead to inaccurate conclusions about the strategy's performance.

What is the most successful stock screener? ›

The 8 Best Stock Screeners of April 2024
Stock ScreenerFree VersionPaid Version
Seeking Alpha$239 per year
Stock Rover$80 to $280 per year
Trade Ideas$999 to $1,999 per year
Benzinga Pro$324 to $1,404 per year
3 more rows
Apr 8, 2024

What is the most successful stock predictor? ›

1. AltIndex – Overall Most Accurate Stock Predictor with Claimed 72% Win Rate. From our research, AltIndex is the most accurate stock predictor to consider today. Unlike other predictor services, AltIndex doesn't rely on manual research or analysis.

Are stock screeners worth it? ›

Fortunately, a stock screener can help you focus on the stocks that meet your standards and suit your strategy. Stock screeners are effective filters when you have a specific idea of the kinds of companies in which you are looking to invest.

What is the best filter for stock screening? ›

Which is the best stock screener? Ticker is the best free stock screener among all the others available. Most screeners available either charge for the services or, even if free, do not provide as much information necessary. Ticker has more than 1200 ratios that an investor can choose from, to filter out the stocks.

What is the best screener for technical analysis? ›

What is the most widely used technical stock screener? The Moving Average Convergence and Divergence (MACD) and Relative Strength Index (RSI) are the two most widely used technical stock screeners.

Is Zacks stock screener free? ›

You'll quickly identify which stocks to buy, which to sell and target today's hottest industries. Gain full access to our powerful tools and resources locked behind Zacks Premium for 30 days absolutely free. Subscription: $249/year.

How do you find the undervalued stock screener? ›

Here are eight ratios commonly used by traders and investors to spot undervalued stocks and determine their true value:
  1. Price-to-earnings ratio (P/E)
  2. Debt-equity ratio (D/E)
  3. Return on equity (ROE)
  4. Earnings yield.
  5. Dividend yield.
  6. Current ratio.
  7. Price-earnings to growth ratio (PEG)
  8. Price-to-book ratio (P/B)

How do you use a screener for stock analysis? ›

Getting started with Screener
  1. Create your watchlist: Add stocks to your watchlist to keep track of their latest announcements, insider trades and credit ratings. ...
  2. Set Screen Alerts: You can create queries to find new stock ideas. ...
  3. Try Export to Excel: Do you use Excel to analyse companies?

How do you backtest technical indicators? ›

In this article, we will discuss some of the best tools and practices to backtest your technical indicators and oscillators.
  1. 1 Choose a suitable backtesting platform. ...
  2. 2 Define your trading rules and objectives. ...
  3. 3 Apply robust backtesting methods. ...
  4. 4 Review and analyze your backtest results. ...
  5. 5 Here's what else to consider.
Aug 21, 2023

Top Articles
Latest Posts
Article information

Author: Nathanael Baumbach

Last Updated:

Views: 5783

Rating: 4.4 / 5 (55 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Nathanael Baumbach

Birthday: 1998-12-02

Address: Apt. 829 751 Glover View, West Orlando, IN 22436

Phone: +901025288581

Job: Internal IT Coordinator

Hobby: Gunsmithing, Motor sports, Flying, Skiing, Hooping, Lego building, Ice skating

Introduction: My name is Nathanael Baumbach, I am a fantastic, nice, victorious, brave, healthy, cute, glorious person who loves writing and wants to share my knowledge and understanding with you.