Backtesting runs a set of trading rules over past price data to estimate how they would have performed. It helps judge whether an idea has any historical edge.
Backtests can mislead: past results don't guarantee future ones, and it is easy to over-fit rules to old data. Forward-testing on a demo account is a useful reality check.