Darvas Box

Darvas Box
Indicator

Support and resistanceOn the price chartFree on ChartLabs

Darvas Box draws the highest high and the lowest low of a 5-bar window on the price chart. The top line starts at record 5. Record 0 is empty on both lines.

The name is Nicolas Darvas, 1960. The lines are a rolling high and low, the channel form in Perry J. Kaufman, Trading Systems and Methods (2013). Reviewed by the ChartLabs team, updated Nov 2026.

Example market1hIndicatorsAtlas AIDarvas Boxchartlabs.co/charts
Atlas reads it

Top is above Bottom (66,894.2).

Top 66,894.2 · Bottom 65,477.9

Atlas reads it

Top is above Bottom (66,894.2).

Top 66,894.2 · Bottom 65,477.9

Illustration on simulated data.

Darvas BoxWhat is the Darvas Box indicator?

Periods is 5, from 1 to 500. Both lines are white, 1 px, on the price chart. This study draws two lines. It does not draw boxes, and it does not follow Darvas published stall rules. It is a rolling channel.

Highs 10, 11, 14, 12, 13, 9, 16 and lows 8, 9, 10, 7, 11, 6, 12. Record 0 is empty on both lines. The bottom starts at record 1, at 9.0000, and is 6.0000 at record 5. The top stays empty until record 5, where it is 14.0000, then 16.0000 at record 6.

The window for the top has to sit inside records 1 onward, so the first top is at record N. The bottom may use a shorter window from record 1. A non-finite high or low is left out of the window. A window with no finite price is empty.

Two lines, not a box

The name says box. The chart draws a top and a bottom and nothing between them.

Record 0

Neither line uses record 0. Both are empty there, whatever the period is.

Darvas Box signalsFour patterns to know.

1Bullish lean

A new top

Record 6 lifts the top from 14.0000 to 16.0000. The high of the window rose.

2Bearish lean

A new bottom

Record 5 drops the bottom to 6.0000. The low of the window fell.

3Inconclusive

The top still warming up

Records 1 through 4 have a bottom and no top. An empty top is the wait for N bars, not a missing high.

4Inconclusive

Top and bottom together

From record 5 both lines exist. The gap between 14.0000 and 6.0000 is the window, not a target.

Darvas Box formulaHow it is calculated.

Top=max(high),Bottom=min(low)
STEP 1

Skip record 0

Both lines are empty on the first bar.

STEP 2

Take the lowest low

From record 1, the lowest low of a window that can be shorter than N. Record 1 is 9.0000. Record 5 is 6.0000.

STEP 3

Take the highest high once N bars exist

The top needs a full window that starts at record 1 or later. At period 5 that is record 5, at 14.0000, then 16.0000.

Darvas Box settingsEvery setting, explained.

SettingDefaultRangeWhat it changes
Periods51 to 500Bars in the rolling window. The top starts at this record.
TopwhiteFixedHighest high, 1 px, on price.
BottomwhiteFixedLowest low, 1 px, on price.
Setting
Periods
Default
5
Range
1 to 500
What it changes
Bars in the rolling window. The top starts at this record.
Setting
Top
Default
white
Range
Fixed
What it changes
Highest high, 1 px, on price.
Setting
Bottom
Default
white
Range
Fixed
What it changes
Lowest low, 1 px, on price.
55 bars in the rolling window
70,20866,82563,44360,06164,803.7

Drag to see how the setting changes the lines and how many signals you get. Illustration on simulated data.

Darvas Box strategiesUse it in 3 setups.

Wait for the top

Untilrecord 5there is no top

The bottom can print earlier. Do not read a one-line stretch as a broken channel.

A full window

Atrecord 5top14.0000and bottom6.0000

Both lines are defined. The next high, 16, moves only the top.

Set it next to a channel

Periods5

Donchian Channel and Highest High / Lowest Low are the same family of rolling extremes, with their own lengths and colours.

Test a rule in the Strategy TesterFree with 1 year of history. Past results do not guarantee future results.

Darvas Box mistakesCommon mistakes.

Looking for drawn boxes

The study has no box objects. If you want a shaded band, use a channel that fills between its lines.

Treating record 0 as zero

Both lines are empty, not 0. A later non-finite price is skipped, and a window with nothing finite is empty too.

Using Darvas stall rules on these lines

The published Darvas method waits for a stock to stall and then marks a box. These two lines are only the rolling high and the rolling low.

Darvas Box combinationsPair it with these.

Darvas Box FAQQuestions traders ask.

What is the Darvas Box period?

5, from 1 to 500. There is no source input. The top reads highs and the bottom reads lows.

What is the worked example?

Highs 10, 11, 14, 12, 13, 9, 16 and lows 8, 9, 10, 7, 11, 6, 12. Record 0 is empty. Bottom record 1 is 9.0000 and record 5 is 6.0000. Top record 5 is 14.0000 and record 6 is 16.0000.

Why does the top start later than the bottom?

The top waits until a full window lies inside records 1 onward. The bottom is allowed a partial window from record 1.

Does it draw a box?

No. Two white lines, 1 px, on the price chart.

Is this the 1960 Darvas method?

It uses the name. The values are a rolling channel, as in Kaufman, Trading Systems and Methods (2013), not the stall rules from the book.

What happens to a bad price?

A non-finite high or low is left out of the max and the min. If the window then has no finite price, that line is empty.

Does it repaint?

No. A closed bar keeps its high and low. The live bar moves until it closes.

Where does it sit?

On the price chart, in the symbol price format.

Related indicatorsMore support and resistance tools.

All support and resistance indicators

Try Darvas Box on a live chart.
Free. No download.

Works in your browser and on iPhone too.

Example market1h
Darvas Box