Gamestudio Links
Zorro Links
Newest Posts
bar time, right side open or close?
by qin. 01/02/26 02:15
long time to load data
by qin. 12/31/25 09:57
The new evaluation shell
by jcl. 12/29/25 09:56
about Zorro S (monthly)
by AndrewAMD. 12/29/25 03:24
Xor Memory Problem.
by TipmyPip. 12/26/25 19:14
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
5 registered members (PeroPero, Spirit, Quad, 2 invisible), 8,074 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Syndrela, HDRSEO, AOUNZA, digitalboy381, agasior
19190 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How to construct an Survivorship Bias free asset lists? #489050
12/28/25 07:50
12/28/25 07:50
Joined: Jan 2023
Posts: 22
Q
qin Offline OP
Newbie
qin  Offline OP
Newbie
Q

Joined: Jan 2023
Posts: 22
I wonder ow to construct an Survivorship Bias free asset lists?

Re: How to construct an Survivorship Bias free asset lists? [Re: qin] #489053
12/29/25 09:33
12/29/25 09:33
Joined: Jul 2000
Posts: 28,044
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,044
Frankfurt
If you mean with "Survivorship Bias" the survivors of a stock index, add removed stocks and their history for constructing a bias free list.

Re: How to construct an Survivorship Bias free asset lists? [Re: qin] #489056
12/29/25 11:31
12/29/25 11:31
Joined: Jan 2023
Posts: 22
Q
qin Offline OP
Newbie
qin  Offline OP
Newbie
Q

Joined: Jan 2023
Posts: 22
if only add removed stocks to asset list file seems not enough. Because at first, it was not in the index then it came in the index, and then it is removed from the index. In the script, I need know when it is in the index and when it is not. Is that possible?

Re: How to construct an Survivorship Bias free asset lists? [Re: qin] #489061
Yesterday at 02:18
Yesterday at 02:18
Joined: May 2018
Posts: 137
S
SBGuy Offline
Member
SBGuy  Offline
Member
S

Joined: May 2018
Posts: 137
I had a similar issue, but concluded that Zorro just can't do it.

jcl, it would be nice to have an AssetRemove() function, just like AssetAdd().

Historical index consituents are available from various data vendors like EODHD, FMP, etc.

That information can then be translated into assetAdd and assetRemove calls during a backtest.

This way, the backtest results on index-related strategies or indicators (e.g. breadth) will not have survivorship bias, and be more accurate.

Re: How to construct an Survivorship Bias free asset lists? [Re: qin] #489062
Yesterday at 21:59
Yesterday at 21:59
Joined: Sep 2003
Posts: 930
Spirit Online

Moderator
Spirit  Online

Moderator

Joined: Sep 2003
Posts: 930
I do not understand your difficulties, why do you not simply trade the asset only while it is in the index? This is just 1 line of code.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1