When the conditions for entry are met, the strategy will exit either when the price drops to the 10-day low or when a trailing stop is reached, set at twice the Average True Range (ATR). The ATR is a measure of market volatility, providing a dynamic stop that adjusts based on recent price fluctuations.
| Component | Description |
|---|---|
| Indicator | 20-day high represents the highest price in the past 20 days; 10-day EMA is the average price over the last 10 days, weighted toward recent prices; 30-day EMA is the average over the last 30 days. |
| Signal | Enter long when the price breaks above the 20-day high and the 10-day EMA is greater than the 30-day EMA. |
| Rule | Exit the position when the price reaches the 10-day low or hits a trailing stop set at twice the ATR. |
One significant caveat of this backtest is that while it generated a positive overall return, the strategy exhibited a maximum drawdown of 25.63%. This decline was notably less severe compared to the 60.66% maximum drawdown of the equal-weight buy-and-hold basket and 35.12% of the QQQ index, indicating better risk management in this regard. Despite this, the strategy’s overall performance did not match the benchmarks, highlighting the importance of evaluating risk alongside return.
| Side-by-Side Comparison | |||
| Benchmark CAGR and drawdown are computed from daily closes over the same window; Sharpe is omitted because the methodologies differ | |||
| Metric | Strategy | Equal-weight buy & hold basket (7 symbols) | Buy & hold QQQ |
|---|---|---|---|
| Total return | +107.9% | +244286.4% | +399.4% |
| Annualized return (CAGR) | +8.5% | +138.1% | +19.6% |
| Max drawdown | -25.6% | -60.7% | -35.1% |
| Ending equity | $207,892 | $244,386,399 | $499,433 |
| Backtest Summary | |
| Every figure computed from this run’s saved results | |
| Metric | Value |
|---|---|
| Starting capital | $100,000 |
| Ending capital | $207,892 |
| Total return | +107.89% |
| Annualized return (CAGR) | +8.47% |
| Closed trades | 152 |
| Sharpe ratio (annualized) | 1.34 |
| Calmar ratio | 1.08 |
| Max drawdown | -25.63% |
| Equal-weight buy & hold basket (7 symbols) | +244286.40% |
| Strategy vs. Equal-weight buy & hold basket (7 symbols) | -244178.51 pp |
| Buy & hold QQQ | +399.43% |
| Strategy vs. Buy & hold QQQ | -291.54 pp |
The strategy executed a total of 152 trades during the backtest period from January 1, 2016, to January 1, 2025. It achieved a total return of 107.89%, which translates to a compounded annual growth rate (CAGR) of 8.47%. However, this performance lagged behind the benchmark of an equal-weight buy-and-hold basket, which returned 244,286.40%, indicating the strategy underperformed by a significant margin.
The Sharpe ratio stands at 1.34, which means that the returns earned were 1.34 times the volatility taken on. In other words, for each unit of risk, the strategy generated a positive return, suggesting a reasonable risk-reward balance. At the trade level, the absence of closed trades listed means that there are no trade details to analyze; thus, it is hard to gauge specific patterns in profitability or consistency.
The monthly returns reveal that the strategy had 22 positive months compared to 13 negative months, indicating a tendency for more frequent gains. The average return during positive months was higher than the average loss during negative months, specifically demonstrating that gains were stronger on average, this pattern aligns with the strategy’s design to capitalize on upward momentum while managing risk through its exit criteria.
| Risk-Adjusted Return Metrics | ||
| Every number here comes straight from this backtest’s quantstr.at report | ||
| Metric | Value | What It Measures |
|---|---|---|
| Annualized Return | 27.79% | Return scaled to a one-year rate |
| Annualized Volatility | 20.74% | How much returns swing year to year |
| Sharpe Ratio | 1.340 | Return per unit of total volatility — the classic risk-adjusted return measure |
| Sortino Ratio | 0.130 | Return per unit of downside volatility only — ignores upside swings that Sharpe penalizes unfairly |
| Calmar Ratio | 1.085 | Return relative to the worst peak-to-trough drawdown |
| Omega Ratio | 0.290 | Probability-weighted ratio of gains to losses — doesn’t assume a normal return distribution the way Sharpe does |
| Downside Deviation | 0.811% | Volatility of losing periods only |
| Upside Potential Ratio | 0.756 | Upside capture relative to downside risk — a Sortino-style ratio facing the other direction |
| Probability Sharpe > 0 | 99.15% | Statistical confidence the strategy’s TRUE Sharpe ratio (not just this one sample) is greater than zero |
| Min. Track Record Needed | 358 | Minimum number of return observations needed for that confidence level to be meaningful |
| Sharpe Statistically Significant? | Yes | Whether this backtest has enough history for its Sharpe ratio to be statistically real, not noise |

