Print Page  
FORMULA FUNCTIONS / CROSS SECTIONAL
FCount("expression" [, scope])
Full Description
Calculates the number of times a formula evaluates to TRUE (not 0) within each scope. FCount works like this:
  • The formula in quotes is evaluated for all the stocks in each scope. The formula could be a single factor, like "MktCap" or more complex like "Close(0)/Close(10)".
  • The number of stocks whose expression evaluates to TRUE (not zero) is counted for each scope
Parameters

formula: an expression that evaluates to TRUE or FALSE
scope: determines how stocks are grouped before counting (see below)

Examples:

Return only stocks in industry where at least 50% of the stocks made a new 52 week high in the past 10 trading days

  FCount("HighValBar( 250, 0)<10",#Industry) > NoConst * 0.5


Scope Parameter


Values Stocks ETFs Description
#AllYYOperates on current universe
#Previous1YYOperates on the results from previous rule
#GroupVar2YYOperates on groups based on value of variable @Group
--------------------------- For Stocks Only ---------------------------
#SP500YOperates within the SP500 universe
#SectorYOperates within each Sector of current universe
#SubSectorYOperates within each SubSector of current universe
#IndustryYOperates within each Industry of current universe
#SubIndustryYOperates within each SubIndustry of current universe
--------------------------- For ETFs Only ------------------------------
#FamilyYOperates within each ETF Family
#AssetClassYOperates within each ETF Class
#RegionYOperates within each ETF Region
#CountryYOperates within each ETF Country
#MethodYOperates within each ETF Method
#StyleYOperates within each ETF Style
#SizeYOperates within each ETF Size
#ETFSectorYOperates within each ETF Sector
1Available only in the Screener and Custom Universe
2Not available in Ranking Systems