deepvalue 0.1.0
deepvalue is a small D library for the balance-sheet arithmetic behind deep-value and net-net stock screening. It takes line items from a balance sheet and income statement and returns the handful of numbers a Graham-style screener checks, without opinions attached. Ten public functions. ncav and ncavPerShare give net current asset value outright and per share. netNetWorkingCapital applies the classic liquidation haircuts to receivables and inventory. isNetNet reports whether price sits below two thirds of NCAV per share. grahamNumber computes the square root of 22.5 times EPS times book value per share. marginOfSafety expresses the discount of price to an intrinsic value. priceToEarnings and priceToBook cover the two defensive-investor ratios. piotroskiFScore evaluates the nine-point balance-sheet quality test from an input struct. grahamDefensiveChecks runs the ratio and leverage gates and returns each result rather than a single verdict. Everything is @safe pure and dependency-free. Eight unittest blocks, MIT licensed.
| Tags | d dlang library finance investing stocks |
|---|---|
| License | MITL |
| State | initial |