Limit-On-Close Orders: Smart Trading Techniques

A limit-on-close (LOC) order combines a closing-auction instruction with a price boundary. For a buy, the limit is the most you will pay; for a sell, it is the least you will accept. The order can participate when the auction price satisfies that limit, but a complete fill is not guaranteed.
Plan the level in LuxAlgo’s native charts, use Quant to help test a clearly specified end-of-day rule, and submit the live LOC instruction through your broker. A line on a chart, an indicator signal, or a historical close-price fill does not establish that an auction order was accepted or executed.
LOC vs MOC vs Standard Limit Orders
| Order | Price control | Primary execution setting | Main limitation |
|---|---|---|---|
| LOC | Limit price or better | Closing auction, subject to venue and broker handling | May be partially filled or remain unfilled |
| MOC | No specified limit | Closing auction | Unknown price; do not assume universal execution guarantees |
| Standard limit | Limit price or better | Eligible sessions under the order’s instructions | May execute before the close or not at all |
A buy LOC at $50 is eligible by price if the auction clears at $49.80. It is not eligible at $50.20. A sell LOC at $50 has the reverse boundary: $50.20 is acceptable, while $49.80 is not. These examples describe price eligibility; matching liquidity and venue priority still matter.
With a 200-share buy filled at $49.80, gross cost is $9,960 before fees, rather than $10,000 at the limit. The limit is a boundary, not an instruction to pay exactly that amount. See our MOC guide for the alternative that prioritizes auction participation without a price limit.
MOC and LOC Order Types: Video
When to Use LOC Orders
LOC can fit a portfolio adjustment measured against closing prices when you are willing to miss the trade rather than accept an unfavorable price. It may also suit a planned exit with a minimum acceptable sale price. If being flat overnight is mandatory, an exit that can remain unfilled creates a conflict you must resolve in advance.
The auction pools eligible interest, which can provide substantial liquidity. That does not guarantee low market impact or favorable prices for a large order. Consider your quantity relative to the security’s usual auction activity, the available opposing interest, and the consequences of a partial fill.
Benefits and Trade-Offs
- Price discipline: the limit prevents an execution beyond the specified boundary, but does not prevent losses after a buy fills.
- Closing-price alignment: the order targets the auction rather than an arbitrary intraday moment.
- Nonexecution risk: a limit can leave a rebalance incomplete or a position exposed overnight.
- Reduced flexibility near the close: order changes become restricted before the final auction information is known.
There is no universal rule that LOC orders are filled “after MOC but before everything else.” Exchanges apply their own allocation rules, and price, display status, order type, and time can matter. Review the applicable venue’s rules instead of assuming a fixed priority across markets.
Setting Up LOC Orders
Know the Deadline Before Choosing the Limit
The following describes ordinary U.S. equity closing-auction timing in Eastern Time on a normal full trading day. Your broker may impose earlier deadlines. Early-close sessions, different venues, and special auction conditions require their own checks.
| Venue | Entry | Ordinary modification/cancellation |
|---|---|---|
| NYSE | Before the 3:50 p.m. cutoff; later entry is restricted to offsetting a significant imbalance | Before 3:50 p.m. |
| Nasdaq | Before 3:58 p.m.; entry after 3:55 p.m. has additional conditions | Before 3:50 p.m. |
The NYSE fact sheet describes its entry and cancellation restrictions. Imbalance publication starting at 3:50 does not mean you can freely revise an existing LOC afterward.
Nasdaq Rule 4702(b)(12) permits late LOC entry before 3:58 when a qualifying reference price exists. An overly aggressive late limit can be repriced or rejected according to participant instructions. Post-3:50 corrections are restricted to legitimate errors requested through the participant; they are not routine strategy changes. Confirm broker handling rather than assuming your entered limit will remain unchanged.
Example: IBKR Desktop
Interactive Brokers’ Desktop lesson demonstrates the order-entry workflow:
- Select a symbol from the portfolio, watchlist, or search.
- Choose Buy or Sell and enter the share quantity.
- Open the order-type menu and select Limit on Close.
- Enter the limit price and review the available duration settings.
- Preview the order, check the details and margin impact, then transmit only when the ticket matches the plan.
Verify that the order was accepted with the intended side, quantity, type, and price. Saving a ticket for later is not transmitting it. Use the exchange references above for the ordinary cutoff rules and confirm any earlier broker deadline; a generic “3:45 p.m.” assumption is insufficient.
Check What Happens to the Remainder
Do not assume every unfilled LOC disappears immediately after the auction. Nasdaq’s current rulebook allows certain eligible LOC remainders to participate in its Extended Trading Close, while other instructions have different treatment. Ask your broker which handling applies to your ticket and inspect the final status before placing a replacement.
Using Technical Analysis to Define an LOC Plan
Indicators can help describe a setup and a maximum acceptable entry price. They cannot ensure a closing-auction fill or establish that a particular limit will be profitable. Separate the signal rule, price boundary, submission time, position size, and exit rule.
Moving Averages, RSI, and MACD
A 40-period simple moving average can provide a basic research starting point: for example, require price to be above the average at a specified pre-close decision time, then derive the buy limit from an explicit rule. The “Sweet Chariot” label used for moving-average approaches is not evidence that the setup works for LOC execution. Specify the timeframe and crossover definition rather than relying on the name.
The more complex WMA/RSI/MACD approach also needs a complete specification. The settings previously associated with it are useful as an example of what must be clarified:
| Component | Illustrative settings | Missing decision to resolve |
|---|---|---|
| Weighted moving averages | 5, 15, 30, 60, and 90 periods | Which crossover triggers entry, and what role do the other averages play? |
| RSI | 5 periods; threshold 40 | Must RSI be below 40, cross below it, or recover above it? |
| MACD | Fast EMA 5; slow EMA 13 | Specify the signal-line period and the exact histogram condition |
A raw MACD histogram threshold such as 0.005 is price-scale dependent. It is not a universal threshold for equities, forex, or crypto. “Reverses near” that value is also too vague for a reproducible test. Decide whether conditions must occur on the same bar or within a defined window, and evaluate whether added filters improve out-of-sample results after costs.
Plan and Test in LuxAlgo
Open the intended symbol in LuxAlgo and use native drawing tools to mark the decision time, limit level, and invalidation condition. Keep the timeframe and session consistent. The chart’s developing final bar does not yet contain the full information that will be visible after the close.
Ask Quant to help turn the specification into a strategy, then review its code and assumptions before running it. Quant can help refine rules; it does not automatically supply a complete historical auction model.
Example research prompt: “Build an end-of-day long strategy with an editable decision time before the order cutoff. Define a 40-period SMA filter and an explicit buy-limit rule. Use only information available at the decision time. Explain simulated fills, missed entries, costs, and any missing auction data. Make the exit and risk rules separate.”
Inspect the trade log, drawdown, fees, slippage assumptions, and unfilled-entry behavior across multiple periods. If the dataset cannot establish the auction price or allocation, label the result as a proxy test. A daily bar that crossed the limit intraday does not prove a closing-auction fill was possible.
When exporting Pine Script® to TradingView, validate the strategy there too. TradingView’s documentation distinguishes simulated bar-close execution from the timing of real orders and alerts. A favorable same-close backtest cannot bypass a pre-close submission deadline. LuxAlgo’s native charts and its TradingView toolkits remain distinct analysis environments.
LOC Orders in High Volatility
Widening a buy limit increases the maximum price you are willing to pay; lowering a sell limit reduces the minimum proceeds you will accept. Either change can improve price eligibility while worsening the price boundary. Do not widen a limit solely to chase a fill after the original setup has changed.
For example, raising a 200-share buy limit from $50 to $50.50 increases the permitted gross purchase amount by $100. It does not define the maximum loss on the resulting position. If the higher entry also increases the distance to a planned stop, recalculate position size and total exposure.
Check quotes, session settings, and order status before the cutoff. Delayed data makes decision-making harder, but does not turn an accepted limit into a market order. Your chosen price boundary should still reflect what you are prepared to accept.
Risk Management and Order Combinations
A protective stop is an exit instruction for an existing position, not a guarantee against gaps. If you intend to attach an exit to an LOC entry, confirm your broker supports the combination and understand when the exit activates, how partial fills affect its quantity, and which sessions it covers.
Two unrelated sell orders can both execute. A standard limit, trailing stop, or MOC order does not automatically cancel an LOC order merely because it concerns the same symbol. Choose an explicitly supported linked-order workflow or reconcile changes carefully before the deadline.
Avoiding LOC Order Mistakes
- Do not wait for the final close to decide: use information available before the submission cutoff.
- Do not equate an intraday touch with auction eligibility: the closing price and allocation determine the relevant outcome.
- Do not assume a sell LOC removes overnight risk: an unfilled exit leaves exposure in place.
- Do not replace an order without checking status: confirm cancellation, remaining quantity, and any extended-close handling.
- Do not treat more order types as diversification: overlapping instructions can increase operational risk.
After execution, compare the intended limit, official closing price, actual fill, costs, and remaining position. Use the LuxAlgo Journal for supported trade records, with notes for timing and order details that an import does not capture.
LOC Trading Checklist
Use LOC when closing-auction participation and a defined price boundary both fit your objective. Check the venue and broker rules, submit a complete instruction before the cutoff, and plan for nonexecution. The limit controls the acceptable fill price; disciplined sizing, exit planning, and reconciliation control the rest of the workflow.
Read next