METATrading Academy

Risk management

Backtestingpurane data par strategy ka test

Testing a trading rule on historical price data to see how it would have performed before risking real money on it.

Backtesting means applying a fixed set of trading rules to past price data and recording what would have happened. You define entry, exit, stop loss and position size, run the rules over, say, five years of Nifty data, and count the results. The output shows win rate, average win, average loss, largest drawdown and expectancy. Backtesting catches ideas that sound clever but lose money. It has limits. Past data does not include tomorrow's news, real slippage or the temptation to skip a trade. Many people also tune rules until they fit the past perfectly, which then fails in live markets; this is called curve fitting. A good backtest uses simple rules, includes brokerage and taxes such as STT, and is followed by forward testing on paper before any real capital is used.

Lessons that use this term

Video
Risk7 min read

Leverage and spread, in plain language

Leverage makes a position bigger than your cash. The spread is the gap between the buy and sell price. One multiplies your results, the other quietly charges you on every trade.