InfoDelist InSPX Norgate Data RealTest RealTest Code Survivorship Bias

Norgate Survivorship Bias Proof in RealTest Using InSPX, InNDX, and InfoDelist

Summary

Prove survivorship bias directly inside RealTest 2.0 using Norgate Data's historical index membership flags (InSPX, InNDX, InRUI) versus active-only stocks filtered by InfoDelist = 99991231 (never InfoDelist = 0 or IsNan(InfoDelist), which both return zero trades!).

· 5 min read
RealTest 2.0 survivorship bias workbench displaying 18-year honest InSPX vs inflated survivors-only curves left, InfoDelist 99991231 script top right, and results bottom right
Key findings
  • Crucial RealTest 2.0 syntax discovery verified via live Scan is that Norgate Data stores InfoDelist as integer 99991231 (December 31, 9999) for active non-delisted stocks, NOT 0 and NOT NaN; both InfoDelist = 0 and IsNan(InfoDelist) silently return zero trades.
  • Delisted stocks in Norgate Data (such as ABMD-202212 or ATVI-202310) carry their exact YYYYMMDD delisting date integer in InfoDelist (for example, 20221221), allowing instant empirical comparison between survivorship-free and biased universes.
  • Point-in-time historical index flags in Norgate Platinum and Diamond (InSPX for S&P 500, InNDX for Nasdaq-100, InRUI for Russell 1000, InRUT for Russell 2000) prevent both survivorship bias and lookahead index-addition bias automatically.
  • Validated in RealTest 2.0 across 18 years (2007 through 2024, 4,530 trading days, $100,000 start) on an oversold S&P 500 dip-buying rule (InSPX and C > 5 and RSI(2) < 5), honest mr_survivorship_free produced $114,406 (+14.4 percent net profit across 7,016 trades).
  • Running the EXACT same rules while excluding delisted companies via InfoDelist = 99991231 (mr_biased_survivors_only, 6,609 trades) inflated ending equity to $140,145 (+40.1 percent net profit), creating +25.7 percentage points of phantom return (nearly 3x the real net profit!) simply by hiding 407 delisted trades.
  • Free data sources like Yahoo Finance lack delisted stocks and historical constituent histories, making mean-reversion backtests on current S&P 500 or Nasdaq-100 ticker lists dangerously misleading without Norgate Data.

Every week on the RealTest user forum, newer traders ask whether they really need a Norgate Data Platinum or Diamond subscription when Yahoo Finance is free, or why a mean-reversion strategy that looked unstoppable on current Nasdaq-100 tickers falls apart once historical delisted stocks enter the universe. Rather than repeating abstract theory, you can prove the exact dollar cost of survivorship bias in 10 lines of RealTest 2.0 code.

While building this exact proof in RealTest 2.0, we also caught a huge undocumented syntax trap that trips up almost every trader and AI coding assistant querying InfoDelist. Every directive below follows the official RealTest InfoDelist and Norgate constituency documentation and was verified live across 18 years (2007 through 2024) of historical S&P 500 data.

The InfoDelist = 99991231 Trap & Norgate Point-in-Time Index Flags

If you try to filter out delisted stocks in RealTest using InfoDelist = 0 or IsNan(InfoDelist), RealTest compiles cleanly and returns 0 trades! Running a live RealTest Scan on Norgate's SPY_Tickers.rtd reveals why.

Norgate Data Field / Flag Common Mistake Verified RealTest 2.0 Value / Usage
Active non-delisted stock check InfoDelist = 0 or IsNan(InfoDelist) (0 trades!) InfoDelist = 99991231 (Norgate sentinel date Dec 31, 9999)
Delisted company example Assuming delisted symbols vanish ABMD-202212 returns InfoDelist = 20221221 (YYYYMMDD)
Honest S&P 500 point-in-time test Importing today's 500 SPY tickers from Yahoo InSPX (requires Norgate Platinum or Diamond)
Nasdaq-100 / Russell 1000 / Russell 2000 Static watchlist of current winners InNDX, InRUI, InRUT (point-in-time constituent flags)

