PyInvesting

Relative strength

Build a relative strength backtest

Rank a selected universe by relative strength, then define the portfolio and comparison assumptions.

Define the universe, assumptions, and comparison benchmark before running the simulation.

Research universe

Choose a fixed list of instruments or a historical US stock universe.

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

0 instruments selected

Review selected instruments

Comparison benchmarks

Compare your strategy with up to three market references.

1 of 3 selected
Selected

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
Profit Growth
Revenue Growth
P/S Ratio

Number of stocks in portfolio


Portfolio rebalancing frequency


Base Currency


Backtest Name