Helping investors beat the market.

Create Your Relative Strength Backtest

A backtest is a simulation of an investment strategy using historical prices. Relative strength strategies for investing involve selecting stocks with highest relative strength and the strongest signals to form a portfolio.

What stocks would you like to include in your investment universe?

Select benchmarks that you would like to compare your strategy's performance against.

Screen your portfolio to select stocks in an uptrend. Stocks in a long term uptrend usually trade above their 200 day simple moving average. If no stocks are above their moving average, the investment strategy will be holding cash.

Moving Average Period

Allocate weights to each of the signals to customize your own trading signal for relative strength investing. Stocks with highest relative strength and the strongest signals are bought and stocks with the weakest signals are sold.

Select Signal Weight
6 Month Returns
P/E Ratio
Free Cash Flow Yield
Net Profit Margin
Add another signal

Select the number of stocks you want to hold in your portfolio.

Number of stocks in portfolio

How often should your portfolio be rebalanced?

Portfolio rebalancing frequency

Do you want to use PyInvesting's Fear and Greed Index to adjust cash allocation based on market sentiment?

Which base currency would like to use for your backtest? PyInvesting will simulate your investment strategy taking into account forex fluctuations among instruments with different currencies.

Base Currency

Backtest Name