Formulas used

Descriptions of the indicators and calculation methods used in Plutoncio, including their formulas, reference periods and specific considerations.

Indicator Dictionary

Learn what each indicator measures, how to interpret its values, and how it is calculated.

Explore the dictionary →

Search by name, description, formula or period.

Fundamentals

ROIC — Return on invested capital

Measures the operating return a company generates relative to the capital invested in its business.

Formula

ROIC = NOPAT / (Shareholders’ equity + Total debt − Cash). NOPAT = Operating income × (1 − Effective tax rate).

Period used

Uses the trailing twelve months (TTM) income statement or the available financial period and balances from the selected balance sheet.

Notes

Opening and closing balance-sheet balances are not averaged.

ROE — Return on equity

Measures the relationship between the company's net income and shareholders’ equity.

Formula

ROE (%) = (Net income / Shareholders’ equity) × 100.

Period used

TTM net income or the available financial period and shareholders’ equity from the selected balance sheet.

Notes

Uses shareholders’ equity as of the balance-sheet closing date, without averaging opening and closing balances.

Operating margin

Expresses operating income as a percentage of the company's revenue.

Formula

Operating margin (%) = (Operating income / Revenue) × 100.

Period used

Operating income and revenue from the same income-statement period.

Revenue CAGR

Measures the compound annual growth rate of revenue between the first and last fiscal years used.

Formula

CAGR (%) = ((Ending revenue / Beginning revenue) ^ (1 / number of intervals) − 1) × 100.

Period used

Uses available annual fiscal years. The number of intervals equals the number of valid observations minus one.

Notes

Annual history takes precedence over TTM revenue.

Net income CAGR

Measures the compound annual growth rate of net income between two fiscal years.

Formula

CAGR (%) = ((Ending net income / Beginning net income) ^ (1 / number of intervals) − 1) × 100.

Period used

Uses available annual fiscal years and their valid observations.

Notes

The calculation requires positive starting and ending values.

Free cash flow (FCF) CAGR

Measures the compound annual growth rate of free cash flow between two fiscal years.

Formula

CAGR (%) = ((Ending FCF / Beginning FCF) ^ (1 / number of intervals) − 1) × 100.

Period used

Uses free cash flow from available annual fiscal years.

Notes

The calculation requires positive starting and ending values. The number of intervals equals the number of valid observations minus one.

Shareholders’ equity / Total assets

Measures the proportion of a company's total assets represented by shareholders’ equity.

Formula

Equity / Assets (%) = (Shareholders’ equity / Total assets) × 100.

Period used

Shareholders’ equity and total assets from the same financial balance sheet.

Notes

Uses closing-date balances without averaging periods.

Total debt / Shareholders’ equity

Relates the company's total financial debt to its shareholders’ equity.

Formula

Debt / Equity = Total debt / Shareholders’ equity.

Period used

Balances from the selected financial balance sheet.

Notes

Expressed as a ratio, not a percentage. Total debt may come directly from the provider or be calculated by adding available components.

Total debt

Amount of the company's total financial debt according to the available data.

Formula

Total debt = totalDebt or the sum of available current-debt and long-term-debt components.

Period used

Financial balance sheet for the selected closing date.

Notes

When totalDebt is unavailable, available components are used. Some fields may overlap, so the alternative sum may contain duplicates.

Valuation

P/E — Price / Earnings

Ratio of a share's price to its earnings per share (EPS).

Formula

P/E = Share price / EPS.

Period used

EPS for the financial period used to calculate the indicators. Diluted EPS takes priority.

Notes

If diluted EPS is unavailable, basic EPS is used. The ratio is not calculated when EPS is zero or negative.

Price / FCF

Ratio of the company's market capitalization to its free cash flow (FCF).

Formula

Price / FCF = Market capitalization / Total FCF = Price per share / FCF per share.

Period used

Cash flow for the trailing twelve months (TTM). If the TTM dataset is empty, the latest available annual period is used.

Notes

