Breakout Entries with Grid-Search Backtesting for Lookback and Exits
Summary
This document presents a breakout strategy paired with a parameter sweep. It describes testing combinations of lookback length, take-profit percentage, and stop-loss percentage, then ranking results by win rate, net profit, or trade count. The strategy section describes long and short entries around upper and lower bands, while the supplied script’s live trading logic uses a stop entry at a prior bar’s high after a specific price pattern. Exits use percentage-based stop and target levels, and the script also displays a table of selected parameter results.
The published example uses BTC/USDT futures over a short historical interval. It reports no performance figures that establish profitability. Its own risk discussion flags short samples, slippage, omitted trading costs, single-market testing, and overfitting. The parameter sweep can help explore settings, but selecting the best historical combination does not demonstrate out-of-sample robustness; results should be checked across longer periods, instruments, and realistic costs.
Key ideas
- The parameter sweep evaluates combinations of lookback, take-profit, and stop-loss settings.
- Backtest rankings can prioritize win rate, net profit, or number of trades.
- The script’s live entry logic uses a stop order at a prior high after a price pattern.
- Short samples, costs, slippage, and parameter overfitting can distort results.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.