PART VI · Chapter 47 · 277 / 660

Lesson 277. Turning breakout entries into order rules

Chapter 47. Turning Entry Setups into Order & Position-Sizing Plans

For several weeks, the shares of a hypothetical company could not get above $98.50. On Tuesday they closed at $99.40. After the close, the investor checks this closing price and wants to write "bought at $99.40" in the trading journal. But that price has already passed. The only order the investor can place now is an order for Wednesday's session.

Lesson 243 separated signals from orders, and Lesson 276 set the quantity from the entry price and the stop-loss level. This lesson fills the gap between them. It decides which order to place for a breakout signal confirmed at the close, up to what price and for how long. It also decides how many times to resubmit if the order is not filled or only partly filled, and puts all of this on a single breakout order card.

1. Separate the time the signal is confirmed from the time you can order

The signal rule is the same as in Lesson 243. If the daily close is above the last confirmed high, the investor considers buying on the next trading day. The last confirmed high is $98.50. On Tuesday the open was $97.60, the high $99.95 and the close $99.40. The close was $0.90 above the confirmed high, so a signal appeared.

The close is set when the regular session ends at 4:00 p.m. US Eastern Time (ET). By the time the signal is checked, the regular session is already closed, so this rule gives no way to buy at $99.40. You can buy in extended-hours trading after the close. But extended-hours trading has fewer trades, wider bid-ask spreads, and prices that can differ from regular-session prices. Many brokers accept only limit orders outside the regular session. This card uses only regular-session orders.

Moment US Eastern Time Task
Signal day close Tue 4:00 p.m. Judge the signal on the close
Order preparation Wed before 9:30 a.m. Calculate quantity, enter the order
Order day open Wed 9:30 a.m. Check whether the open is below the cap
Order day close Wed 4:00 p.m. Check filled quantity, decide on a retry

Add a column with your own local time for each row. The gap between your time and ET shifts by one hour when US daylight saving time starts or ends. The record also keeps two times apart: the Tuesday close that confirmed the signal and the Wednesday open, the first moment an order can fill. The price change in between is not bad luck. It is the cost of using this rule.

2. A buy stop-limit order sets the price condition and the cap together

Wednesday's order has to do two things at once. It should buy only if the breakout continues, and it should never pay more than a price set in advance. If you use the stop-limit order from Lesson 023 on the buy side, one order can hold both conditions. Check which order types your broker offers.

A buy stop price is placed above the current price. When the price reaches the stop price, the order becomes a limit order and fills only at the limit price or better. If the price moves away from the limit, the order may not fill. Some brokers decide whether the stop price was reached from the last trade price, and others from quotes, so write your broker's method on the card.

