Range breakoutlong
Resultados de Backtest @ GLD β€’ Daily

Esta estrategia entra una vez que la acciΓ³n del precio rompe el rango de las ΓΊltimas 20 velas, acompaΓ±ada de un volumen de negociaciΓ³n elevado. Sale una vez que el precio cierra por debajo de una SMA(20). La idea es seguir las tendencias, aprovechando el impulso confirmado por el volumen.

Curva de Equidad

El backtest cubre 20.7 years de datos GLD β€’ Daily (SPDR Gold Trust), desde November 18, 2004 hasta July 25, 2025.

La curva de equidad es el rendimiento de la estrategia a lo largo del tiempo. Debes compararla con el rendimiento de Compra y MantΓ©n del activo. En general, quieres que el Γ‘rea azul estΓ© bien por encima del Γ‘rea gris.

El drawdown es cuΓ‘ntas pΓ©rdidas (realizadas o no realizadas) ha tenido la estrategia si se compara con el pico mΓ‘s alto de equidad. Compara esto con el drawdown del activo para ver si tu estrategia hace un trabajo decente de aislarte de la volatilidad bajista. En general, el Γ‘rea roja debe estar bien dentro del Γ‘rea gris.

Curva de Equidad
Estrategia
Activo
Drawdown de Estrategia
Drawdown de Activo

Entonces, hemos hecho backtest de Range breakout en 20.7 years de velas GLD β€’ Daily.Β Este backtest resultΓ³ en 92 posiciones, con una tasa de ganancia promedio de 48% y una relaciΓ³n riesgo-recompensa de 1.83.Β Si asumes que la relaciΓ³n riesgo-recompensa de 1.83 se mantiene, necesitas una tasa de ganancia mΓ­nima de 35.3 para ser rentable. AsΓ­ que vas bien hasta ahora.Β Sin embargo, 92 posiciones es una muestra pequeΓ±a, asΓ­ que toma los resultados con mucha cautela.Β Las mΓ©tricas clave son las siguientes:

  1. Retorno Total: Retorno Total: 83.30% vs 592.80% para el activo
  2. MΓ‘ximo Drawdown: MΓ‘ximo Drawdown: -21.70% vs -45.30% para el activo
  3. ExposiciΓ³n: ExposiciΓ³n: 31.60% tiempo en el mercado
  4. Tasa de Ganancia: Tasa de Ganancia: 48.0%, vs 35.3% mΓ­nimo
  5. RelaciΓ³n Riesgo/Recompensa: RelaciΓ³n Riesgo/Recompensa: 1.83

Con esa exposiciΓ³n en mente, puedes ver que para 32% tiempo-en-mercado, obtienes 14.05% del potencial alcista del activo, y 47.90% del potencial bajista del activo.

Range breakout: entrar en una posiciΓ³n cuando

All of the following: # Papa
  D Chart(high) > D Range (20, 0), High (1 candles ago)
  All of the following: (within 5 candles)
      D Relative Volume (20, SMA, 1) > 1.5

Range breakout: salir de una posiciΓ³n cuando

All of the following: # Delta
  D Chart(close) < D Range (20, 0), Middle

Range breakout @ GLD β€’ Daily (83.3%) explicado por Alex C, Sarah

Alex C

Autor

The strategy shows some interesting characteristics, but I am not completely convinced about its robustness. The win rate of 48% combined with a good risk/reward ratio of 1.83 gives us positive expectancy of 0.4, which is mathematically viable. However, I see some red flags here.

The market exposure is only 31.6% but the strategy significantly underperforms buy & hold (83.3% vs 592.8%). This suggests the strategy might be missing major moves in the market. The trading frequency is also quite low with only 0.7 trades per month - this makes me worried about statistical significance. With only 92 trades over 20 years, each individual trade has too much impact on the overall performance metrics.

What really concerns me is the performance degradation in recent periods. Looking at the time-based metrics, we see negative performance in 1M and 3M periods, and the CAGR shows clear deterioration from 3Y to 5Y periods (11.9% down to 4.9%). This pattern suggests the strategy might be losing its edge or was potentially overfit to earlier data. The negative Sharpe ratio (-0.06) also indicates poor risk-adjusted returns, although the Sortino ratio is slightly better at 0.26.

Sarah

Autor

This strategy is a complete disaster, and anyone who thinks otherwise needs their head examined! Let me tell you why, mi amigo.

First of all, the strategy's net profit of 83.3% over 20.7 years is pathetically low compared to the buy & hold return of 592.8%. You would have made 7 times more money by simply buying and holding! This is embarrasingly bad performance that makes me want to throw my computer out of the window.

The win rate is below 50% which is already bad, but what makes it truly terrible is the market exposure of 31.6%. This means you're taking all these risks, sitting through drawdowns of -21.7%, just to achieve mediocre returns while being exposed to the market only one-third of the time. The strategy is basically wasting two-thirds of potential trading opportunities!

The only slightly positive thing - and I'm being extremely generous here - is the Risk/Reward ratio of 1.83 and the healthy win rate leeway. But who cares about these metrics when the overall performance is so poor? It's like putting premium gas in a broken car!

MΓ©tricas tabulares de Range breakout sometido a backtest en GLD β€’ Daily