FCF provided by StockFit is used. If missing, it is calculated as operating cash flow minus the absolute value of CapEx. Calculated only when FCF is positive.

P/S — Price / Sales

Ratio of the company's market capitalization to its revenue.

Formula

P/S = Market capitalization / Revenue.

Period used

Revenue for the trailing twelve months (TTM). If unavailable or not positive, the latest available annual fiscal year is used.

Notes

Calculated only when market capitalization and revenue are positive.

EV / Sales — Enterprise value / Revenue

Ratio of enterprise value (EV) to the company's revenue.

Formula

EV / Sales = EV / Revenue. EV = Market capitalization + Net debt. Net debt = Total debt − Cash − Short-term investments.

Period used

TTM revenue or, if unavailable or not positive, the latest annual fiscal year. Net debt comes from the available balance sheet.

Notes

Calculated only when EV and revenue are positive.

EV / EBITDA ? Enterprise Value / EBITDA

Compares enterprise value with earnings before interest, taxes, depreciation and amortisation.

Formula

EV / EBITDA = Enterprise value / EBITDA. EV = Market capitalisation + Net debt. Net debt = Total debt ? Cash ? Short-term investments.

Period used

EBITDA for the trailing twelve months (TTM). If unavailable, the latest available annual period is used. Net debt comes from the available balance sheet.

Notes

EBITDA provided by StockFit is used. The ratio is calculated only when EV and EBITDA are positive.

FCF Yield — Free cash flow yield

Free cash flow expressed as a percentage of market capitalization.

Formula

FCF Yield (%) = (FCF / Market capitalization) × 100.

Period used

Cash flow for the trailing twelve months (TTM). If the TTM dataset is empty, the latest available annual period is used.

Notes

FCF comes from StockFit or is calculated from operating cash flow and CapEx. Calculated only when FCF is positive.

Risk

Beta — Market sensitivity

Measures the historical sensitivity of a stock's returns relative to a benchmark. Plutoncio uses SPY (SPDR S&P 500 ETF Trust), an ETF that seeks to track the S&P 500 index.

Formula

Beta = Covariance(stock returns, SPY returns) / Variance(SPY returns).

Period used

Weekly stock and SPY returns aligned by date. Up to 104 weekly returns (approximately 2 years) are used.

Notes

At least 26 valid overlapping returns are required. If SPY variance is zero or data is insufficient, the indicator is not calculated.

Annualized stock volatility

Measures the dispersion of the stock's weekly returns around their mean, expressed on an annualized basis.

Formula

Annualized volatility = Sample standard deviation of weekly returns × √52.

Period used

Uses the available weekly price history for the stock. This function does not impose a 104-observation limit.

Notes

At least 10 weekly returns are required. The calculation uses the sample standard deviation (ddof=1).

Max Drawdown — Largest peak-to-trough decline

Measures the largest percentage decline from a previous peak to a subsequent trough during the analyzed period.

Formula

Max Drawdown (%) = |minimum of (Price / Running maximum − 1)| × 100.

Period used

Up to the latest 104 available weekly prices are used (approximately 2 years).

Notes

Plutoncio displays the decline as a positive percentage. At least 2 valid prices are required.

Technical analysis

Share price — Daily history

Latest valid share price recorded in the daily price history used by Plutoncio.

Formula

Price = latest valid price recorded in the history.

Period used

Latest available trading session.

Notes

The price comes from stored history and is not necessarily a real-time quote.

20-session return

Percentage change in share price over the last 20 trading sessions.

Formula

Return (%) = (Current price / Price 20 sessions ago − 1) × 100.

Period used

20 daily trading sessions.

Notes

Calculated from available historical prices. It does not represent a future return.

60-session return

Percentage change in share price over the last 60 trading sessions.

Formula

Return (%) = (Current price / Price 60 sessions ago − 1) × 100.

Period used

60 daily trading sessions.

Notes

Calculated from available historical prices. It does not represent a future return.

SMA 20 — 20-session simple moving average