Both prices come from formulas set before looking at the chart. For example, the stop price is the signal day's high plus $0.05: 99.95 + 0.05 = $100.00. The order then triggers only if a trade prints above the signal day's highest price. The limit price is the maximum buy price (the cap). If the 14-trading-day average true range (ATR, the average size of a day's price range) is $4.00, the cap is the stop price plus one quarter of the ATR: 100.00 + 4.00 × 0.25 = $101.00.

Hypothetical share price path. After a confirmed high of $98.50 and a confirmed low of $94.20, Tuesday opens at $97.60 and closes at $99.40, above the confirmed high, which confirms the signal. Wednesday opens at $99.70, and after the price reaches the $100 stop it is assumed to fill at $100.35, below the $101 cap. The stop-loss level is $94. When the signal was checked, the session had already closed, so buying at Tuesday's $99.40 close was not possible.

With the same signal, a different order gives a different result depending on Wednesday's open. The fill prices in the table are assumptions for the explanation.

Wednesday open Buy stop $100 Stop-limit $100 / $101 Limit $101
$99.70, then above $100 during the day Market fill near $100 Can fill between $100 and $101 Fills at once near the open
$100.60 Fills near the open Fills near the open, at $101 or less Fills near the open
$102.40 Fills near $102.40 Waits as a $101 limit order Does not fill, waits

A buy stop becomes a market order when it triggers, so the fill price can differ a lot from the stop price. It fills even when the open is above the cap. The $101 limit order keeps the cap, but it also fills at once when the open is $99.70, before the price has passed the signal day's high. That means buying without seeing whether the breakout continues. Only the stop-limit order keeps both conditions, and the cost is that it may not fill.

3. Calculate the quantity from the cap, not from the stop price

The stop-limit order can fill at up to $101. So the quantity is calculated as if the whole order fills at $101. The stop-loss level is $94.00, just below the last confirmed low of $94.20, and the account and cost conditions are the same as in Lesson 276. The calculation assumes no earnings release during the planned holding period, so the event limit is left out here.

101 − 94 + 0.20 = $7.20, floor(500 ÷ 7.20) = 69 shares

The weight, cash and trading-value limits are the 99 shares, 148 shares and 118 shares calculated in Lesson 276, Try it yourself question 1. The final quantity is min(69, 99, 148, 118) = 69 shares. If 69 shares fill at the $100 stop price, the planned loss is 69 × 6.20 = $427.80. If they fill at the $101 cap, it is 69 × 7.20 = $496.80. Either way it is within the budget.

It is different if you place the 80 shares calculated from the $100 stop price. If all of them fill at $101, the loss is 80 × 7.20 = $576, which exceeds the budget by $76. The same happens if the order type does not keep the cap. If 69 shares are placed as a buy stop and fill at $102.40, the loss per share is 102.40 − 94 + 0.20 = $8.60, and the total is 69 × 8.60 = $593.40.

Planned loss of a hypothetical breakout order by fill price and quantity. 69 shares filled at the $100 stop lose $427.80, and 69 shares filled at the $101 cap lose $496.80, both within the $500 budget. 80 shares, sized at the stop price, filled at $101 lose $576, and 69 shares placed as a buy stop and filled at $102.40 lose $593.40, both over budget.

Calculating the quantity from the cap and using an order that keeps the cap belong together. If you do only one of them, the budget is not protected.

4. If the open is above the cap, cancel that day's order

If Wednesday opens at $102.40, the stop condition is met at the open. The order becomes a $101 limit buy order and waits. If the price falls back to $101 during the day, it fills then.

That fill does not buy the breakout. It buys a gap that is closing from above. The price is within the cap, so the planned loss is within the budget, but it is not the situation the card was made for. So the investor sets a rule in advance, for example: "If the open is above the cap, cancel the order right after the open." For days when you cannot watch the screen at the 9:30 a.m. ET open, decide in writing whether you will not place the order at all or will accept such a fill.

There is also a gap in the other direction. If Wednesday opens at $98.20, below the confirmed high, the breakout was reversed overnight. The $100 stop triggers only if the price comes back up, so the order stays in place. But if that day closes below $98.50, the signal is treated as gone and the order is not placed again.

If you want to buy at a price above the cap, that is not this card's job. It is a separate plan, written from the start with a new stop-loss level and quantity at the new price, as in Lesson 276. When to look again at a missed breakout is decided in Lesson 281.

5. Decide in advance on unfilled and partial fills and the number of retries

The order is a day order. A day order that does not fill is generally canceled at the end of the regular session and does not carry over to extended hours or to the next day. A good-'til-canceled (GTC) order, which stays until you cancel it, can fill weeks later when the signal is stale.

Partial fills are also planned in advance. Suppose 40 of the 69 shares fill on Wednesday at an average of $100.80, and then the price rises above $101. The remaining 29 shares are canceled at the close. The R0 of the 40 shares filled by Wednesday is (100.80 − 94) × 40 = $272.

The retry policy decides whether to place the remaining quantity again. For example:

  • One retry only, no later than Thursday, the second trading day after the signal.
  • Retry only if Wednesday's close is above $98.50 and at or below $101.
  • Place only the remaining quantity, with the same stop, cap and stop-loss level.
  • After Thursday's close, drop any remaining quantity and close the card.

If 29 shares fill on Thursday at $100.60, all 69 shares filled within the card's period count as the initial quantity. R0 is calculated for each fill and added up.

(100.80 − 94) × 40 + (100.60 − 94) × 29 = 272 + 191.40 = $463.40

This extends the R0 definition of Lesson 276 from one order to several fills within the card's period, and R0 is fixed at Thursday's close, when the card closes. Purchases in steps after the card closes, made on a new confirmation, are not included in R0; Lesson 280 covers them.

The planned loss with commissions is 40 × 7.00 + 29 × 6.80 = $477.20, within the budget, because the retry used the same cap. Before placing an order again, first confirm the remaining quantity and that the cancellation is complete, as shown in Lesson 274. If you enter the same order again without checking, you can buy more than planned.

6. Record the fill price and keep the order card

Now suppose all 69 shares fill on Wednesday at $100.35. If you record Tuesday's close, R0 is (99.40 − 94) × 69 = $372.60. At the actual fill price it is (100.35 − 94) × 69 = $438.15.

If you later sell everything at $110, the difference grows. The net profit after round-trip commissions is (110 − 99.40 − 0.20) × 69 = $717.60 in the record, about 1.93R. In reality it is (110 − 100.35 − 0.20) × 69 = $652.05, about 1.49R. The same trade looks 0.44R better only in the record. When such records pile up, rule tests in Lesson 305 and Lesson 306 show better results than reality.

Right after the fill, the card records:

Signal: Tue close 99.40 > confirmed high 98.50. Order: Wed regular session, buy stop-limit, stop 100.00 (signal-day high + 0.05), limit 101.00 (stop + ATR 4.00 × 0.25), day order, trigger method per broker. Quantity 69 shares (based on cap), stop-loss 94.00. Cancel right after the open if the open is above 101. One retry (through Thu, remaining quantity only). Void if the close is below 98.50. Filled 100.35 × 69 shares, R0 438.15.

The record for this lesson is this breakout order card. Before ordering, write the signal condition and the time it is confirmed, plus the order type and the formulas for its two prices. Then add the quantity based on the cap, the time in force, the gap rule, and the retry and cancel conditions. After the fill, add the actual fill price, filled quantity and R0 below them.

Try it yourself

  1. If the signal day's high had been $100.45 instead of $99.95, what are the stop price, the cap and the quantity under the same rule? ATR is $4.00, and the other conditions are as in section 3.
  2. All 69 shares filled at Wednesday's open of $100.60. What are R0 and the planned loss with commissions?
  3. Wednesday opened at $102.40, you could not cancel right after the open, and 69 shares filled during the day at $101.00. That day's close was $99.20. How do you treat and record this trade?
  4. Nothing filled on Wednesday, and the close was $98.10. Do you place the order again on Thursday?
  5. Choose one stock you follow and write a breakout order card for it.

Answers

First, the stop price is 100.45 + 0.05 = $100.50, and the cap is 100.50 + 4.00 × 0.25 = $101.50. The planned loss per share is 101.50 − 94 + 0.20 = $7.70, and floor(500 ÷ 7.70) = 64 shares. The weight limit gives floor(10,000 ÷ 101.50) = 98 shares, cash floor(15,000 ÷ 101.60) = 147 shares, and trading value floor(12,000 ÷ 101.50) = 118 shares, so the final quantity is min(64, 98, 147, 118) = 64 shares. When the cap rose by $0.50, the quantity fell by 5 shares.

Second, R0 is (100.60 − 94) × 69 = $455.40. The planned loss is 69 × (100.60 − 94 + 0.20) = $469.20. Because the quantity was set from the cap, a fill below the cap leaves room in the budget.

Third, the fill price is within the cap, so the planned loss of $496.80 is within the budget. Risk gives no reason to sell right away, so the $94 stop-loss level and the void condition stay as they are. The $99.20 close is also above the $98.50 confirmed high, so the signal is still alive. But the record notes separately "gap cancel rule not executed", and when the rule is tested, this trade is not mixed with trades made by the rule. Also add to the card what to do on days when you cannot check at the open.

Fourth, no. The $98.10 close is below the $98.50 confirmed high, so the signal is void. Close the card here, and wait for a new signal before buying again.

Fifth, the card needs at least these lines: the signal condition and the time it is judged, the order type, and the formulas for the stop price and the cap. It also needs the quantity based on the cap, the stop-loss level, the time in force, what to do when the open is above the cap or the signal is void, and the number of retries. Calculate ATR and the confirmed highs and lows with rules set in advance, not by picking them on the chart. Any blank left on the card is a decision you will make on the spot in front of the order screen.

Related lessons