Print Page  
MISC / GROUP
StockID
Full Description
Our internal stock identifier is an integer that is incremented by one every time a new stock is added to the database. An interesting use of these factors is to split the universe in 2 or more samples for validation or out-of-sample testing.

EvenID: returns TRUE(1) if the stock's ID is even, FALSE(0) otherwise
StockID: returns the stock's unique ID, an integer value greater than 0

Examples

1. Use a rule like EvenID=TRUE while developing your system, then switch it to EvenID=FALSE to test the system out-of sample.

2. Create three different samples of approximately the same size
Mod(StockID,3)=0
Mod(StockID,3)=1
Mod(StockID,3)=2