Systemicbeta

Fundamental: Piotroski F-Score

systemic:core-pfsIndicators

Inputs

NameTypeDescription
Year Lag (4 for quarterly data)Whole numberHow many bars back each test looks to find the same period one year earlier.
Net IncomeNumber seriesThe company's net income over the trailing twelve months.
Cash Flow From OperationsNumber seriesThe company's operating cash flow over the trailing twelve months.
Total AssetsNumber seriesThe company's total assets at each quarter-end.
Long-Term DebtNumber seriesThe company's long-term debt at each quarter-end.
Current AssetsNumber seriesThe company's current assets at each quarter-end.
Current LiabilitiesNumber seriesThe company's current liabilities at each quarter-end.
Shares OutstandingNumber seriesThe company's number of shares outstanding.
Gross ProfitNumber seriesThe company's gross profit over the trailing twelve months.
RevenueNumber seriesThe company's revenue over the trailing twelve months, in dollars (not per share).

Outputs

NameTypeDescription
F-ScoreNumber seriesThe Piotroski fundamental-quality score, a whole number from 0 to 9.

Cost

8
credits per run
1,000
bars

0.201 + 0.00738·n credits for n bars, rounded up. The marks are each plan's limit of bars.

The Piotroski F-Score (Joseph Piotroski, 2000) grades a company's fundamental health on a 0–9 scale. It is built from nine pass/fail tests of profitability, leverage/liquidity, and operating efficiency. Most tests compare the current period with the same period one year (year_lag bars) earlier.

CategorySignals
Profitability (4)ROA positive · Cash flow from operations positive · ROA improved YoY · Accruals (CFO > Net Income)
Leverage & Liquidity (3)Long-term debt ratio improved YoY · Current ratio improved YoY · No new shares issued
Operating Efficiency (2)Gross margin improved YoY · Asset turnover improved YoY

Each test that passes adds one point.


Interpreting the Score

F-ScoreReading
8 – 9Strong fundamentals
3 – 7Mixed / average
0 – 2Weak fundamentals

Piotroski's own research applied the score to value stocks (high book-to-market) to separate future winners from losers. Pair it with a valuation filter for that use, or use it alone as a quality screen.


Year-over-Year Mechanics

Every signal compares bar i with bar i − year_lag. The module counts bars: it does not search by date for "the same fiscal quarter a year ago", it looks year_lag bars back. On quarterly TTM data (the period of the SEC EDGAR stock data sources), year_lag = 4 compares each quarter with the quarter four bars earlier.

Empty bars are counted too. A missing quarter costs only its own comparisons: its own score, and the later score that looks back to it. It never causes a comparison with the wrong fiscal quarter.

The first year_lag bars of every series have no earlier period to compare with, so the score there is always empty.


Missing Data — All-or-Nothing

If any of the nine signals cannot be computed on a bar, the whole score on that bar is empty. This happens when an input is missing at i or at i − year_lag, or when a divisor is zero or negative. Cash Flow From Operations is needed only at i. The module never returns a partial sum (e.g. "6 out of the 7 computable signals"), because that would change what the 0–9 scale means.

Three inputs are used as divisors and must be above zero at both i and i − year_lag: Total Assets (ROA, leverage, and turnover signals), Current Liabilities (current-ratio signal), Revenue (gross-margin and turnover signals).


The Leverage Signal With Zero Debt

The long-term-debt signal passes only when LTD/TA at i is strictly lower than at i − year_lag, as in Piotroski's original definition. If a company has zero long-term debt in both periods, the ratio is 0 in both, so this signal scores 0, not 1. A debt-free company earns this point only by actually reducing debt.


Wiring

From Stock: Income and Cash Flow (TTM): ni → Net Income, cfo → Cash Flow From Operations, gp → Gross Profit. From Stock: Balance Sheet (Quarter-End): ta → Total Assets, ltd → Long-Term Debt, ca → Current Assets, cl → Current Liabilities. From Stock: Fundamentals: shr → Shares Outstanding. Select the same company on every data source. Mixing companies gives a meaningless score.

Build Revenue with a Multiply module: rps (revenue per share) × shr (shares outstanding).

Coverage note: ltd is not available for every company, because it depends on how the company reports debt in its SEC filings. The F-Score is empty wherever it is unavailable, as with any other missing input.


  • ALTZ / ALTZDP — Altman Z-Score family (bankruptcy risk)
  • GRAHAM — Graham Number (fair-value benchmark)
© 2026 WanoLabs. All rights reservedBeta v0.1.5