QTrader
Menu

Why a backtest makes no trades

Check strategy type, warm-up, signal timing, quantity and available data when a backtest returns no trades.

Before you start

A successfully compiled program can produce no trades for valid reasons. It may be an indicator rather than a strategy, have no signal in the selected period, lack warm-up, or request an entry that cannot be funded. Empty market history is a separate data error. Read the result's Notes before modifying the code.

Follow the workflow

  1. Confirm the selected market, timeframe and dates have candles. Inspect any missing-history or gap message.
  2. Check whether the program defines trading entry points or is only an indicator. An indicator does not become a strategy because it calculates an RSI or moving average.
  3. Allow enough prior bars for every indicator. Comparisons with missing values do not produce a true entry condition.
  4. Locate a signal inside the tradable window. A final-bar-only signal can remain pending; warm-up bars initialize values without executing trades.
  5. Check order quantity, equity and margin. Nonpositive or missing quantities do not open an entry, and insufficient funds can cause a dated warning.

Worked example

The SMA 50/200 example needs history for its slow average, then an actual crossing in the evaluated window. A short rising segment may have no crossing at all. Open the example, widen the available window and inspect the indicator lines and Notes before concluding that the engine failed.

Open the working example

Limits and interpretation

Widening a window does not guarantee a trade or improve a strategy. Missing values, date filters and the difference between signal and fill time can each explain an empty result. Change one condition at a time and preserve the failing case. Use data and history checks and order timing for the next diagnostic step.

The interactive workbench needs JavaScript. Reload this page if interactive controls could not load.