Why is survivorship bias so lethal specifically to dip-buying and mean-reversion systems? Because trend-following systems naturally exit collapsing stocks on breakdowns, whereas oversold RSI(2) dip buyers intentionally catch falling knives! On a survivorship-biased Yahoo Finance list of today's S&P 500 survivors, every stock that dropped 40 percent in 2008 or 2023 miraculously bounced back because bankrupt banks like Lehman Brothers, Washington Mutual, Silicon Valley Bank, and First Republic were deleted from the list! For a full breakdown of Norgate subscription tiers and setup, read our Norgate Data and RealTest integration guide.

Complete Validated RealTest Script (Honest InSPX vs Survivors-Only InfoDelist = 99991231)

Run this clean A/B proof across 2007 through 2024 on Norgate S&P 500 Current & Past data. Both strategies execute identical oversold RSI(2) < 5 limit dip entries with Allocation: S.Equity; the ONLY difference is hiding delisted companies via InfoDelist = 99991231.

Notes:
	Empirical survivorship bias proof in RealTest 2.0 comparing point-in-time
	Norgate S&P 500 constituents (InSPX including delisted companies) against
	a survivors-only filter (InfoDelist = 99991231) on identical dip-buying rules.

Settings:
	DataFile:	C:\RealTest\Data\SPY_Tickers.rtd
	StartDate:	2007-01-01
	EndDate:	2024-12-31
	AccountSize:	100000
	BarSize:	Daily

Parameters:
	numPos:	10

Data:
	ma200:	Avg(C, 200)
	rsi2:	RSI(2)
	atr14:	ATR(14)
	liquid:	C > 5 and Avg(C * V, 20) > 20000000
	// Classic oversold dip-buyer in S&P 500 constituents (shows true delisting tail risk)
	mrCond:	InSPX and liquid and rsi2 < 5

Template: surv_base
	Side:	Long
	Allocation:	S.Equity
	EntryLimit:	C - 0.35 * atr14
	EntryTime:	Intraday
	LimitExtra:	0.001 * C
	SetupScore:	100 - rsi2
	QtyType:	Percent
	Quantity:	100 / numPos
	MaxPositions:	numPos
	MaxExposure:	100
	Commission:	Max(1, Shares * 0.005)
	OpenSlip:	0.0005 * FillPrice
	ExitStop:	IF(BarsHeld >= 1, FillPrice - 3 * atr14[BarsHeld], 0)
	ExitRule:	C > H[1] or BarsHeld >= 7
	ExitTime:	NextOpen
	Ambiguity:	Stop

// 1. Honest point-in-time backtest including all delisted and bankrupt S&P 500 stocks
Strategy: mr_survivorship_free
	Using:	surv_base
	EntrySetup:	mrCond

// 2. Survivorship-biased illusion (keeps ONLY active stocks with InfoDelist = 99991231)
Strategy: mr_biased_survivors_only
	Using:	surv_base
	EntrySetup:	mrCond and InfoDelist = 99991231

Charts:
	MA200:	ma200

Validated 18-Year Empirical Proof (2007 to 2024 S&P 500 Dip Buyer)

Look at how dramatically a single biased filter alters 18 years of backtest truth. (Note that the blue Combined line in the chart sums both 100%-allocated A/B test strategies simultaneously; inspect the standalone green versus red curves for the apples-to-apples comparison.)

Universe Configuration (2007 to 2024, 4,530 Bars) Completed Trades Ending Equity ($100k start) Net Profit Phantom Bias Inflation
mr_survivorship_free (Honest Norgate InSPX) 7,016 $114,406 +$14,406 (+14.4%) Baseline truth
mr_biased_survivors_only (InfoDelist = 99991231) 6,609 $140,145 +$40,145 (+40.1%) +$25,739 (+2.79x fake profit!)
RealTest 2.0 empirical survivorship bias chart contrasting survivorship-free InSPX backtest against inflated InfoDelist equals 99991231 survivors-only illusion
RealTest 2.0 18-year survivorship bias proof showing the biased survivors-only curve (dark red, $140,145) floating relentlessly above the honest survivorship-free InSPX curve (green, $114,406) purely from hiding 407 delisted trades.

Look at that persistent gap starting right in 2008 and compounding all the way through 2024. Excluding just 407 trades on delisted S&P 500 companies (less than 6 percent of all setups!) nearly tripled apparent net profit from +$14,406 to +$40,145! And notice this test still gave the biased curve an advantage by keeping historical InSPX membership on surviving stocks, whereas testing an unfiltered static list of 2024's current S&P 500 or Nasdaq-100 winners inflates returns even further by injecting future mega-cap winners like NVDA and TSLA years before they joined the index (see our TotalReturn dividends and splits guide and our survivorship-free S&P 500 mean-reversion blueprint).

