Trading tools

Order type fill simulator

A market order fills now at the available price. A limit order fills only at your price or better. A stop waits for a trigger, then becomes a market order. A stop-limit waits, then becomes a limit order and may never fill. Run each one on a moving price below.

Order type
Side

Falls about one point, then climbs back past the start.

99.00100.00101.00step 0step 23limit 99.40filled 99.40
Mid priceBid to askFaded: after the fillstep 23: bid 101.05 / ask 101.15

Filled

Your limit buy filled at 99.40 on step 6. The price came to your limit and the order filled at your limit price.

Fill price
99.40
Fill step
6
Cost vs mid
+0.15
Past stop
n/a

Prices are a made-up script, not a market. Change any number and the result updates.

Worked example

Start price 100.00, spread 0.10, slippage 0.15, path "Dip, then recover". You want to buy and you pick a limit of 99.40.

A buy trades at the ask, which is half a spread above the mid price. The ask only drops to 99.40 or lower on step 6, when the mid is 99.25. The order fills there at exactly 99.40, the limit. You waited for a better price and got it.

Now switch to a market order. It fills on step 0 at the ask of 100.05, plus 0.15 slippage, so 100.20. You paid 0.80 more than the limit, and you got in immediately.

Last, try a buy stop at 100.80 on "Spike, then fade", then a stop-limit with the same stop and a limit of 100.90. Compare what happens.

What this does not tell you

  • The prices are a made-up script. Real markets move on orders from other people, and no path here predicts one.
  • It fills a limit order the moment the price touches it. In a real queue you can be touched and still not filled, because others were ahead of you.
  • Slippage is one fixed number you choose. Real slippage changes with size, speed and liquidity, and in a fast market it can be much bigger.
  • It ignores fees, partial fills, trading halts and order-routing rules. Brokers and exchanges also differ in whether a stop triggers on the last trade, the bid or the ask.

Read the Orders lesson. Terms used here:

Embed this tool

Paste this where you want it to appear on your blog, course or newsletter page.

<iframe src="https://tradinglore.com/embed/order-fill-simulator" title="Order type fill simulator" width="100%" height="820" style="border:0;max-width:560px" loading="lazy"></iframe>
<p><a href="https://tradinglore.com/tools/order-fill-simulator">Order type fill simulator</a> by TradingLore</p>

Education only. Written by TradingLore, open source under the MIT licence. This tool uses no live prices and is not financial advice.