Table Of Contents

Previous topic

operation – Alpha transformations

Next topic

perf – Performance analysis

This Page

universe – Universe filters

universe.base

universe.ops

universe.rules

universe.special

universe.factory

universe.common

ticker filters

orca.universe.common.SH

Filter that is true for stocks listed in Shanghai market.

orca.universe.common.SZ

Filter that is true for stocks listed in Shenzheng market.

orca.universe.common.CYB

Filter that is true for stocks listed in ChiNasdaq of Shenzheng market.

orca.universe.common.ZXB

Filter that is true for stocks listed in Mid&Small Entreprises Board of Shenzheng market.

orca.universe.common.SZS

Filter that is a union of CYB and ZXB.

orca.universe.common.SZB

Filter that excludes SZS from SZ.

IPO filters

orca.universe.common.T1Y

Filter that is true for stocks have at least 1 year’s trading days in the last one year plus a quarter.

active filter

orca.universe.common.ACTIVE

Filter that is true on a day for stocks that are actively traded that day.

index components filter

orca.universe.common.HS300
orca.universe.common.CS500
orca.universe.common.CS800

industry filter

orca.universe.common.FINANCE

Filter that is true for stocks in finance (banking and derivative banking industries) as defined by SW2014.

orca.universe.common.NONFIN

Filter that is the negate of FINANCE.

orca.universe.common.BANK
orca.universe.common.NONBANK

cap filter

class orca.universe.common.TotalCapFilter

Subclass of orca.universe.base.DataFilter created by factory function orca.universe.factory.create_cap_filter() with shares=a_shares.

class orca.universe.common.TotalCap70
class orca.universe.common.TotalCap60

Filter that is true for stocks ranked in top 70/60 percent in terms of average total capitalization size within the last quarter.

class orca.universe.common.TotalCapT30
class orca.universe.common.TotalCapB30
class orca.universe.common.TotalCapM40

These three filters cut the whole universe into top 30, bottom 30 and middle 40 (i.e. big, small, midium companies) of average total capitalization size within the last quarter.

class orca.universe.common.FloatCapFilter

Subclass of orca.universe.base.DataFilter created by factory function orca.universe.factory.create_cap_filter() with shares=a_float_nonrestricted.

class orca.universe.common.FloatCap70
class orca.universe.common.FloatCap60

Filter that is true for stocks ranked in top 70/60 percent in terms of average float capitalization size within the last quarter.

class orca.universe.common.FloatCapT30
class orca.universe.common.FloatCapB30
class orca.universe.common.FloatCapM40

These three filters cut the whole universe into top 30, bottom 30 and middle 40 (i.e. big, small, midium companies) of average float capitalization size within the last quarter.

liquidity filters

class orca.universe.common.AmountFilter

Sublcass of orca.universe.base.SimpleDataFilter created by factory function orca.universe.factory.create_quote_filter() with dname=amount.

class orca.universe.common.Liq70
class orca.universe.common.Liq60

Filter that is true for stocks ranked in top 70/60 percent in terms of average trading amount within the last quarter.

factory for cap&liquidity composite filters

orca.universe.common.create_topliquid_filter(cap, liq, window=61)
Parameters:cap, liq (numeric) – The percentage threshold in terms of total capitalization/trading amount
orca.universe.common.create_backtesting_topliquid_filter(cap, liq, window=61)

For backtesting, any filter created by create_topliquid_filter() should be intersected with orca.universe.common.ACTIVE.