ianthetechie

Spitznagel ROIC

This is a rough version of the Return on Invested Capital metric that Mark Spitznagel presents in The Dao of Capital. The purpose is to calculate the return on real invested capital, conservatively calculated. Over a medium term horizon, the theory is that companies which have a high ROIC (presented here as a decimal value where 0.5 = 50%, 1 = 100%, etc., and color coded as a general guide) combined with a low Faustmann Ratio (see my other script) should generally outperform. Please don't take this short summary as an excuse to not read the full book. It's well worth your time. (I am not affiliated with the author in any way.)
Release Notes: Bug fixes:
* Numeric display of the ROIC number is now always displayed to 2 decimal places. The graph was always correct, but previously TradingView would occasionally display only a whole number.
* The EBIT calculation has been improved to synthesize data over the past four quarters. A bug in PineScript requires manually calculating this. Previous versions of this study computed this using in imprecise heuristic that has been replaced with a proper computation so the EBIT half of the ratio is now actually correct rather that approximately correct.

Enhancements:
* The study now works for corporations that report annually. PineScript has no feature to get the most recent balance sheet value, so I hacked this up for all values as many companies outside the US report only annually.
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 a publication is governed by House Rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Comments