PART VII · Chapter 54 · 317 / 660

Lesson 317. Darvas's box theory: buy above the box, raise the stop as the boxes climb

Chapter 54. Classic Trend Following: Livermore, Turtles, Darvas & Donchian

Even a rising stock moves up and down from day to day. Nicolas Darvas treated the range a price moves within for a while as a box, and watched whether that box moved to a higher level. The method is to buy when the price goes above the top of the box and sell when it clearly drops out of the bottom.

Darvas placed buy orders in advance in case the breakout continued, and at the same time he set the point at which he would sell if things did not go as expected. Breakouts above a high that fail are covered in Lesson 353. You need to write down the direction of the boxes together with their prices so you can compare them later.

The source is pages 47-59 and page 64 of the 1960 edition of Darvas's book How I Made $2,000,000 in the Stock Market. The rules table below sums up that chapter. Bar counts such as three days or 10 trading days are not in that chapter, and this lesson says so each time they come up. The prices, accounts and companies on the card and in the exercises are all hypothetical.

1. The card at a glance

Card explaining Nicolas Darvas's box theory. The example price on the left leaves the first and second boxes upward in turn; blue lines are box tops and gray lines bottoms, and the rise stops as the price breaks the red bottom of the higher third box. The chart marks the place to buy on the break of the top, the place to raise the stop when a new box is set, and the place to get out on the break of the bottom. The right side gives the steps, and the stop item says the first stop goes at the top of the box just cleared.

The example price on the left breaks up through the first box and then the second box in turn. The blue lines are the tops of the boxes and the gray lines are the bottoms. The rise ends when the price breaks the red bottom of the higher third box. The three marks on the chart are, in order, where you buy, where you raise the stop and where you sell.

2. The trading rules: condition, entry, stop, exit

Item Rule What Darvas wrote
Finding the box Watch the top and bottom of the range the price keeps moving within. Pages 47-53. The explanation in chapter 4 is a way of reading a price range.
Condition Look at the existing box and whether a new box is forming above it. Pages 53-54. In the chapter checked, Darvas does not set the number of bars that defines the edges of a box.
Entry Place a buy order a little above the top of the existing box. Pages 54 and 64. The Chrysler example on page 64 is a $67 buy order on a $60-65 box.
Stop Put the first stop at the top of the box the price just broke out of. After that, sell if the price falls below the bottom of the current box. Page 64: Chrysler's first stop of $65 is the same as the top of the existing box. Page 56 gives an example of a $25 buy order placed together with a sell order below $24; page 53 gives the principle of selling when the price falls below the bottom of the box.
Exit and adding When a higher box forms, raise the stop. When the pattern of boxes stacking upward reverses, sell. Pages 58-59. There are examples of buying more on the way up, but Darvas did not set how large a share of the account the position should take.

Note three things. First, the boxes and the orders are set before the price moves. In case Chrysler broke out of its $60-65 box, Darvas placed a buy order at $67 and put his first stop at $65, the top of the existing box. If the lines are not set, you cannot set the order prices either. Drawing lines while looking at the whole past chart and drawing them using only the bars up to that day give different results. So when you practice, cover the right side of the chart before you draw.

Second, the first stop and the later stops sit in different places. The first stop is at the top of the box the price just broke out of. So if the breakout fails and the price comes back into the old box, you sell right away. Once the price has formed a new box higher up, you sell when it falls below that box's bottom, following the principle on page 53. While the price moves up and down inside a box, you neither buy more nor sell.

Third, the day to raise the stop is not the day the price makes a new high but the day the bottom of a higher box is set. If you rush to raise the stop before the new box has settled, the swings inside the old box will hit it first.

3. A worked example account

In this chapter of his book, Darvas does not say in numbers how many days you have to watch before the top and bottom are set. The widely known standard is three days, so this example uses it too. If a high is not broken for three days, write that high down as the top; if a later low is not broken for three days, write that low down as the bottom. Several secondary sources present these three days as Darvas's standard, and one of them wrote that the exact rule appears in his later book and in a question-and-answer section added to a later edition. Chapter 4 of the 1960 edition does not have this number, so three days is used only as a widely known standard, not as Darvas's rule.

Here is a hypothetical example. A stock has formed a $46-50 box. As in the Chrysler example, you place a buy order a little above the top, at $51.50, together with a first stop order at the top, $50.00. Once the buy fills, the risk per share is 51.50 − 50.00 = $1.50. If the investor has decided that $225 is the most they can lose on this trade, the number of shares is 225 ÷ 1.50 = 150 shares, and the purchase costs 51.50 × 150 = $7,725. Because the first stop is at the top of the box, not the bottom, the initial risk is set by the gap between the buy order price and the top, however wide the box is.

After the buy, the price rises and a new $53-57 box is set. On that day, raise the stop to just below the new bottom, $52.80. Even if the position is sold there, a profit of (52.80 − 51.50) × 150 = $195 remains. When a $58-62 box is set next, the stop moves up to $57.80, and even if it is hit, (57.80 − 51.50) × 150 = $945 remains. As the boxes stack up, the stop follows them up one box at a time, and the trade ends on the day the price breaks the bottom of the last box.

Commissions and the gap between the order price and the actual fill price are left out of the calculation.

4. When it works and when it doesn't

It works in a trend where boxes stack up like stairs. As long as the price keeps resting in a box, going over the top and resting again higher up, the stop follows it up one box at a time.

