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 do you backtest investing strategies? ›

Steps on how to backtest a trading strategy
  1. Step 1: Define the trading strategy. ...
  2. Step 2: Obtain historical data. ...
  3. Step 3: Execute the strategy. ...
  4. Step 4: Track and record results. ...
  5. Step 5: Analyse the results. ...
  6. Step 6: Refine and optimise the strategy. ...
  7. Step 7: Validate the strategy.
Aug 14, 2023

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? ›

There are screeners based on P/E ratio, past price performance, P/BV for select industries, dividend yield etc. These ratios help you to shortlist companies that have a valuation comfort for the investor. You don't just need a stock that is available at a price lower than the intrinsic value.

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.

What is the best way to backtest? ›

The simplest backtest includes looking at one-minute or five-minute chart timeframes, for example, of the asset being traded. You could find prior trades based on that strategy and then add up the profits and losses, which would provide an idea of the profit produced that week.

How to backtest a trading strategy for free? ›

How to manually backtest a trading strategy?
  1. Clearly define a trading plan and in-depth strategy. A trading plan is developed based on the financial market, trading period, risk level, profit targets, general entry-exit levels, etc. ...
  2. Specify a financial market and timeframe. ...
  3. Begin the backtesting of strategy.

Where can I backtest a trading strategy? ›

You can perform these simulations using ProRealTime (PRT). This platform gives you the option to backtest a strategy, walk forward and use a market screener, so that you can filter stocks that fit your risk portfolio. You can also trade risk-free on current markets by opening a demo account with us.

Can I backtest on Thinkorswim? ›

When using thinkorswim OnDemand, traders have access to the following features: Run the backtesting software platform anytime of the day, including nights and weekends. Watch tick-by-tick price changes for stocks, futures, forex, and options.

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.

Is the TradingView stock screener accurate? ›

TradingView is very popular and trustworthy. It is avaiable via your web browser, desktop app and mobile app. It offers a free product and a premium paid product. It provides a wide range of tools and assets for charting, has news, contributors, trade ideas, screeners and more.

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.

What is the best website to filter stocks? ›

Investing.com is also a very powerful website for stock screening. You can find the list of all the companies trading on NSE and BSE here. There are a number of filters available on INVESTING for screening the stocks like ratios, price, volume & volatility, fundamentals, dividends, and technical indicators.

How to screen stocks for long-term investing? ›

There are many ways to pick stocks. Traditionally, longer-term investors have relied on fundamental analysis, which examines a company's management structure, competitors, industry position, growth rate, growth potential, income, and revenues to try to determine if it is a good value.

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 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

How do you calculate oversold stock screener? ›

Stock Screener - Oversold stocks
  1. Define the country, geography or index of your choice.
  2. Choose the filters that interest you.
  3. Rank the results according to your selection criteria.
  4. Save your settings to check them again later with a single click. Your Search. stocks match your search. Country Filter. India. 1 selected. All.

Can you backtest a portfolio? ›

You can analyze and backtest portfolio returns, risk characteristics, style exposures, and drawdowns. The results cover both returns and fund fundamentals based portfolio style analysis along with risk and return decomposition by each portfolio asset.

Top Articles
Latest Posts
Article information

Author: Nicola Considine CPA

Last Updated:

Views: 6687

Rating: 4.9 / 5 (69 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Nicola Considine CPA

Birthday: 1993-02-26

Address: 3809 Clinton Inlet, East Aleisha, UT 46318-2392

Phone: +2681424145499

Job: Government Technician

Hobby: Calligraphy, Lego building, Worldbuilding, Shooting, Bird watching, Shopping, Cooking

Introduction: My name is Nicola Considine CPA, I am a determined, witty, powerful, brainy, open, smiling, proud person who loves writing and wants to share my knowledge and understanding with you.