Skip to content
TradingTune
Metrics, Risk, and Execution

How does a stop-limit order differ from a stop order in TradingView?

A stop order becomes a market order once its stop price is reached, while a stop-limit order becomes a limit order that controls the price but may not fill.

On this page

Key takeaways

  • A stop order becomes a market order once its stop price is reached, so the stop price is a trigger and not a guaranteed execution price.
  • A stop-limit order becomes a limit order once its stop price is reached, which gives control over the fill price but means the order may not be executed.
  • The Strategies page says, checked 2026-12-01, that a stop and a limit argument make one stop-limit order in strategy.entry() or strategy.order() but two exit orders in strategy.exit().
  • On one reading, a test note can record which command created each exit, whether a limit price was set and which chart value counted as reaching the stop price.

What is the short difference between a stop order and a stop-limit order?

Both order types wait for a stop price, and the difference lies in what each one becomes once that price is reached: a stop order becomes a market order, while a stop-limit order becomes a limit order that carries a price of its own. A market order asks for execution at whatever price is available, so a stop order is built to get filled but leaves the fill price open. A limit order names the least favourable price at which it may fill, so a stop-limit order puts a boundary on the price and accepts that the order may go unfilled, for example when the market does not reach that boundary. In a Pine Script strategy on TradingView, this split shows up in the arguments that an order command receives.

According to the Strategies page in the Pine Script documentation, checked 2026-12-01, a strategy.entry() or strategy.order() call which includes a stop argument and a limit argument creates a stop-limit order. To simulate a basic stop order, the page says to pass a price value to the stop parameter of an applicable order placement command. A later section covers how strategy.exit() treats both arguments in a different way.

What does the stop price do, and what are market and limit orders?

A stop price is the level that activates a stop or stop-limit order, so it works as a trigger and does not by itself fix the price at which anything fills. The Investor.gov bulletin on stop, stop-limit and trailing stop orders says, checked 2026-12-01, that the stop price is not the guaranteed execution price for a stop order and that it is a trigger that causes the stop order to become a market order. According to the bulletin, a stop order, which it also calls a stop-loss order, is an order to buy or sell once the price of the stock reaches a specified level known as the stop price. The bulletin also describes a sell stop order as one that is entered at a stop price below the current market price.

Two simpler order types, the market order and the limit order, explain what happens after the trigger. According to the Investor.gov bulletin on order types, checked 2026-12-01, a market order is an order to buy or sell a stock at the best available price, and the price at which it will be executed is not guaranteed. The order types bulletin describes a limit order as one to buy or sell a stock at a specific price or better. The order types bulletin also says that a limit order can only be filled when the market price of the stock reaches the limit price. On one reading, the two definitions show the difference in small form: a market order accepts an uncertain price to seek a fill, and a limit order accepts an uncertain fill to keep a price boundary.

What does a stop order become, and what does that mean for the price?

Once the stop price is reached, a stop order turns into a market order, so its price depends on what the market offers when that market order executes. The bulletin on stop orders says, checked 2026-12-01, that the execution price an investor receives for this market order can deviate significantly from the stop price because of the prices of available liquidity when the market order executes. Liquidity here means how much can be bought or sold near the current price, and a thin market can leave the best available price far from the trigger.

The fill price is therefore the open question for a stop order, and the stop price answers when the order triggers.

The Wikipedia article on order types says, checked 2026-12-01, that a triggered stop order becomes a market order, which in the article’s wording means the trade will definitely be executed, though the fill price can differ from the stop price, above all when the market moves fast or when liquidity is insufficient for the order’s size. On one reading, the passages cited here describe a stop order as favouring execution over price, because the market order that it becomes carries no price limit of its own.

The bulletin on stop orders adds, checked 2026-12-01, that a stop order may be triggered by a short-term, intraday price move that results in an execution price substantially worse than the closing price of the stock for the day. A jump between bars is a separate way for a fill to land away from the stop price, and overnight gaps and stop-loss fills is the place where that case is worked through.

What does a stop-limit order become, and what does it cost?

Once the stop price is reached, a stop-limit order becomes a limit order, which can then fill at its specified limit price or at a better price. The bulletin on stop orders says, checked 2026-12-01, that a stop-limit order combines the features of a stop order and a limit order, and that its benefit is control over the price at which the order can be executed. The order types bulletin says, checked 2026-12-01, that an investor can avoid the risk of a stop order executing at an unexpected price by placing a stop-limit order, but that the limit price may prevent the order from being executed.

On one reading, the cost of that price control is the loss of assurance that the order fills. The bulletin on stop orders states, checked 2026-12-01, that as with all limit orders a stop-limit order may not be executed if the price of the stock moves away from the specified limit price. The Wikipedia article on order types makes a similar remark, checked 2026-12-01, saying that a stop-limit order does not get filled if the price of the security never reaches the specified limit price.

A missing fill and a poor fill are different outcomes in a backtest. On one reading, a stop order leaves a poor fill open, while a stop-limit order leaves a missing fill open.

The bulletin on stop orders also says, checked 2026-12-01, that the stop price and the limit price of a stop-limit order do not have to be the same price. On one reading, that leaves two separate prices to record for each stop-limit order: one that decides when the order activates and one that bounds the price at which it can fill. As an illustration of this reading, consider a sell order placed to close a long position: if price falls through the stop price and then falls further below the limit price before a fill is possible, a stop order can still fill at whatever lower price the market offers, while a stop-limit order can stay unfilled.

The table below restates the comparison for the two order types in this article’s own words.

