build_momentum

eap_pl.build_momentum(first=pl.date(1963, 6, 1), last=pl.date(2012, 11, 1))

Build the seven BEM momentum signals from legacy CRSP monthly returns.

Each signal compounds finite returns in its calendar-month window. A signal is missing when its window has too few observed returns. The output covers rows in the CRSP monthly stock file. Join it to the formation-month universe separately.

Parameters

Name Type Description Default
first polars.Expr First formation month, inclusive. pl.date(1963, 6, 1)
last polars.Expr Last formation month, inclusive. pl.date(2012, 11, 1)

Returns

Name Type Description
polars.DataFrame Stock-month keys and seven signals in percentage points. mom, lag12, and lag6 exclude the formation month. r12m, r9m, r6m, and r3m include it.