FRENESDE

Testing your scalping method on past data

A backtest replays a strategy on past data to estimate its results. In scalping, fine-grained data is needed, at least 1-minute bars.
It must include all costs: commission, spread and slippage. Over hundreds of small trades, forgetting 0.1 per trade can turn a real loss into an imaginary gain.
Everything is done by hand: the replay mode of a charting platform (it hides what comes next) and a spreadsheet are enough. Only log signals taken during your planned hours, and subtract commission, spread and slippage from each trade.
Finally, validate on unseen data (out of sample) and on a large number of trades. A brilliant result on 12 trades proves nothing.

Examples

Key terms

Backtest
Simulation of a strategy on past data
Out of sample
Data kept aside to test a strategy that was not tuned on it
Slippage
Gap between the planned price and the simulated or real fill price
Overfitting
Strategy fitted too closely to the past, which fails on new data
Take the mission on Doji Academy

← Back to the index