How to Reproduce a Strategy Simulation using the Screener Backtest

Marco Salerno
Written by Marco SalernoLast updated 3 days ago

Strategy Simulations and Screen Backtests are very different tests. The results will almost never be identical, but one can force simulations to act very similarly to a backtest.

Screen Backtests

They are built around baskets of stocks or ETFs that have passed the rules. It starts with $100 at the beginning of the first rebalance period and then puts an equal amount into each stock using partial shares. The amount will thus be exactly equal. If 10 stocks are returned, then it puts $10 into each. If the screen returns 10,000, then there will be $0.01 in each.

At the end of the first rebalance period, the value of the basket is determined and this becomes the initial value of the next rebalance period. This is continued for the duration of the test, and the initial and final values determine the statistics and annualized return.

Strategy Simulations

Simulations are a holistic investing approach. They require both that the user determines a set number of holdings and a ranking system. The strategy tool will select the highest-ranking securities in the universe that are not already owned, and that pass the buy rules.

Treatment of dividends are different and more realistic. The dividend is added to the cash on the ex-date and made avaialbel at the next rebalance. Screen Backtests simply use prices fully adjusted for splits using the ex-date, which makes the dividend available sooner.

Perhaps the largest difference, however, is that the simulations have separate sell rules. Many people make the mistake of not putting sell rules into the simulation, and this will cause the strategy to never sell (except if a stock leaves the universe).

How to make a Portfolio Simulation more like a Screen Backtest

To replicate the returns more closely, use the following settings in the simulation:

  • On the General tab, set the transaction costs to zero and set the Slippage to a fixed amount that matches the screener.

  • On the Rebalance tab, set Allow Immediate Buyback to Yes.

  • On the Universe & Ranking tab, set Force Positions into Universe to No.

  • On the Sell Rule tab, use a single rule: True

  • On the Restrictions tab, set Allow Mergers to Yes and Load Global Restrictions to Yes. (These are rarely material, but the screen uses these settings by default.)

This will force the simulation to reevaluate its holdings at every rebalance, just like a screen.

There are a couple of things worth noting. First, except under some very specific circumstances the returns and statistics will never match exactly. This is because of the use of partial shares in the backtest and whole shares in the simulation, as well as the differing treatment of dividends.

Also, this question typically comes up while people are learning the site and checking the results of various tests. It bears consideration, though, that forcing the strategy tool to operate as the screen is generally not a good idea: The settings that you are changing are usually either a source of additional alpha or valuable downside protection.

Did this article help you solve your issue?

Portfolio123 - Help Center

© 2025 Portfolio123 - Help Center. All rights reserved.

Knowledge Base Software by Customerly