Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 01/22/26 12:25
MRC.c and WFO
by 11honza11. 01/22/26 10:33
Buy A8 Pro Version
by Spirit. 01/21/26 21:37
Bar missing bug?
by jcl. 01/19/26 10:47
400 free seamless texture pack downl. here !
by NeoDumont. 01/18/26 19:09
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (TipmyPip, 2 invisible), 8,927 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Castromangos, Quantum, stephensdeborah, promfast, joe_kane
19193 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: 35
Q
qin Offline OP
Newbie
qin  Offline OP
Newbie
Q

Joined: Jan 2023
Posts: 35
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,053
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,053
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: 35
Q
qin Offline OP
Newbie
qin  Offline OP
Newbie
Q

Joined: Jan 2023
Posts: 35
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
01/02/26 02:18
01/02/26 02:18
Joined: May 2018
Posts: 138
S
SBGuy Offline
Member
SBGuy  Offline
Member
S

Joined: May 2018
Posts: 138
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
01/02/26 21:59
01/02/26 21:59
Joined: Sep 2003
Posts: 933
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 933
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.

Re: How to construct an Survivorship Bias free asset lists? [Re: qin] #489066
01/04/26 18:27
01/04/26 18:27
Joined: May 2018
Posts: 138
S
SBGuy Offline
Member
SBGuy  Offline
Member
S

Joined: May 2018
Posts: 138
in a multiyear backtest of index components, e.g. SP500, the components change as the index gets rebalanced. the SP500 components today, is not the same as those in 2022, etc.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1