Order type What the stop price does What the limit price does What can happen after the trigger
Stop order The stop price acts as the trigger that turns the order into a market order once the market price reaches it. The order carries no limit price, so the price of the market order that follows is left open. The execution price can differ from the stop price, in some cases significantly.
Stop-limit order The stop price acts as the trigger that turns the order into a limit order once the market price reaches it. The limit price bounds the price at which the activated order can execute, at that price or a better one. The order may stay unfilled if the price of the stock moves away from the limit price.

How does a Pine strategy simulate a stop order and a stop-limit order?

The Strategies page says, checked 2026-12-01, that the main order types in a strategy include market, limit, stop and stop-limit orders. The page describes a stop order as an instruction that activates a new market or limit order once the market price reaches a specific price or moves to a worse value, meaning higher than the specified price for long orders and lower than it for short orders. The page also says that a stop order which a strategy places at a better value than the current market price activates its subsequent order with no wait for the market price to reach that value.

For a stop-limit order, the page then contrasts the two: a basic stop order triggers a market order when the current price is at the stop level or a worse value, whereas a stop-limit order creates a subsequent limit order to fill at the specified limit price. The stop-limit demo on the page uses the low of a bar as the limit price in its strategy.entry() call, and it draws extra marks that show where the strategy activates the subsequent limit order.

In the demo’s example chart, the market price reaches the limit level on the next bar after the script creates the stop-limit order, but the strategy does not enter a position because the limit order is not yet active. On that chart, after the market price reaches the stop level, the strategy places the subsequent limit order, and the broker emulator then fills that order after the market price reverses to the limit level. On one reading, the demo shows that in a Pine strategy the limit price alone does not fill a stop-limit order, because the order stays inactive until the stop level has been reached.

What changes when an exit call receives both a stop and a limit argument?

The Strategies page says, checked 2026-12-01, that the limit and stop parameters of strategy.exit() do not behave the same way as the limit and stop parameters of strategy.entry() and strategy.order(). In the page’s words, calling strategy.entry() or strategy.order() with limit and stop arguments creates a single stop-limit order, whereas calling strategy.exit() with both arguments creates two exit orders: a take-profit order at the limit price and a stop-loss order at the stop price.

The page’s exit example places a market order with strategy.entry() when its buyCondition value is true, and it then calls strategy.exit() with limit and stop arguments to create a take-profit order at the limitPrice value and a stop-loss order at the stopPrice value. On one reading, this pair of arguments therefore describes different structures depending on the command: a trigger and a bound on the fill price of one order for entry and order calls, and two separate orders, each with its own price level, for an exit call.

The two exit orders also raise a sequencing question when both levels fall inside one bar, which same-bar stop and target fills works through in detail.

What counts as the stop price being reached?

Whether a stop price counts as reached depends on which price is compared with it, and both Investor.gov bulletins name two standards that firms use for that comparison. The Investor.gov bulletin on stop orders says, checked 2026-12-01, that different brokerage firms have different standards for determining whether a stop price has been reached, and that some brokerage firms use only last-sale prices to trigger a stop order while others use quotation prices. The Strategies page says, checked 2026-12-01, that TradingView simulates the trades of a running strategy script with a broker emulator, which by default fills orders from the available chart data alone, unlike brokers in real-world trading.

On one reading, a backtest therefore adds its own assumption about which chart value counts as reaching a stop price, and that assumption is a separate matter from the standards that the bulletin describes for brokerage firms. On one reading, what a live brokerage firm does with a stop-limit order is a separate question from the rules of the broker emulator that the Strategies page documents. For that question, the bulletin says, checked 2026-12-01, that investors should check with their brokerage firms to determine which standard would be used for stop-limit orders. The bulletin also says, checked 2026-12-01, that stop, stop-limit and trailing stop orders may not be available through all brokerage firms.

What should a test record about stop and stop-limit orders?

On one reading, a note for each exit in a test can start with the command that created it, because one stop argument and one limit argument produce one order from an entry or order call and two orders from an exit call. The second item can be, for an entry or order call, whether a limit argument was set and, when it was, whether its price differs from the stop price, since a stop-limit order has two prices that need not match. A third item can be the chart value that the test treats as reaching the stop price, together with the date on which the Strategies page was read, because the page is a live page whose wording can change.

A fourth item can be an order that was placed but not filled, with a remark on whether the script’s logic expected that case. On one reading, an exit built as a stop-limit order that goes unfilled can leave a position open when no other exit applies, and a note on the case lets a later reader see why a position lasted longer than the script’s rule suggests.

When a stop order is used in one run and a stop-limit order in the next, notes of this kind help show whether a difference between the runs came from the order type, from another edit or from a change in the chart data. Repeating such a comparison by hand means writing these items out for each run, since a result alone does not say which order type produced each exit.

TradingTune for Chrome

Stop tuning your strategy's inputs by hand.

Add to Chrome, it's free

Free tier, no API keys. A free account is required to run. Not affiliated with TradingView, Inc.

What does this comparison not show?

The passages cited here describe the deviation of an execution price from a stop price in general words such as significantly, without giving a size for it. Nor do the passages cited here say how often a stop-limit order goes unfilled. This article does not rank the two order types and does not say which one suits a given strategy, symbol or market.

The scope here is the definitions in the cited passages and the stated emulator behaviour.

On one reading, a stop-limit fill in a backtest shows what the broker emulator did under its stated assumptions, and it does not establish what a live order would have received. How finer price data can change the order of simulated fills is a further question, treated in Bar Magnifier and backtest order fills. Because the cited pages are live pages, the statements about them hold for the versions read on the checked date, and later versions can read differently.

Sources

TradingTune for Chrome

Stop tuning your strategy's inputs by hand.

TradingTune runs systematic parameter searches on your own TradingView strategy, right inside the chart page. You keep the strategy, you read the results.

Free tier, no API keys. A free account is required to run. Not affiliated with TradingView, Inc.

Share this post