Backtesting evaluates the viability of a trading strategy by discovering how it would play out using historical data.