Maximum Daily Return
Calculate MAX, the largest daily return of each ticker within each period (or the average of the few largest): how lottery-like a stock is, the characteristic of Bali, Cakici and Whitelaw (2011).
Investors who like lottery-like payoffs overpay for stocks with extreme positive daily returns, so the stocks with the highest MAX in a month earned lower returns in the next month: about 1% a month less for the decile with the highest MAX than for the one with the lowest in the paper, a result that held after controlling for size, value, momentum, short-term reversal, liquidity and idiosyncratic volatility.
The formula is as follows:
\[\text{MAX}(\texttt{top}) = \frac{\sum_{k=1}^{\texttt{top}} R_{k}}{\texttt{top}}\]Where \(R_{k}\) is the k-th largest daily return within the period.
With the default top of 1 it is the largest daily return of the period; the paper also uses the average of the five largest daily returns of the month as a robustness check.
Also known as: MAX, MAX effect, lottery demand, maximum daily return, extreme returns.
Example · AAPL, TSLA, KO · 2025
Install the Finance Toolkit with pip install financetoolkit -U, then call get_maximum_daily_return:
from financetoolkit import Toolkit
toolkit = Toolkit(
["AAPL", "TSLA", "KO"],
api_key="FINANCIAL_MODELING_PREP_KEY",
start_date="2025-01-01",
end_date="2025-06-30",
)
toolkit.performance.get_maximum_daily_return()
Or, with the Finance Toolkit MCP set up, ask an AI assistant such as Claude or ChatGPT:
What was the largest daily return of Apple, Tesla and Coca-Cola in each month of the first half of 2025?
Which returns:
| Date | AAPL | TSLA | KO |
|---|---|---|---|
| 2025-01 | 0.0365 | 0.0822 | 0.0318 |
| 2025-02 | 0.0218 | 0.0577 | 0.0473 |
| 2025-03 | 0.0195 | 0.1193 | 0.0178 |
| 2025-04 | 0.1533 | 0.2269 | 0.0259 |
| 2025-05 | 0.0631 | 0.0694 | 0.0354 |
| 2025-06 | 0.0225 | 0.0823 | 0.0131 |
6 rows
Parameters
get_maximum_daily_return accepts the following parameters.
| Parameter | Type | Description | Example |
|---|---|---|---|
period | str | The period the largest daily returns are taken within. Options are: “weekly”, “monthly”, “quarterly”, “yearly”. Defaults to “monthly”, as in the paper. | "weekly" |
top | int | The number of largest daily returns averaged. Defaults to 1. | 1 |
rounding | int | None | The number of decimals to round the results to. Defaults to None, which uses the rounding of the Toolkit (4 unless set otherwise). | 2 |
growth | bool | Whether to calculate the growth of the values. Defaults to False. | True |
lag | int | list[int] | The lag to use for the growth calculation. Defaults to 1. | 4 |
standardize | bool | Whether to standardize (Z-Score) the result. When combined with growth=True, standardizes the growth values instead of the raw values. Defaults to False. | True |
transform | str | list[str] | None | Time series steps applied in order, such as “sma:12” (moving average), “ema:12”, “std:12”, “zscore:60”, “percentile:120”, “yoy”, “pct_change:3,annualize:3”, “log”, “diff”, “cumsum” or “hp_trend” and “hp_cycle” (Hodrick-Prescott), before growth. A window needs that many periods of history, so the first periods can be empty. Defaults to None. | None |
show_columns | str | list[str] | None | The columns to keep, a name or a list of names, matched on every column level, or the rows when no column has those names (such as the line items of a financial statement). Names that do not exist are logged, and when none exist the result is returned in full. Defaults to None, which keeps every column. | None, which keeps every column |
References
- Paper Bali, T.G., Cakici, N. and Whitelaw, R.F. (2011). “Maxing Out: Stocks as Lotteries and the Cross-Section of Expected Returns.” Journal of Financial Economics, 99(2), 427-446.