Bentrix Docs
HomePricingDashboard

Your own fills

Measure how much worse your real account is filled than a backtest fills — the slippage per market and the delay from order to fill — then make a laboratory workbench that fills like your broker, and re-run the strategy there.

Why

A backtest fills a market order at the next quote and a stop at the first price through it. Your broker fills you a little later and a little worse, and on a fast day a lot worse. A strategy whose edge is smaller than that difference has no edge. Measuring it on your own account replaces a guess with your own number.

01Measuring

On a real account's row in the rail, choose Measure my fills…. The My fills window names the account and the laboratory the deals are re-priced on, the recording of this account's own history. That is the laboratory keyed by the history the account's server serves, so a deal's moment and the recording's ticks are on one clock.

  1. Choose how far back: 30 days, 90 days, A year or Everything.
  2. Press Read my fills. Bentrix reads the account's deals and orders off its MetaTrader: prices and moments only, no money figure.
  3. Each market or stop fill is set against what Bentrix's venue would have filled at that moment of the recording: the next tick after a market order was placed, the first tick through a stop. The difference is in points, counted against you.

For each market the window shows, for example:

EURUSD: 143 deals, 131 measured · median 0.4 · mean 0.7 · 90% 1.6 · worst 6.2 points

and the delay: From placing a market order to its fill: median 180 ms, 90% 420 ms, over 96 orders.

A deal on a day the recording holds no tick of is not re-priced, and the window counts it. If the laboratory does not hold those days yet, download them first. A history longer than one read holds is said, with the newest deals left out: read a shorter span.

02A workbench with your slippage

Below the measurement:

  • Fixed at the medianEvery fill slips by the market's median shortfall. Or Random, mean as measured: each fill slips by a random amount whose mean is the measured mean, up to twice it, from a fixed seed.
  • With my latencyFills also wait the measured delay.
  • Alike this workbenchThe laboratory workbench whose markets, days and account it copies.

Workbench with my slippage makes that workbench, labelled my slippage. Run the strategy on it and compare it with the run on the plain workbench. What is left is closer to what your account would have made.

03Where else it shows

The verification battery's check 15, My fills against the venue, reports this measurement when one is open. The robustness test's fill degradation is the same question asked without your data.

04From a program

fills_measure (with the account and the span), fills_get until it is no longer reading, and fills_make_bench (with slippage: median or mean, latency, and the workbench to make it alike).

Bentrix 0.1.382Every number, name and default on these pages is read from the application itself.What is comingWhat changed