A raw return figure can be misleading because it doesn’t account for the risk taken to achieve those returns. For example, a strategy might return 20% by taking significant risks, but a more modest 10% return could be achieved with much less volatility.
In this backtest, the Sharpe ratio of 1.34 indicates that the strategy generated returns 1.34 times the total volatility, suggesting a reasonable risk-reward balance. The Sortino ratio of 0.13, however, focuses only on downside volatility, revealing that the risk of losing is not well compensated by the upside, which contrasts starkly with the higher Sharpe. The Calmar ratio of 1.08 compares the return to maximum drawdown, further underscoring the strategy’s susceptibility to significant declines.
The "Probability Sharpe > 0" at 99.15% suggests strong statistical confidence that the true Sharpe ratio is positive, which is meaningful. Additionally, since this backtest’s Sharpe ratio is statistically significant, we can trust it provides insightful data. For your own reports, start by comparing the Sharpe and Sortino ratios, followed by the Calmar ratio for a comprehensive risk assessment.
The trade-level significance test indicates that the results should be interpreted with caution. Since there were multiple trades across a few symbols and the p-value reflects the statistical relevance of the results, it is important to note that the nature of overlapping trades means the p-value serves as an indicative measure rather than conclusive evidence.
| Performance by Symbol | ||||
| 7 symbols, closed trades only | ||||
| Symbol | Trades | Net P&L | Win rate | Profit factor |
|---|---|---|---|---|
| QQQ | 37 | +$51,119 | 54.1% | 2.95 |
| MSFT | 37 | +$35,846 | 45.9% | 2.19 |
| NVDA | 41 | +$15,656 | 29.3% | 1.58 |
| AAPL | 37 | +$6,664 | 40.5% | 1.28 |
| XLF | 0 | – | – | – |
| XLP | 0 | – | – | – |
| XLE | 0 | – | – | – |
In terms of risk-adjusted return metrics, the Sharpe ratio is 1.34, suggesting that the returns generated were relatively favorable compared to the level of risk taken. However, the Sortino ratio of 0.13 indicates a substantial disparity between upside potential and downside risk. This divergence highlights a caveat: although the total returns are positive, they may not adequately compensate for the risks involved, especially given that the average drawdown length was 17.82 days. This risk profile should give potential traders pause, as it signals that while profits exist, they come with significant volatility.
The integrity audit failed due to two key issues: first, the trade list did not reconcile with the per-symbol trade statistics, indicating a potential mismatch in reported trades. Second, there was no verification of the gross long exposure relative to the portfolio equity, leaving uncertainty about the strategy’s true risk exposure. These failures suggest that the reported performance might not fully reflect reliable trade execution or risk management.
| Monthly Returns Matrix (%) | |||||||||||||
| Month-by-month and YTD cumulative performance summary | |||||||||||||
| Year | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec | YTD |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2023 | 0.0% | 2.2% | 5.8% | 2.9% | 11.4% | 2.5% | 4.9% | -5.7% | -2.5% | 1.0% | 13.4% | 2.1% | 43.1% |
| 2024 | 4.1% | 0.4% | -0.6% | -2.8% | 2.8% | 26.5% | -1.4% | -0.6% | 1.3% | -3.9% | 0.5% | 6.2% | 33.7% |
| 2025 | -9.5% | -0.6% | -6.7% | -5.1% | 13.4% | 7.9% | 11.4% | 0.7% | 3.1% | 7.2% | -8.1% | -2.1% | 8.6% |
Over the tracking period from January 2023 to January 2025, the strategy experienced a mix of monthly returns, with 22 positive months and 13 negative months. The best month was June 2024, which had a return of 24.48%. Conversely, the worst month was January 2025, with a return of -6.33%.
The most significant drawdown occurred between July 11, 2024, and April 16, 2025, where it reached a depth of -25.63%. This episode aligns with the overall trend of returns, showing that significant declines occurred during a challenging market period.
The primary caveat to consider is the considerable maximum drawdown of 25.63%, which indicates potential for substantial losses during the backtest period. Moreover, the integrity audit highlighted issues, particularly regarding the reconciliation of trade statistics, suggesting that the reported figures may not fully reflect reliable trade execution. Always remember, this walkthrough demonstrates past performance and does not predict future results. If you’re interested, feel free to explore your own strategy ideas using quantstr.at.
The strategy’s maximum drawdown of 25.63% indicates significant risk exposure, which could make it challenging for traders during downturns. Consider adjusting the exit conditions to include a stop-loss to potentially limit losses and manage risk more effectively.
Enter long when the price breaks above the 20-day high and the 10-day EMA is greater than the 30-day EMA. Exit when the price reaches the 10-day low or hits a trailing stop set at twice the ATR, or if the price falls below a stop-loss of 1.5% from the entry price.
| Backtest Setup | |
| Read from this run’s saved configuration | |
| Parameter | Setting / Value |
|---|---|
| Asset universe | 7 symbols (XLF, XLP, XLE, AAPL, MSFT, NVDA, QQQ) |
| Time window | 2016-01-01 to 2025-01-01 (9.0 years) |
| Starting equity | $100,000 |
| Benchmarks | Equal-weight buy & hold basket (7 symbols) (+244286.4%); Buy & hold QQQ (+399.4%) |
| Trade Statistics by Symbol | |||||||||||||||||||||||||||
| Detailed performance and risk metrics breakdown per traded asset | |||||||||||||||||||||||||||
| Symbol | Trades | Net P&L | Win Rate | Loss Rate | Max Equity | Min Equity | Gross Profits | Gross Losses | Max Drawdown | Transactions | Avg Daily P&L | Avg Trade P&L | Ending Equity | Largest Winner | Largest Loser | Profit Factor | Avg Winning Trade | Avg Losing Trade | Median Trade P&L | Annualized Sharpe | Daily P&L Std Dev | Trade P&L Std Dev | Avg Win/Loss Ratio | Median Losing Trade | Median Winning Trade | Median Win/Loss Ratio | Profit / Max Drawdown |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| XLF | 0 | $0 | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
| XLP | 0 | $0 | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
| XLE | 0 | $0 | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
| AAPL | 37 | $6,664 | 40.5% | 59.5% | $15,684 | -$1,542 | $30,859 | -$24,195 | -$17,226 | 74 | $180 | $180 | $6,664 | $6,807 | -$5,467 | 1.28 | $2,057 | -$1,100 | -$229 | 1.27 | $2,243 | $2,243 | 1.87 | -$868 | $1,409 | 1.62 | 0.39 |
| MSFT | 37 | $35,846 | 45.9% | 54.1% | $42,783 | $0 | $66,072 | -$30,227 | -$16,173 | 75 | $969 | $969 | $35,346 | $25,652 | -$4,329 | 2.19 | $3,887 | -$1,511 | -$171 | 3.09 | $4,977 | $4,977 | 2.57 | -$1,195 | $1,403 | 1.17 | 2.19 |
| NVDA | 41 | $15,656 | 29.3% | 70.7% | $26,302 | $0 | $42,555 | -$26,899 | -$18,061 | 83 | $382 | $382 | $16,172 | $22,605 | -$3,469 | 1.58 | $3,546 | -$928 | -$63 | 1.41 | $4,304 | $4,304 | 3.82 | -$948 | $538 | 0.57 | 0.90 |
| QQQ | 37 | $51,119 | 54.1% | 45.9% | $59,632 | -$1,585 | $77,361 | -$26,243 | -$11,237 | 75 | $1,382 | $1,382 | $49,711 | $18,476 | -$4,199 | 2.95 | $3,868 | -$1,544 | $190 | 4.97 | $4,414 | $4,414 | 2.51 | -$1,776 | $1,472 | 0.83 | 4.42 |