The Sharpe ratio from first principles

Nov 17, 2026·14 min read

Algorithmic trading is fascinating. You figure out some rules to buy or sell stocks and backtest them on a few years of past price data. Do this a few times and you have several strategies. How do you rank these strategies objectively? The first idea might be to rank them by the profit they make. A strategy that gives you higher profits is definitely better, right? It is easy to say this when you are just looking at the backtest. But past returns are no guarantee of future returns. When a strategy you are running is losing money, you cannot know that it will recover.