Arithmetic mean of prices over the last 20 trading sessions.

Formula

SMA 20 = sum of the last 20 prices / 20. Distance (%) = (Current price / SMA 20 − 1) × 100.

Period used

20 daily trading sessions.

Notes

Distance is positive when price is above the average and negative when below.

SMA 50 — 50-session simple moving average

Arithmetic mean of prices over the last 50 trading sessions.

Formula

SMA 50 = sum of the last 50 prices / 50. Distance (%) = (Current price / SMA 50 − 1) × 100.

Period used

50 daily trading sessions.

Notes

Distance indicates the percentage difference between current price and its moving average.

SMA 200 — 200-session simple moving average

Arithmetic mean of prices over the last 200 trading sessions.

Formula

SMA 200 = sum of the last 200 prices / 200. Distance (%) = (Current price / SMA 200 − 1) × 100.

Period used

200 daily trading sessions.

Notes

If fewer than 200 valid prices are available, Plutoncio does not calculate this average.

Upper Bollinger Band

Upper limit of the Bollinger Bands, calculated by adding two standard deviations to the 20-session simple moving average.

Formula

Upper band = SMA 20 + 2 × standard deviation of the last 20 prices.

Period used

20 daily trading sessions.

Notes

The upper band is not necessarily a maximum price. Price may rise above it.

Lower Bollinger Band

Lower limit of the Bollinger Bands, calculated by subtracting two standard deviations from the 20-session simple moving average.

Formula

Lower band = SMA 20 − 2 × standard deviation of the last 20 prices.

Period used

20 daily trading sessions.

Notes

The lower band is not necessarily a minimum price. Price may fall below it.

RSI (14 sessions) — Relative Strength Index

An oscillator between 0 and 100 measuring the relationship between recent price gains and losses.

Formula

RS = smoothed average gains / smoothed average losses. RSI = 100 − 100 / (1 + RS). Wilder smoothing = (previous average × 13 + current change) / 14.

Period used

14 daily trading sessions. Initial averages use 14 changes; subsequent averages use Wilder smoothing.

Notes

Levels 30 and 70 are conventional oversold and overbought references. They are not buy or sell signals on their own.

MACD (12, 26)

An indicator measuring the difference between two exponential moving averages of price.

Formula

MACD = EMA 12 − EMA 26.

Period used

12- and 26-session daily exponential moving averages.

Notes

A positive value means EMA 12 is above EMA 26. Expressed in price units, not as a percentage.

MACD signal (9 sessions)

Exponential moving average of MACD values, used to smooth its fluctuations.

Formula

MACD signal = 9-session EMA of MACD values.

Period used

9 daily trading sessions, calculated on MACD (12, 26).

Notes

The difference between MACD and its signal is shown by the MACD histogram.

MACD histogram

Represents the difference between the MACD line and its signal line.

Formula

MACD histogram = MACD − MACD signal.

Period used

Calculated using MACD (12, 26) and its 9-session signal.

Notes

The histogram is positive when MACD is above its signal and negative when below.

52-week low

Lowest price recorded over approximately the last 52 trading weeks.

Formula

Low = lowest price of the last 252 available sessions.

Period used

Up to 252 daily trading sessions.

Notes

If fewer than 252 sessions are available, the available history is used. This is not necessarily the exact low of the last calendar year.

52-week high

Highest price recorded over approximately the last 52 trading weeks.

Formula

High = highest price of the last 252 available sessions.

Period used

Up to 252 daily trading sessions.

Notes

If fewer than 252 sessions are available, the available history is used. This is not necessarily the exact high of the last calendar year.

Recent volatility (60 sessions)

Measures the variability of daily share returns, expressed on an annualized basis.

Formula

Daily return = Current price / Previous price − 1. Annualized volatility = sample standard deviation of daily returns × √252.

Period used

Up to the last 60 available daily returns, annualized using 252 trading sessions per year.

Notes

With fewer than 60 valid returns, it may use those available if there are at least two. It does not indicate movement direction.

