ESTVELO / Academy / Backtesting & automation
Practical education • model risk

Backtesting and automation without fooling yourself

A profitable historical test is a hypothesis under assumptions. The real research job is to discover which assumptions are doing the work and whether the idea survives more realistic conditions.

Common ways a backtest can lie

Overfitting

Too many rules or tuned parameters can fit historical noise instead of a durable market effect.

Look-ahead bias

The test accidentally uses information that would not have been available at the simulated decision time.

Survivorship/data bias

The dataset excludes delisted instruments, bad ticks or periods that make the strategy look worse.

Unrealistic execution

Ignoring spread, commission, slippage, latency, partial fills and liquidity can create results that cannot be reproduced live.

A stronger validation workflow

  1. Write the strategy logic before optimizing parameters.
  2. Use realistic transaction and financing costs.
  3. Separate development data from out-of-sample validation.
  4. Test parameter stability instead of one perfect value.
  5. Stress spreads, slippage and delayed execution.
  6. Run paper/demo or shadow execution before live capital.
  7. Monitor live drift and define when the strategy should be disabled.

Automation adds operational risk

A bot can repeat a mistake faster than a human. Network outages, stale data, duplicated orders, time-zone errors, API token problems, broker disconnections and unexpected platform updates all need failure handling.

AI-assisted code

Generative AI can explain APIs, draft code and accelerate prototypes. Treat generated code as untrusted until it has been reviewed, tested and restricted to the permissions actually required. Software correctness and strategy profitability are separate questions.

Continue

Historical simulation cannot guarantee future results. Automated trading can amplify both strategy and software errors.

Research essentials

Use ESTVELO as a research workspace: verify the source, check the jurisdiction, understand the assumptions and separate market information from a personal trading decision.

VerifyPrefer current primary sources for legal entities, rules, costs and product availability.
ContextRead the page together with market, risk and jurisdiction information rather than as an isolated claim.
CostsCheck direct and indirect costs before paying for a trading account, software subscription or service.
RiskNo tool, provider, indicator or infrastructure choice removes market or execution risk.