Skip to content

Commit 1ce62aa

Browse files
committed
Added signal CAPEX_DEPR_RATIO
1 parent a3c7c7d commit 1ce62aa

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
- Added signals: `PCASH`, `PAYOUT_RATIO`, `BUYBACK_RATIO`,
1010
`PAYOUT_BUYBACK_RATIO`, `RD_REVENUE`, `RD_GROSS_PROFIT`, `RORC`,
1111
`ACQ_ASSETS_RATIO`, `INVENTORY_TURNOVER`, `QUICK_RATIO`, `LOG_REVENUE`,
12+
`CAPEX_DEPR_RATIO`
1213

1314
- Added functions `sf.rel_change_ttm_1y` and `sf.rel_change_ttm_2y`
1415
e.g. for use in signal-calculations.

simfin/names_extra.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@
140140
#: Net Acquisitions & Divestitures / Total Assets.
141141
ACQ_ASSETS_RATIO = 'Net Acquisitions / Total Assets'
142142

143+
#: Capital Expenditures / (Depreciation + Amortization).
144+
CAPEX_DEPR_RATIO = 'CapEx / (Depr + Amor)'
145+
143146
#: Log10(Revenue).
144147
LOG_REVENUE = 'Log Revenue'
145148

simfin/signals.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,10 @@ def _signals(df):
421421
df_signals[ACQ_ASSETS_RATIO] = \
422422
-df[NET_CASH_ACQ_DIVEST] / df[TOTAL_ASSETS]
423423

424+
# Capital Expenditures / (Depreciation + Amortization).
425+
# Note the negation because CAPEX is negative.
426+
df_signals[CAPEX_DEPR_RATIO] = -df[CAPEX] / df[DEPR_AMOR]
427+
424428
# Log10(Revenue).
425429
df_signals[LOG_REVENUE] = np.log10(df[REVENUE])
426430

@@ -438,7 +442,8 @@ def _signals(df):
438442
df2 = df_balance_ttm[columns]
439443

440444
# Get relevant data from Cash-Flow Statements.
441-
columns = [DIVIDENDS_PAID, CASH_REPURCHASE_EQUITY, NET_CASH_ACQ_DIVEST]
445+
columns = [DIVIDENDS_PAID, CASH_REPURCHASE_EQUITY, NET_CASH_ACQ_DIVEST,
446+
CAPEX, DEPR_AMOR]
442447
df3 = df_cashflow_ttm[columns]
443448

444449
# Calculate Free Cash Flow.

0 commit comments

Comments
 (0)