Trade Only Survivorship-Free, Point-in-Time Validated RealTest Systems

Every stock strategy published by SetupAlpha is engineered, stress-tested, and verified strictly on survivorship-free Norgate Data with point-in-time index constituency (InSPX, InNDX, InRUI) and realistic transaction costs. Read our full testing checklist on the SetupAlpha Strategy Validation Process page.

Ready to deploy clean, survivorship-free equity mean reversion? Inspect our RealTest SPX Mean-Reversion Strategy, our RealTest Nasdaq 100 Mean-Reversion Strategy, and our RealTest Low Drawdown Nasdaq Mean Reversion Strategy.

Key terms

InfoDelist Sentinel 99991231
The exact integer returned by RealTest's InfoDelist property for active, non-delisted Norgate equities (whereas delisted stocks return their YYYYMMDD delisting date).
Survivorship Bias
The distortion created when historical backtests include only companies that survived until today, hiding bankruptcies and delistings and artificially inflating apparent returns.
Point-in-Time Constituency
Historical index membership flags (InSPX, InNDX, InRUI, InRUT) tracking the exact stocks belonging to an index on every past date.
End of Data Exit
RealTest's automatic position exit triggered on the final trading bar of a delisted or acquired stock so historical tests never hold zombie positions.
Lookahead Addition Bias
Backtest contamination caused by applying today's index watchlist backwards in time, retroactively buying future superstar stocks years before they qualified for the index.

Frequently asked questions

Why does InfoDelist = 0 return zero trades in RealTest with Norgate Data?

In RealTest 2.0 with Norgate Data, active non-delisted symbols return the sentinel integer 99991231 (December 31, 9999) for InfoDelist, NOT 0 and NOT NaN. Checking InfoDelist = 0 or IsNan(InfoDelist) evaluates to false for both active and delisted stocks, resulting in zero trades.

What Norgate Data subscription tier is required for InSPX and InNDX in RealTest?

Norgate Data Platinum includes point-in-time historical constituency for major US indices like the S&P 500 (InSPX) and Nasdaq-100 (InNDX) plus all delisted US equities. Norgate Diamond adds Russell 1000 (InRUI), Russell 2000 (InRUT), and Russell 3000 historical index membership.

How much does survivorship bias inflate mean-reversion backtests?

In our 18-year RealTest 2.0 test (2007 through 2024) on S&P 500 RSI(2) dip entries, excluding delisted companies via InfoDelist = 99991231 skipped 407 delisted trades and inflated net profit from +$14,406 (+14.4 percent) to +$40,145 (+40.1 percent), nearly tripling apparent gains.

Can you backtest individual US stocks accurately in RealTest using free Yahoo Finance data?

Yahoo Finance works fine for major index ETFs like SPY, QQQ, GLD, and TLT, but it omits delisted equities and historical index membership. Using Yahoo Finance for individual stock mean reversion or small-cap systems injects severe survivorship and lookahead bias.

What does a delisted ticker symbol look like inside Norgate Data and RealTest?

Norgate appends the delisting year and month to historical delisted symbols (for example, ABMD-202212 or ATVI-202310) and populates InfoDelist with the exact YYYYMMDD integer delisting date so RealTest closes open positions cleanly on the final trading day.

Does RealTest automatically exit positions if a stock gets delisted?

Yes. When a stock reaches its final available bar in Norgate Data, RealTest automatically closes the open position at the final bar's closing price with Exit Reason 'end of data', capturing real delisting losses or buyout prices honestly.

Related strategies

RealTest SPX Mean-Reversion
Survivorship-free S&P 500 mean-reversion RealTest code validated strictly on historical InSPX point-in-time Norgate data.
View →
RealTest Low Drawdown Nasdaq Mean Reversion Strategy
Point-in-time InNDX Nasdaq-100 mean-reversion system built with disciplined volatility controls and zero survivorship bias.
View →
RealTest Nasdaq 100 Mean-Reversion Strategy
Complete open-source Nasdaq-100 mean-reversion RealTest script validated cleanly with delisted historical constituents.
View →
← Back to Learn

#1 RealTest Backtests

Supercharge Your Trading Now

Reduce drawdown, build diversification, or speed up your development time.

Browse RealTest Strategies