Click here to Login





                                                   Help with Survivorship Bias Free DB

  1

0
Dave W.
2014-02-17 18:15:41


Hi. I'm trying to follow the article here: Getting Accurate Backtesting Results: Survivorship bias-free S&P 500
Read more: http://www.quantshare.com/sa-435-getting-accurate-backtesting-results-survivorship-bias-free-s-p-500#ixzz2taVo8a9x

I've setup my custom database (named "sp500index"), created the downloader, and am trying to create the parser. If I'm understanding correctly, the article assumes the ticker symbol is in the first field, but it appears they have updated the csv format and the ticker is now in the 4th field. So, I updated the parser by adding three 'skipped' fields before the symbol field. That allowed me to properly locate and parse the symbol, but now there is an issue with the subsequent two fields not showing the correct values, which I don't know how to resolve.

Attached are screen shots displaying the issue and my setup. Can you help?

Screen shots:
https://drive.google.com/file/d/0BxSjaSuq_9wgMzVuc0syQ3d6VXc/edit?usp=sharing
https://drive.google.com/file/d/0BxSjaSuq_9wgN2p4SjllcERxckU/edit?usp=sharing
https://drive.google.com/file/d/0BxSjaSuq_9wgOHVpeko0WVpkUnM/edit?usp=sharing
https://drive.google.com/file/d/0BxSjaSuq_9wgOVJJWDEzbHdPU0E/edit?usp=sharing
https://drive.google.com/file/d/0BxSjaSuq_9wgU1NMN29rcmpCUnM/edit?usp=sharing
https://drive.google.com/file/d/0BxSjaSuq_9wga1FRRTRwQlZuX2c/edit?usp=sharing


Thanks,
Dave



QuantShare
2014-02-18 12:59:08

  0

Best Answer
Dave,

Instructions have been changed, please check the blog post again.



Dave W.
2014-02-19 21:23:36

  0

Thank you. The revised instructions address the main issue.

When I completed the process, there may still be something that isn't right with the screener code or something else I'm doing wrong. When I run the screener code in the article:
Read more: http://www.quantshare.com/sa-435-getting-accurate-backtesting-results-survivorship-bias-free-s-p-500#ixzz2tmz1gAng

- Select "Analysis" then "Screener"
- Click on "Create a new screen"
- Type the following formula: (Editor Mode)

inIndex = GetData('index', 'ivv', Zero);
inIndex = BetweenFirstLast(inIndex);
filter = hhv(inIndex, 100000000);

I only get 534 results from that screen. That seems low for the S&P500, which I think turns over an average of 3% - 4% per year. Does the screen get data all the way back to the start of the ivv custom database (December 2006 I think)? Do you get more securities when you run the screen?

Any suggestions on where I might be making an error? Thanks as always for your suggestions.






QuantShare
2014-02-20 11:30:45

  0

Yes, the screener is correct. This could be because:
- Only few data is available in the "ivv" custom database.
- No EOD data available for some securities (in this case the security is not displayed in the screener)
- "Automatically add new symbols" is not checked in the downloader




No more messages
0




Reply:

No html code. URLs turn into links automatically.

Type in the trading objects you want to include: - Add Objects
To add a trading object in your message, type in the object name, select it and then click on "Add Objects"










QuantShare

Trading Items
Dow Jones U.S. Technology Sector Index Fund survivorship bias-fre...
Survivorship bias-free S&P 500 database downloader
PEG and Price to Free Cash Flow above Market Averages
Long Term Up Trend with Short term re-entery Signals
Update the Stock Exchange Associated With U.S. Stocks - Market Fi...

How-to Lessons
How to use QuantShare with Metastock data
How to associate an index with a list of stocks
How to screen for stocks having a high correlation with the Dow J...
How to create a chart with a black background
How to speed up watchlist and screener plug-ins when working with...

Related Forum Threads
Help With Daily Data Import Script
Need help with a MM Script
Help with Quantshare Language
Help with a Red/Green positive/negative hatched graph?
Help with the following trading system

Blog Posts
Survivorship bias
Getting Accurate Backtesting Results: Survivorship bias-free S&P ...
10 ways to download historical stock quotes data for free
6 ways to download free intraday and tick data for the U.S. stock...
6 places to download historical intraday Forex quotes data for fr...









QuantShare
Product
QuantShare
Features
Create an account
Affiliate Program
Support
Contact Us
Trading Forum
How-to Lessons
Manual
Company
About Us
Privacy
Terms of Use

Copyright © 2024 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
Follow us on Google+
RSS Trading Items



Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.