OPEN-SOURCE SCRIPT

Bankruptcy Risk: Altman Z-Score, Zmijewski Score, Grover G

This custom indicator calculates three common bankruptcy risk scores:
  • Altman Z-Score
  • Zmijewski Score
  • Grover G-Score


Altman Z-Score
  • Companies are in healthy condition if the Z-Score > 2.6.
  • Companies are in vulnerable conditions and need improvement (grey area) if the score is between 1.1 - 2.6.
  • Companies have the potential to lead to serious bankruptcy if the Z-Score < 1.1.


Zmijewski Score
  • The company has the potential to go bankrupt if the value of X Score > 0.
  • The company is healthy if the value of X Score < 0.


Grover Model: G-Score
  • The company has the potential to go bankrupt if the G Score ≤ -0.02.
  • The company is in good health if the value of G Score ≥ 0.001.


The indicator pulls key financial metrics and calculates each score, then displays the results in a table with color-coding based on the level of bankruptcy risk.

Users can toggle between FQ and FY periods and view details on the underlying metrics. This provides an easy way to visualize bankruptcy risk for a company and compare across different scoring models.

Useful for fundamental analysis and assessing financial health.

The financial ratios and methodology are based on research described in
"Analysis of Bankruptcy Prediction Models in Determining Bankruptcy of Consumer Goods Companies in Indonesia" (Thomas et al., 2020).
Fundamental Analysissentimentstatistics

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer