Gamestudio Links
Zorro Links
Newest Posts
Hedge on FXCM, 4 or 5?
by Martin_HH. 02/16/26 16:09
Camera always moves upwards?
by clonman. 02/16/26 11:44
Zorro version 3.0 prerelease!
by jcl. 02/12/26 14:05
MarginCost discrepancy?
by jcl. 02/12/26 14:02
CMC MT4 CFD vs FX Active - what's better?
by mayarik. 02/11/26 11:00
print a "still alive" log
by qin. 02/10/26 12:16
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (Martin_HH, TipmyPip, Quad), 6,658 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon, mayarik
19198 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: 48
Q
qin Offline OP
Newbie
qin  Offline OP
Newbie
Q

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

Chief Engineer
jcl  Offline

Chief Engineer

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

Joined: Jan 2023
Posts: 48
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: 934
Spirit Offline

Moderator
Spirit  Offline

Moderator

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