Daily return and variability bands

Shows the percentage change in price from the previous session and variability bands centered on zero.

Formula

Daily return (%) = (Current price / Previous price − 1) × 100. σ20 = standard deviation of the last 20 daily returns. Upper band = +1.5 × σ20. Lower band = −1.5 × σ20.

Period used

Returns between consecutive sessions and bands calculated over a rolling 20-session window.

Notes

Chart values are percentages. The bands show recent historical variability, not maximum or minimum return limits.

12-month price change

Measures the percentage change in a stock's price between the beginning and end of the historical period considered.

Formula

Change (%) = (Ending price / Starting price − 1) × 100.

Period used

Uses up to 52 weekly price intervals, approximately 12 months. If history is shorter, the available period is used.

Notes

Requires at least two valid prices and a positive starting price. Reflects price change only and excludes dividends.

Portfolio

Portfolio allocation methods

Plutoncio calculates capital allocation among stocks using three methods: equal weight, minimum volatility and risk parity.

Formula

Equal weight: each stock's weight = 1 / number of stocks. Minimum volatility: seeks to minimize portfolio volatility using the covariance matrix. Risk parity: seeks to balance each stock's contribution to total risk.

Period used

Risk-based methods use historical returns from the selected portfolio period.

Notes

The allocation methods use different mathematical criteria. They do not forecast returns.

Portfolio beta

Calculates the portfolio's aggregate sensitivity to the benchmark using individual stock betas.

Formula

Portfolio beta = sum of (each stock's weight × individual beta).

Period used

Individual betas are calculated using weekly stock and SPY returns.

Notes

If a stock lacks a valid beta, only stocks with available betas are used and their weights are normalized to sum to 1.

Annualized portfolio volatility

Measures the historical variability of returns for the portfolio as a whole, accounting for weights and relationships between stocks.

Formula

Portfolio volatility = √(wᵀ × Σ × w), where w is the weight vector and Σ is the annualized covariance matrix.

Period used

Daily returns over the selected historical period. The daily covariance matrix is annualized by multiplying it by 252.

Notes

The calculation considers both individual stock volatility and covariances between stocks.

Target weight of each stock

Percentage of capital assigned to each stock by the selected allocation method.

Formula

Target weight (%) = weight calculated by the allocation method × 100.

Period used

Calculated for the selected composition and allocation method.

Notes

Target weight may differ from actual weight when calculating the whole number of shares that can be purchased.

Invested capital allocation

Calculates the amount allocated to each position and its share of the capital actually invested.

Formula

Position amount = number of shares × price per share. Actual weight (%) = (position amount / total invested capital) × 100.

Period used

Prices used in the portfolio calculation and resulting share quantities.

Notes

Share quantities are whole numbers. Uninvested cash is excluded from the actual-weight denominator.

Current value and weight of positions

Calculates each position's market value and its percentage of the portfolio's total position value.

Formula

Position value = number of shares × current price. Current weight (%) = (position value / total position value) × 100.

Period used

Latest available prices for stocks in the portfolio.

Notes

Current weights may differ from the original allocation weights because prices change.

Individual historical volatility in Portfolio

Measures the dispersion of a stock's daily returns, expressed on an annualized basis, for the period used in Portfolio.

Formula

Annualized volatility = sample standard deviation of daily returns × √252.

Period used

Daily returns over the historical period selected for the portfolio.

Notes

This calculation uses daily returns. It differs from the Risk section's volatility indicator, which uses weekly returns and an annualization factor of √52.

Historical correlation between stocks

Measures the linear statistical relationship between the historical returns of two stocks using Pearson's correlation coefficient.

Formula

Correlation(A, B) = Covariance(A, B) / (Standard deviation of A × Standard deviation of B).

Period used

Daily stock returns aligned by date for the selected historical period.

Notes

The coefficient ranges from −1 to +1. The correlation matrix diagonal is 1 when the calculation is defined. Historical correlation does not imply causation.