Beating a stock index (such as WIG or SPX) can come from different things: picking better stocks, being in the market at the right time, taking less risk, or putting more money into the positions that do best. Edge analysis splits the result into these parts with four cards:

The screenshots on this page show a sample portfolio built from a backtest of the BuyATH example strategy on the Warsaw Stock Exchange, from January 2020 to November 2026, with about 170 trades.

Your excess return is split into what the index would give at your beta (Index × beta) and Jensen's alpha: the rest. Beta tells how strongly your account moves with the index; at beta 0.5 the index would give half of its excess return. The alpha is split further:
For example, an account that is fully invested on the day the index rises 2 % and in cash on the day it falls 2 % has beta 0.5 and an alpha of 1 % a day, all of it from timing. An account that is always fully invested in stocks that do 1 % a day better than the index has beta 1 and the same alpha, all of it from stock selection.

Example: at beta 0.59 the index would have given the sample portfolio 7.1 % a year above the risk-free rate; the portfolio made 29.2 %. Its alpha of 22.0 % a year comes almost entirely from stock selection (+22.9 %). The portfolio was invested most of the time, so timing (−0.7 %) and cash (−0.2 %) changed little.
Both ratios divide the excess return by the risk: the Sharpe ratio by the volatility (all the ups and downs of the account), the Treynor ratio by the beta (only the part that moves with the index). The index has beta 1, so its Treynor ratio is its excess return. The table shows the excess return, volatility, beta and both ratios of your account and of the index.
Below it, two bridge charts split the difference between your ratio and the index's into the effect of your excess return and the effect of your risk (volatility in the Sharpe ratio, beta in the Treynor ratio). Each effect is taken at the average of the other, so the order does not matter. When the average excess return is negative, lower risk makes the ratios lower, not higher.

Example: the sample portfolio made 29.2 % a year above the risk-free rate, the index 13.2 %, and the portfolio was slightly more volatile (22.6 % a year against 21.2 %). The return lifts the Sharpe ratio and the volatility takes a little of it back: 0.62 for the index, +0.73 from the return, −0.06 from the volatility, 1.29 for the portfolio. The Treynor ratio is 49.0 % against 13.2 %: +21.4 from the return and +14.4 from the low beta.
How can the risk be higher while the beta is low? Beta is the correlation with the index times the ratio of the volatilities, so a beta of 0.59 at a volatility higher than the index's means a low correlation (here 0.56): most of the portfolio's ups and downs do not move with the index. The Treynor ratio leaves that risk out, the Sharpe ratio counts it. If the account is all your money, look at the Sharpe ratio; if it is a small part of a well diversified wealth, the Treynor ratio tells more.
The stocks you hold, while you hold them, as if every position started at the same share of the account and was then held: it grows and shrinks with its price, and buying more or selling part of it does not change it. Each session, from open to open, these positions are compared with the index and the results are added up. Days without stocks add nothing, and commissions are not included.
This is the cleanest measure of stock picking: it shows whether the stocks you choose beat the index, without the effects of cash, position sizes and costs. The positions are not brought back to equal weights every day: on rarely traded stocks, whose prices jump between bids and offers, that would show gains no one could make.

Example: the stocks held by the sample portfolio are 306 % ahead of the index. Most of it was made in 2020 (+109 %) and 2021 (+40 %); in 2023 and 2024 the stocks did worse than the index (−7 % and −5 %). The lead peaked at +370 % in October 2026.
Your positions (the value of the shares you hold) are compared with equal positions in the same stocks, as in Held stocks vs index, from open to open. The chart shows how many percent your position sizes made more than equal positions would (negative: less). It changes with how much you buy, buy more and sell: it rises when your larger positions do better than the smaller ones. Positions bought at the same share of the account and then held leave it at zero.

Example: BuyATH sizes each position by how much the stock rose over the last month (20 sessions): 10 % of the account for no rise, down to 5 % for a rise of 30 % or more. At first this cost money: in 2020 the stocks that had just risen most kept rising, and in October 2020 the sizes were 11.6 % behind equal positions. From then until early 2022 the smaller positions in stocks that had just jumped paid off; from 2022 to 2025 the sizes changed little, and in 2026 they added 4.5 %. In the end the sample portfolio's sizes made 8.2 % more than equal positions in the same stocks would.