<!DOCTYPE html>Cómo hacer backtesting a una estrategia de trading: Guía práctica paso a paso (2026)
Cómo hacer backtesting

Ecosystem Academy · Proceso

Cómo hacer backtesting a una estrategia de trading (sin engañarte a ti mismo)

Backtesting is how you find out whether your idea is an edge or a hunch — before a funded account's drawdown rules find out for you. Here's the honest, step-by-step process.

10 min de lecturaActualizado 2026Todos los niveles

1. Primero, define las reglas por escrito

A backtest is only as good as the rules behind it. "Buy when it looks bullish" is untestable. Every rule must be binary — answerable yes/no from the chart with no judgement calls:

  • Entrada: the exact condition that triggers a trade (e.g. "price closes back above VWAP after touching it, RSI between 40–55").
  • Stop loss: the exact price logic (e.g. "below the pullback low").
  • Take profit: múltiplo R fijo, objetivo estructural o regla de trailing; elige uno y anótalo.
  • Tamaño de posición: fracción fija de riesgo de la cuenta por operación (0.5–1%).
  • Filtros: sesiones, ventanas de noticias, máximo de operaciones por día.

2. Reúne una muestra real

Retrocede el gráfico, oculta el futuro y avanza vela por vela, registrando cada operación que dicten tus reglas: las ganadoras y y el las perdedoras, sin omitir las más feas. Una hoja de cálculo es suficiente: fecha, mercado, entrada, stop, objetivo, resultado en R.

Apunta a al menos 100 trades, y asegúrate de que la muestra cubra diferentes condiciones: tendencias, rangos, semanas tranquilas y semanas volátiles. Una estrategia probada solo en un mercado alcista es una moneda al aire en cualquier otro escenario.

3. Los números que importan

Expectativa

R promedio por operación: (tasa de acierto × ganancia prom.) − (tasa de pérdida × pérdida prom.). Positivo = ventaja. Este es el número que lo decide todo.

Drawdown máximo

The worst peak-to-trough losing stretch, in R. Compare it to your funded account's drawdown rules — if the backtest shows 8R of drawdown and your daily limit is 5%, the strategy needs resizing.

Win rate

No significa nada por sí sola: una tasa de acierto del 40% con ganancias de 3R supera a una tasa del 70% con ganancias de 0.5R. Analízala siempre junto al promedio de ganancia/pérdida.

Rachas de pérdidas

Count the longest run of consecutive losses. You will live through it again live — decide now whether you'll keep taking the signals.

4. Overfitting: el asesino silencioso

Sobreajuste (Overfitting) Es ajustar tus parámetros hasta que el backtest parezca perfecto, solo para descubrir en vivo que memorizaste la historia en lugar de encontrar una ventaja. Defensas:

  • Mantén reglas escasas y simples. Cada condición extra es otra oportunidad para el ajuste de curva.
  • Divide tus datos. Crea la estrategia en un periodo y pruébala sin cambios en otro distinto (fuera de muestra). Si el rendimiento colapsa, fue ajustado, no descubierto.
  • Desconfía de la perfección. Un 90% de win rate con un drawdown minúsculo en un backtest es casi siempre un error o un ajuste, no un hallazgo.

5. Del backtest a la cuenta fondeada

  1. Haz backtest hasta tener más de 100 operaciones registradas y una esperanza matemática positiva.
  2. Haz forward-test on a demo for 2–4 weeks — live spreads, live fills, live emotions. Expect results to be somewhat worse than the backtest; that's normal.
  3. Alinea los números con el reglamento. Your strategy's max drawdown and losing streaks must fit comfortably inside the funded account's daily and max drawdown limits, with room to spare.
  4. Luego, toma la evaluación. With Pay After Passing, even this step is risk-free — you only pay the fee once you've passed.

6. FAQ

¿Backtesting manual o automático?

Manual (bar-by-bar replay) is slower but teaches you the strategy's feel and is honest about discretion. Automated testing is faster and covers more data, but only works for fully mechanical rules. Most traders benefit from doing both.

¿Cuántas operaciones validan un backtest?

100 es el mínimo operativo; 200–300 es mucho mejor. La muestra también debe abarcar diferentes condiciones de mercado, no solo un mes bueno.

Mi backtest es genial pero los resultados reales son peores. ¿Por qué?

Usually slippage, spread, skipped signals, or hesitation — the human factor. That's exactly what the forward-test stage is for. If live results are dramatically worse, re-check for overfitting.

¿Probado y listo?

Lleva tu estrategia probada a una cuenta fondeada

Pay After Passing: run the evaluation with zero upfront cost and pay the fee only after you've passed.