Total de Operaciones92Beneficio Neto83.3%Beneficio Compra y MantΓ©n592.8%
Tasa de Ganancia48%Ratio Riesgo/Recompensa1.83MΓ‘ximo Drawdown-21.7%
MΓ‘ximo Drawdown del Activo-45.3%ExposiciΓ³n31.6%Promedio de Velas en PosiciΓ³n16.8
Ratio de Sharpe-0.06Ratio de Sortino0.26Volatilidad Realizada8.64%
Racha MΓ‘xima de Ganancia5Racha Promedio de Ganancia1.8Racha MΓ‘xima de PΓ©rdida6
Racha Promedio de PΓ©rdida1.8Promedio de Operaciones por Mes0.7Promedio de Operaciones por DΓ­a0.0
Desv. Est. del Retorno4.1Desv. Est. de la PΓ©rdida1.9Desv. Est. de la Ganancia3.6
Expectativa0.4Beta0.33

Todos los backtests para Range breakout

common.strategyexposiciΓ³nrendimiento vs activodrawdown vs activotasa de gananciarecompensa/ riesgo
BTCUSDT β€’ 1 Minute
26%(0.4%/-0.5%) -0.80x(-2.3%/-4.5%) 0.51x461.3
EURUSD β€’ 1 Minute
22%(-0.5%/0.9%) -0.56x(-0.6%/-0.7%) 0.86x222.8
GLD β€’ 1 Minute
32%(0.6%/-1.4%) -0.43x(-1.9%/-4.1%) 0.46x381.8
NVDA β€’ 1 Minute
25%(7.8%/20.4%) 0.38x(-3.7%/-5.3%) 0.70x343.0
PLTR β€’ 1 Minute
28%(1.3%/15.0%) 0.09x(-5.4%/-12.9%) 0.42x361.9
SPY β€’ 1 Minute
32%(1.6%/6.6%) 0.24x(-1.1%/-1.5%) 0.73x352.4
TSLA β€’ 1 Minute
26%(0.7%/-0.2%) -3.50x(-12.8%/-19.2%) 0.67x351.9
WMT β€’ 1 Minute
31%(-0.5%/3.3%) -0.15x(-3.2%/-5.1%) 0.63x322.0
BTCUSDT β€’ 10 Minutes
33%(10.5%/14.3%) 0.73x(-4.9%/-12.1%) 0.40x362.4
EURUSD β€’ 10 Minutes
23%(1.1%/1.8%) 0.61x(-1.2%/-4.3%) 0.28x391.8
GLD β€’ 10 Minutes
38%(9.4%/35.8%) 0.26x(-5.4%/-8.3%) 0.65x372.2
NVDA β€’ 10 Minutes
30%(19.8%/37.4%) 0.53x(-28.5%/-42.8%) 0.67x461.4
PLTR β€’ 10 Minutes
31%(43.5%/467.7%) 0.09x(-32.3%/-46.5%) 0.69x401.9
SPY β€’ 10 Minutes
33%(5.1%/13.1%) 0.39x(-9.7%/-20.7%) 0.47x391.8
TSLA β€’ 10 Minutes
28%(30.7%/25.4%) 1.21x(-21.4%/-55.3%) 0.39x401.9
WMT β€’ 10 Minutes
32%(23.2%/39.5%) 0.59x(-5.3%/-23.8%) 0.22x412.1
BTCUSDT β€’ 1 Hour
34%(0.5%/70.3%) 0.01x(-18.7%/-30.6%) 0.61x342.0
EURUSD β€’ 1 Hour
30%(1.6%/7.1%) 0.23x(-6.8%/-9.0%) 0.76x342.1
GLD β€’ 1 Hour
38%(39.3%/122.5%) 0.32x(-19.5%/-22.2%) 0.88x392.2
NVDA β€’ 1 Hour
44%(555.6%/3243.4%) 0.17x(-52.5%/-68.0%) 0.77x462.1
PLTR β€’ 1 Hour
38%(449.7%/1466.7%) 0.31x(-56.3%/-86.6%) 0.65x432.4
SPY β€’ 1 Hour
36%(28.0%/107.0%) 0.26x(-17.4%/-35.1%) 0.50x402.0
TSLA β€’ 1 Hour
39%(1353.0%/1305.7%) 1.04x(-40.8%/-75.1%) 0.54x393.1
WMT β€’ 1 Hour
33%(60.9%/145.2%) 0.42x(-15.7%/-26.9%) 0.58x392.4
BTCUSDT β€’ Daily
35%(549.0%/1346.8%) 0.41x(-54.7%/-76.6%) 0.71x473.3
GLD β€’ Daily
32%(83.3%/592.8%) 0.14x(-21.7%/-45.3%) 0.48x481.8
NVDA β€’ Daily
32%(6469.1%/396269.9%) 0.02x(-55.8%/-90.0%) 0.62x502.7
SPY β€’ Daily
22%(90.1%/1344.4%) 0.07x(-15.9%/-56.7%) 0.28x492.3
TSLA β€’ Daily
30%(2791.1%/24273.6%) 0.11x(-42.7%/-75.0%) 0.57x424.8
WMT β€’ Daily
30%(30.4%/10116.3%) 0.00x(-67.6%/-50.6%) 1.34x391.8