Estimating Strategy Backtest Metrics in a Chart Indicator
Summary
This document demonstrates a chart indicator that estimates common strategy backtest summary values from plotted buy and sell signals. Its example uses an EMA crossover, a longer EMA trend filter, position allocation and commission inputs, a fixed loss threshold, and a percentage trailing stop that arms after a gain. It tracks alternating buy and sell signals and describes stopping the reported calculations at the last completed trade, aiming to approximate the platform’s strategy tester.
The author explicitly notes that indicator-derived results can differ from actual strategy results because the indicator evaluates signal prices rather than executed trades. The example includes a BTC/USDT futures configuration and a stated test interval, but no numerical performance findings are supplied here. The EMA crossover is presented as a demonstration scaffold rather than a recommended standalone strategy. Its reported values therefore should be treated as an approximation, with fills, order handling, and the distinction between signal timing and actual execution limiting comparability to a strategy backtest.
Key ideas
- An indicator can estimate backtest summary statistics by tracking completed buy and sell signal pairs.
- The example combines EMA crossover signals with a longer EMA filter and percentage-based stop rules.
- A trailing stop is armed after price rises by a configured amount and then follows the price upward.
- Indicator estimates may differ from strategy tester results because signal prices do not represent actual fills.
- The EMA crossover is included as a demonstration and the document provides no numerical performance results.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.