Navigation: Realtest Script Language > Syntax Element Details > #ByCII Category Cross-Sectional Functions Description A secondary cross-sectional function, which requests that the primary function be calculated separately for each group of stocks that share the same corresponding industry index Example StockRank: #Rank #ByCII if(InSPX, ROC(C, 30), -999) Ranks $SPX constituents separately by Norgate corresponding industry index. Notes See also ?CII, CIIFamily, and CIILevel. See the cii_rotate.rts sample script for a complete example. Copyright © 2020-2026 Systematic Solutions, LLC