An indicator alert fires. A bar closes, a line flips, and somewhere downstream an order has to exist. The order type you attach to that alert decides whether you get filled at a price you can live with, filled at a price you can't, or not filled at all. Most explainers stop at the definitions. This one starts from the alert and works outward.
Short version: a stop order guarantees you get out (or in) but not at what price. A stop-limit order guarantees a price ceiling or floor but not that you get filled. Neither is better in general. Which one belongs on a signal depends on whether the bigger risk in your setup is a bad fill or no fill, and on whether the order is an entry or a protective exit.
Quantzee builds analytical software for TradingView, not trading advice, and nothing below tells you what to buy or sell. All prices in the examples are hypothetical, chosen to make the arithmetic easy to follow. Where a fact comes from an outside source, it is cited.
What a stop-limit order is
A stop-limit order is two instructions glued together. The first is a stop price, the trigger. The second is a limit price, the worst price you will accept once triggered. Until the market trades at or through the stop price, nothing happens. After it does, the order turns into a limit order and sits in the book at your limit price or better.
Take a hypothetical long position in a stock trading at $50.00. You set a sell stop-limit with a stop at $48.00 and a limit at $47.50. If the price falls to $48.00, a sell limit order at $47.50 goes live. It fills only at $47.50 or higher. If the stock slides straight through $47.50 on the way down, your order is still sitting there, unfilled, while the position keeps losing money.
That last sentence is the whole story of the stop-limit order. It protects you from a bad price by giving up the certainty of an exit. The SEC's investor education site describes the same trade-off. According to the Investor.gov glossary entry for the stop-limit order, a stop-limit becomes a limit order once the stop price is reached, which means it can fail to execute if the market moves past the limit.
Market, limit, stop and stop-limit orders in one table
Four order types cover almost everything an indicator-driven trader sends. Here is how they differ on the two questions that matter: will it fill, and at what price?
| Order type | Trigger | Price control | Fill certainty | Main risk |
|---|---|---|---|---|
| Market | None, goes immediately | None | Very high in liquid markets | Slippage in thin or fast markets |
| Limit | None, rests in the book | Full: your price or better | Uncertain | Price runs away and you never get in |
| Stop (stop-market) | Stop price touched | None after trigger | High once triggered | Fills well past the stop in a gap |
| Stop-limit | Stop price touched | Limit price after trigger | Uncertain | Triggers but never fills |
Per the Charles Schwab order types overview, a stop order becomes a market order when the stop price is reached, while a stop-limit order becomes a limit order. That single difference, market after trigger versus limit after trigger, drives everything else in this article.
Two more points the table hides. First, "stop price touched" is defined by each venue. Some brokers trigger on the last trade, some on the bid or ask, and futures exchanges have their own rules. Read your broker's definition before you rely on it. Second, a limit order on its own is the mirror image of the stop-limit: it has no trigger, it just waits. The difference between "stop order versus limit order" is really the difference between reacting to a price and waiting for a price.
How a stop-limit order triggers and fills
Walk through the life of one sell stop-limit, tick by tick, so the sequence is clear.
- You hold 100 shares bought at $50.00. You place a sell stop-limit: stop $48.00, limit $47.60.
- The order is held, usually at your broker or the exchange, and does not appear in the public book.
- Price trades at $48.00 or lower. The stop is now triggered.
- A sell limit order for 100 shares at $47.60 is released into the book.
- It fills if buyers exist at $47.60 or higher. It rests unfilled if the top bid has already dropped below $47.60.
The gap between the stop and the limit is the part you control, and it is a real trade-off. A tight gap, say 10 cents, protects your price but raises the odds the order triggers and then doesn't fill. A wide gap, say $1.00, behaves more like a plain stop order. In the limit, a stop-limit with an enormous gap is a stop order wearing a costume.
Partial fills are the other wrinkle. If only 40 of your 100 shares trade inside the limit, the remaining 60 stay open. You are now holding a 60-share position with an active sell order, in a market that is moving against you. Some brokers let you set a time-in-force of "good till canceled" so the leftover keeps working; others cancel at the close. Neither is a mistake, but you need to know which one you are on before the trade, not after.
For a buy stop-limit the logic flips. A buy stop at $52.00 with a limit at $52.40 triggers when price trades up to $52.00, then buys at $52.40 or lower. It is a way to say: enter on strength, but not above $52.40.
The gap problem: when a stop-limit never fills
Everything above assumes the price moves through the stop in an orderly way. Markets don't always oblige. Overnight gaps, news releases, halts, and fast tape can all make the price jump from one side of your order to the other without trading in between.
Here is the same hypothetical position, $50.00 entry, under three scenarios.
| Scenario | Next trade after stop | Plain stop result | Stop-limit (stop $48.00, limit $47.50) |
|---|---|---|---|
| Orderly drift | $47.95 | Market sell fills near $47.95, about $2.05 lost per share | Limit goes live, fills at $47.95, same result |
| Gap down to $47.00 | $47.00 | Market sell fills near $47.00, about $3.00 lost per share | Triggers, but $47.00 is below the $47.50 limit, so no fill yet |
| Gap down, then keeps falling to $44.00 | $44.00 | Fills somewhere between $47.00 and $44.00 | Never fills unless price climbs back to $47.50 |
Look at the third row. The plain stop gets you out, painfully. The stop-limit leaves you holding a position you intended to exit, and holding it at exactly the moment you tried to leave. That is why the gap risk of a stop-limit is described as "no fill risk" and the gap risk of a stop is described as "price risk." They are different failure modes, not different amounts of the same failure.
Futures traders see the same thing. Data from StoneX's futures blog on managing risk with stop-limit orders frames the stop-limit as a tool for controlling slippage on the way out, with the explicit warning that it can leave an order unfilled in a fast market. That warning is the point. If you attach a stop-limit as a protective stop, you are choosing price protection over exit certainty, and you should do it on purpose.
How often does a gap through your limit actually happen? That depends on the instrument, the session and the day, and there is no universal number worth quoting. A single sample from one instrument over one month tells you very little about another. If it matters to your decision, measure it on the instrument you trade: count the bars where the open sits beyond your planned stop, and read the distance. Slippage and gap risk differ enough between instruments that the slippage definition is worth a read before you settle on a gap between stop and limit.
Entries from an indicator alert: which order type
Now the question this article is really about. An indicator signal arrives on a bar close. What do you attach?
The first thing to understand is timing. A TradingView alert that fires "once per bar close" fires after the bar is complete, so by the time your order exists the next bar is already open. Your order is working against a new price, not the price the indicator saw. That structural gap is covered in detail in the piece on futures automation and the fill gap at bar close; the short version is that your order type decides how you absorb it.
Here is how each choice behaves on an entry.
- Market order. You get in almost every time, and you pay whatever the next bar's opening spread and movement demand. On a signal that comes with a surge of volume, that cost can be the difference between a trade that makes sense and one that doesn't.
- Limit order at the signal price. You control the price, but a strong signal often means price keeps moving away from you. You will miss the strongest moves, because the moves that run hardest are the ones that never come back to your limit. You will get filled on the weaker ones, because those are the ones that pull back.
- Buy stop above the signal bar. You enter only if price confirms by trading above a level. You get the breakout but pay for it with a worse price, and a gap can fill you well above your stop.
- Buy stop-limit above the signal bar. You enter on confirmation, but cap the price you will chase. A gap through the limit leaves you out of the trade, which on an entry is a much milder failure than the same event on an exit.
That last point deserves emphasis. For entries, "no fill" is usually a cost you can tolerate. You still have your capital, no position is open, and the only loss is an opportunity. For exits, "no fill" means the opposite: you are still exposed. The same order type is low-stakes on one side and high-stakes on the other.
A decision table for entries
| If your priority is | Consider | You accept |
|---|---|---|
| Being in the trade on every signal | Market order | Paying the spread and slippage |
| Never paying above a set price | Limit order | Missing fast moves |
| Entering only on confirmation, price secondary | Buy stop | Chasing in a gap |
| Entering only on confirmation, with a price ceiling | Buy stop-limit | Missing gap moves |
If you are testing an entry rule with a strategy backtest, remember that the tester has to assume a fill. How it does that is a model, not a fact. The note on TradingView paper trading and its fill model explains why a simulated fill and a live fill can differ, and that gap is larger for stop-limit orders than for market orders because the "did it fill?" question has a real answer.
Stop-losses: stop vs stop-limit
For a protective exit, the stakes flip. A stop-loss exists to cap damage on a trade that has gone wrong. That job is about certainty. The question to ask is not "what is the worst price I'll accept?" but "what is the worst thing that can happen if the order doesn't fill?"
With a plain stop order, the worst case is a bad fill. You know you are out, and you find out the price afterward. With a stop-limit, the worst case is no fill, and the loss keeps growing until you notice and act. For a position sized to a risk budget, say 1% of an account on a $10,000 balance, which is $100, a bad fill might turn a $100 planned loss into $140. A missed fill in a sharp drop can turn it into something much larger, because the position is still open.
That is why many traders use a plain stop for the protective exit and keep stop-limits for situations where the price matters more than the exit. A few cases where a stop-limit stop-loss is a reasonable choice:
- Thin instruments where a market order could sweep several price levels and fill far from the stop.
- Positions small enough that a failed exit costs less than a bad fill would.
- Setups where you will be at the screen, can see an unfilled order, and can replace it by hand.
And a few cases where a plain stop is the more defensible choice:
- Automated setups with no one watching.
- Positions held overnight or over a weekend, where gaps are most likely.
- Any position where an unplanned open exposure is worse than a poor price.
The SEC's investor bulletin on stop orders makes a closely related point. As the Investor.gov bulletin on stop orders and stop-limit orders explains, a stop order does not guarantee the price you get, because it turns into a market order and the fill can be above or below the stop. The bulletin also notes that a stop-limit does not guarantee execution. Both limits are written down by a regulator-run education site; they are not marketing caveats.
One more practical split. If you can't decide, you can run both: a plain stop as the hard exit and a tighter alert-driven order for a managed exit. Just be careful that two exit orders on one position can both fire and leave you short a position you didn't mean to open. Whether to use one-cancels-other grouping depends on your broker, and the exact behavior varies, so test it in a paper account.
How TradingView alerts and broker orders connect
People ask whether TradingView can place a stop-limit order directly from an alert. The accurate answer has layers.
An alert on its own is a notification. It fires when a condition is met and can send a message by popup, email, push, or webhook. It does not place an order. For an order to exist, something has to receive that message and turn it into an instruction at a broker.
There are three common paths:
- A connected broker, using TradingView's own order panel. You place the order by hand from the chart, choosing market, limit, stop or stop-limit from the ticket. The alert is just your cue. The supported order types and fields depend on the broker integration.
- A webhook to a third-party tool or your own script. The alert sends a message to a URL, and that tool translates it into an order at the broker. The order type is then whatever that tool supports and whatever you put in the message.
- A strategy with automated orders. Strategy scripts can emit stop and limit orders on the chart. Whether those reach a live account as written depends on the connection you use. Treat what the strategy tester shows as a model of fills, not a record of them.
The practical consequence: the order type isn't set by the indicator. It is set at the last step, wherever the order is actually built. The indicator only supplies the event and, if it plots them, the price levels. An indicator that plots an entry, a take-profit and a stop-loss, as SuperTrend Pro+ does with its ATR-based Entry/TP/SL ladder, is giving you levels. What kind of order you hang on each level is a separate decision, and this article is about making that decision deliberately.
Turning plotted levels into order parameters
Suppose an indicator marks a long entry at $100.00 with an ATR-based stop 1.5 ATR below, and the ATR is $2.00. The stop level is $97.00. Now choose the order:
- Plain stop at $97.00. A sell stop. If price gaps to $95.50, you fill near $95.50, a $4.50 loss per share against the $3.00 you planned.
- Stop-limit, stop $97.00, limit $96.50. If price gaps to $95.50, no fill at the limit. The position stays open until price returns to $96.50 or you act.
- Stop-limit with a wider limit, stop $97.00, limit $95.00. The same gap to $95.50 fills inside the limit, with a worst case of $95.00. You have now bought a limited amount of price protection, and the protection only works if the gap is smaller than $2.00 beyond the stop.
Notice what the wide-limit version does: it behaves like a plain stop for moves up to a boundary and like a stop-limit beyond it. That's often the most sensible reading of "I want some price protection but I still need to get out." The exact limit offset should come from how the instrument moves, for instance a multiple of its typical bar range, and not from a number picked to look neat.
A simple workflow for choosing
If you want a procedure instead of a debate, use this order of questions. Each one narrows the choice.
- Is this an entry or a protective exit? Entries tolerate no-fill. Protective exits mostly don't.
- Will anyone be watching? If the setup runs unattended, lean toward the order type that fails safe. For exits, that means a stop.
- How thin is the instrument? In a deep, liquid market a plain stop usually fills close to its level. In a thin one, the slippage can be large and a limit has more value.
- Will the position be held through a close or a news event? Gaps cluster there. A limit that sits inside a gap is a limit that won't fill.
- What happens at the worst case on each side? Write down the number. A bad fill costs X. A missed fill costs Y per hour while the order is stuck. Choose the type whose worst case you can afford.
The methodology for step five is deliberately simple. Take your planned risk per trade, then add the loss from the largest gap you consider plausible. That is your plain-stop worst case. For the stop-limit, the worst case is the open-ended loss while the position stays unexited. Since that one has no ceiling, protective exits rarely belong on a stop-limit unless you have another safeguard in place.
Then test it. Run the rule in a paper account or against a recorded sample of bars, and record, for each signal, whether the order would have triggered, whether it would have filled, and at what price. Only a test setup like that tells you how often the no-fill case really appears for your instrument and timeframe. A rule of thumb from an article, including this one, is not a measurement.
Common mistakes with stop-limit orders
Setting the stop and the limit at the same price. Some platforms allow it. The order triggers and goes live at a limit that is already at the edge of the market, so any further move through it prevents a fill. It looks tidy, yet it protects almost nothing because any further move through the limit blocks the fill.
Another one: using a stop-limit on the sell side as the only exit for a swing trade. It works on quiet days, and it fails on the one day you most needed it to work.
A subtler error is mixing up the direction of the limit. On a sell stop-limit, the limit sits below or at the stop. On a buy stop-limit, it sits above or at the stop. Put it the wrong way round and some brokers reject the order, while others accept it and create something you did not intend.
Then there is forgetting the session. Many stop orders are active only in regular hours by default. An order that was valid at the close may not trigger overnight, so a gap at the open is the first moment it can act. Check whether your broker lets stops trigger in extended hours, and whether that is even a good idea in a thin pre-market book.
Last, testing with market-fill assumptions and trading with stop-limits. A backtest that assumes every triggered stop fills at the stop price will look better than live trading with stop-limits. The difference is exactly the unfilled cases. If your tester can't model the no-fill case, treat its numbers for stop-limit exits as an upper bound.
Frequently Asked Questions
What is a stop-limit order?
A stop-limit order is a conditional order with two prices. The stop price triggers it, and the limit price caps what you will pay (on a buy) or the least you will accept (on a sell). Once the stop is hit, the order becomes a limit order. It fills only at the limit price or better, so it can go unfilled if the market moves past the limit.
What is the difference between a stop order and a limit order?
A limit order waits for a price you name and fills at that price or better. A stop order waits for the market to reach a trigger price, then becomes a market order and fills at the next available price. A limit controls the price but not the fill. A stop controls the fill but not the price. A stop-limit combines the trigger of a stop with the price control of a limit.
Can a stop-limit order fail to fill?
Yes. If the price gaps or moves quickly through your limit after the stop triggers, there may be no trades at your limit price or better. The order stays open and unfilled. For a protective exit, that means you remain in the position. Regulators describe this risk in their investor guidance, including the Investor.gov material linked above.
Should a stop-loss be a stop or a stop-limit?
For most unattended or overnight positions, a plain stop is the safer choice, because the main job of a stop-loss is to get you out. A stop-limit can make sense in thin markets or when you are watching and can replace an unfilled order by hand. Decide by asking which failure you can afford: a poor price or an open position.
Can TradingView place a stop-limit order from an alert?
An alert alone only sends a notification or a webhook message. Whether a stop-limit order results depends on what receives the alert: a connected broker you trade through by hand, a webhook tool that builds orders, or a strategy wired to a broker. The order type is set where the order is built, not by the indicator.
Where this leaves you
Pick the order type for the failure you can afford. On entries, a stop-limit is a sensible way to demand confirmation without chasing, because missing a trade is cheap. On protective exits, the order that guarantees you leave is usually worth more than the one that guarantees a price. And whichever you choose, measure how often the awkward case happens on the instrument you trade, instead of trusting a generic number.
If your signals come from an indicator that plots its own entry and exit levels, like SuperTrend Pro+, use those levels as the trigger prices and spend your effort on the part this article covered: which order you attach to each one, and what you do when it doesn't fill. Quantzee provides analytical tools only, and nothing here is a recommendation to trade. Paper trade any order setup before using real money.
