Backtest start end options

Subscribers can now set specific start and end dates on all portfolio Relative Strength, Regime, Ratio MA, Moving Average and Channel backtests.

All the backtests still allow you to simply set the start and end year, if so desired. But, it is now also possible to choose a custom start and / or end date, as per the example below:

 

 

Note: if the specified start date is not a valid rotation day, the backtest will start on the chosen day and will invest in the picked securities as of the rotation date that immediately preceded the specified start date.

For example:

If a monthly rotating Portfolio Relative Strength backtest has a chosen start date is Jan 10, 2023, the backtest will begin on Jan 10, 2023 and will invest in the top x ranked ETF(s) through Dec 31, 2022.

If a quarterly rotating Portfolio Moving Average backtest has a chosen start date is Nov 29, 2019, the backtest will begin on Nov 29, 2019 and will invest in ther ETF(s) that were above their MA through Sep 30, 2019 (and will invest in cash for those that were below).

etc. etc.

 

Import your own data

With a Pro Subscription it is now possible to import your own data series for use with any tool or backtest on the website.

 

 

To import your own data, click on the new Import Data link and then create a series by clicking on the 'Add Data Series' button. Enter a ticker symbol (a $ prefix is added automatically to any imported series) and give your data series a name.

To add data to a series, simply click 'Import' and choose the Excel file that contains your data. 

Note that:

  • The Excel document must be a .xlsx file and the sheet must be named Sheet1 (no space) and contain 2 columns; Date and Value
  • The data must be daily (U.S. trading dates only; non-valid dates will be ignored / omitted)
  • The earliest allowable date is Dec-31, 1996
  • The sheet should not contain any date gaps between the first date and the last date to be uploaded (other than market holidays and weekends)
  • New data can be appended or backfilled, or existing data can be overwritten (see following note)
  • Any existing data will be overwritten by newly uploaded data that has the same date

 

 

Up to 25 Imported Data series can be created and their symbols can be added to portfolios and therefore used with any backtest. Your Imported Data symbols are private; they can only be used by you. i.e. other subscribers cannot use them in charts or add them to a portfolio etc.

To edit or remove a series, click on its name in the Imported Data Series table.


Regular subscribers can upgrade to a Pro Subscription at My Account > Subscription Settings > Upgrade to Pro

 

Parameter Performance Summaries: Max Drawdown

We have expanded the range of backtest statistics produced by the Parameter Performance Summaries with the addition of max drawdown.

The Parameter Performance Summaries make it possible to backtest numerous different parameter values in one go and assess the results.  The table of backtest results is ordered by total return by default, but can now also be sorted by max drawdown (Max DD) as well as by win percentage, parameter value etc.

 

 

The Parameter Performance Summaries are available to both regular and pro annual subscribers:

As always, studying the guidelines that we published within the original Parameter Summaries announcement is highly recommended.

New Ratio MA Composite Backtest

We have added a new composite version of the Ratio Moving Average backtest, which makes it possible to diversify across a range of MA lengths.

The Ratio MA backtest creates a ratio of the Total return value (not just price) of two securities; Risk On / Risk Off.  The ratio will rise when the Risk On security outperforms the Risk Off security and fall when Risk-On underperforms.

The regular Ratio MA backtest invests in the Risk On security when the ratio is above its x-period moving average (i.e. the ratio is trending up) and switches to Risk Off when the ratio is below its MA.

The new Ratio MA Composite backtest reduces the risk of choosing a single MA length that, though it backtested well, turns out to perform poorly. For instance, rather than relying solely on a 6-month moving average, with the possibility that it underperforms in the future, the example below employs a range of moving average lengths from 3-month through 12-month with a step value of 1. This means that, each month, the backtest will compare the VUG / RSP ratio to its 3-month moving average, 4-month MA, 5-month, 6…11 and 12-month MA and invest 10% in the chosen security from each.

 

click image to view full size version

 

The step value can be changed to strike the desired balance between MA length diversification and real-world practicality. For instance, if the step value was increased to 2 in the above example, then the backtest would compare the VUG / RSP ratio to its 3-month, 5-month, 7, 9 and 11-month moving averages and invest 20% in the ETF resulting from each of those.

The composite can also be employed as a blended regime indicator using the weights displayed in the Backtest Trade History table. 

The new Ratio MA Composite and the RS Composite backtest, which we introduced at the end of January, are available to all (regular and pro) annual subscribers.

notes:

  1. To see how each of the MA lengths performed individually, rather than as a composite, use the Ratio MA Parameter Performance Summary. The Parameter Performance Summary results can then be used to narrow the range between the min and max MA lengths.
  2. If, rather than using a ratio, you want a backtest employing a range of moving average lengths on a single ETF,  then you can use XZERO as the Risk Off security.  XZERO is simply a zero return index (i.e. it's a constant), so an MA of the ratio ABC / XZERO is the same as a moving average of ABC itself.  See Using SPY as a regime switch.

 

Introducing the Relative Strength Composite Backtesting Module -- Using a RANGE of Timeframes To Improve Performance Consistency

Instructional video on how to use Composite Relative Strength to improve your ETF backtesting process.  #STUDY

 

to expand video on screen, click the '4 expanding arrows' icon in the bottom right corner of the video screen. Use the settings icon to change to 1080 quality if it seems at all blurry

 

See also: RS Parameter Performance Summary