It doesn't work in two cases. One is a stretch where the price swings so widely that the top and bottom are hard to set. The first stop is at the top, so it is close, but once a new box is set, the width of that box becomes the distance to the stop. The wider the box, the more profit you give back, so skip stocks whose swings you cannot stomach. The other case is when the price falls back into the box right after going over the top. Because the first stop is at the top the price just broke through, you sell and lose the gap between the buy order price and the top. The 2B in Lesson 353 trades exactly this kind of failed breakout from the opposite side.

O'Neil in Lesson 321 also buys when the price breaks above a high, but he sets separate rules for the depth of the base, the position of the handle and a buying range of up to 5% above the pivot. This chapter of Darvas's book explains the top and bottom of the box and the order in which to raise the stop. O'Neil's 5% rule is not borrowed for this method.

5. Real charts

Daily chart of Netflix (NFLX), October 2017 to early August 2018, adjusted prices. Each box has a blue top and gray bottom line, numbered 1 to 5. Box 1 runs two and a half months between $20.44 and $17.84, with a buy arrow under the January 8, 2018 bar. After the buy, a red first-stop line at the box 1 top runs to late February. Boxes 2 to 5 rise like stairs (bottoms $23.61, $27.12, $29.26, $37.88) and the red stop line steps up. The July 17 bar opens far below the box 5 bottom with a sell mark. Text at the top: buy order 21.07 (top × 67 ÷ 65), first stop 20.44, sold 34.70 on July 17, +64.69%.

NFLX 2018: bought above the top, sold when the 5th box's bottom broke (Chart: TradingView)

This is the daily chart of Netflix (NFLX), with prices adjusted for stock splits. On this chart, a high that was not broken for 10 trading days is drawn as the top of the box, and the lowest price after it as the bottom. The buy order is placed at 67 ÷ 65 times the top, following the ratio in the Chrysler example on page 64. Neither of these is a number Darvas set; they are standards chosen to draw the chart.

The first box has a top of $20.44 and a bottom of $17.84, and the buy order is 20.44 × 67 ÷ 65 ≈ $21.07. On January 8, 2018, the price rose from its open of $21.00 and the buy filled at $21.07. That day's low of $20.84 was above the top, so the stop was not hit the same day. The first stop is the top of the box the price just broke out of, $20.44, and the initial risk is 21.07 − 20.44 = $0.63.

After that, four boxes formed, each higher than the last, with bottoms rising to $23.61, $27.12, $29.26 and $37.88. Each time a new box is set, the stop is raised to just below its bottom. On July 17, the price opened at $34.70, below the bottom of the last box, $37.88, so the position was sold at the open. The result is (34.70 − 21.07) ÷ 21.07 × 100 ≈ 64.7%, and the trade lasted 131 trading days.

Daily chart of Adobe (ADBE) from mid-June to the end of October 2023. A blue top line runs from the July 31 high of $552.94 to September 1, and a gray bottom line sits at the August 18 low of $503.90. A buy arrow sits under the September 1 bar, a short red first-stop line at the top runs to September 7, and a sell mark sits above the September 7 bar. The price then fell to about $500 in late September, below the box bottom, and rose again in October. Text at the top: buy order 569.95 (top × 67 ÷ 65), first stop 552.94, sold on September 7, -2.98%.

ADBE Sep 2023: bought above the top, sold at the first stop in 3 days (Chart: TradingView)

This is Adobe (ADBE) in the summer of 2023. The top of the box is the July 31 high of $552.94, and the bottom is the August 18 low of $503.90. The buy order is 552.94 × 67 ÷ 65 ≈ $569.95, and the September 1 high of $569.98 reached it, so the order filled. That day's low of $558.52 was above the top. The first stop is the top of the box, $552.94. The price did not rise any further, and 3 trading days later, on September 7, it fell from its open of $554.00 to a low of $551.08, so the position was sold at $552.94. The result is (552.94 − 569.95) ÷ 569.95 × 100 ≈ −3.0%. After that, the price fell below the bottom of the box, $503.90, to a low of $502.01 on September 26.

On both charts, the stock was bought on the day the buy order above the top of the box filled. In Netflix, new boxes kept stacking up after that, while in Adobe the price fell back below the top it had broken through. On the day of the breakout, there is no way to know which it will be, so the initial loss is set in advance by the gap between the buy order price and the top of the box. In Adobe that gap was 569.95 − 552.94 = $17.01, while the distance to the bottom of the box was 569.95 − 503.90 = $66.05.

6. Before the open, and what to check when you buy

Before the market opens, write down three things: the top and bottom of the current box, the prices for the buy order and the stop order, and the number of shares worked out from the gap between those two prices. If the price is still inside the box, just place the orders and wait.

On the day the buy fills, first check that the first stop order at the top of the box the price broke out of went in along with it. After that, check only one thing each day: have the top and bottom of a higher box been set? If they have, move the stop to just below the new bottom that day; if not, leave it where it is. The key to this method is telling apart a day the price rose inside the same box from a day it moved up to a higher box.

For your trading log, add a single row recording each item: Write down the date, the top and bottom of the box, the buy price and the first stop price, the dates and prices at which you moved the stop, and the result. On the same row, also note the standard you used to set the box (three days, in this lesson's example).

Try it yourself

  1. If you buy 75 shares at $31 with the stop at $29, what is the planned loss if the stop is hit?
  2. The price rose briefly inside the box but did not get above the top. Do you treat it as having moved up into a new box and buy?
  3. The next box has settled. Is leaving the old stop where it is the way Darvas described managing the trade?

Answers

First, (31 − 29) × 75 = $150. This assumes the order fills exactly at the set price.

Second, no. First confirm a move above the existing top.

Third, no. Darvas described raising the stop once a higher box has formed.