Backtest Based on Equity Screens
Author: jahlbeck
Creation Date: 2/3/2011 9:47 AM
profile picture

jahlbeck

#1
Can the system back test a portfolio based on the equity screens provided on Fidelity's web site?

For instance, can the system back test "buys" based on companies passing screening criteria and "sells" based on companies failing the screening process?

I am using 8 different screens that result in approximately 20 holdings today.
profile picture

Eugene

#2
Yes - as long as you follow the "screen" every day, manually recording the company + entry/exit signal (or grabbing it with a custom app), and keeping the history in CSV files.

Then you, for example, could:

1. Solution A: code each "entry" and "exit" with a 1 and 0 (i.e. binary wave) for each symbol, create a DataSeries array i.e. one DataSeries per each stock involved in the screening process, fill these DataSeries using this helper function from Community.Components: FillSeriesFromFile, and entry/exit accordingly (in pseudocode):
QUOTE:
if( FilledDataSeries[n].Description == Bars.Symbol )
..if( FilledDataSeries[n][bar] > 0 )
...Buy...


2. Solution B: save the collected entry/exit signals in one of the two formats supported by this method and just click "Execute":

Import real (historical) trades
profile picture

Cone

#3
I think he's asking if you can code and backtest the screens in Wealth-Lab Pro.

Answer: Sure you can, if the historical data used in your screens are available to WLP. Give us an example of one of your screens.
profile picture

jahlbeck

#4
Here is an example of a set of screens that I might use. This comes from Fidelity's web site:

1. Dividend Yield is in the range of 3% to 5%

2. P/E is 15 or less.

3. Interest Coverage is greater than or equal to 6.

4.Market Capitalization is over 3 Billion

5.Dividend Groth rate for last 5 years is 5% or greater

6.Earnings Per Share growth rate is projected to be 10% or greater
profile picture

Eugene

#5
With the exception of an occasional condition for which there might not be a fundamental item available, I guess you could build a system using the Rule Wizard.

If some condition can't be found on the WLP's list of rules, use the General Fundamentals group and specify the fundamental item from the list (where it says "Click here to select a fundamental item").
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).