NBars Down

NBars Down
Indicator

Support and resistanceSeparate panelFree on ChartLabs

NBars Down prints 1 when each of the last 3 bars made a lower high, a lower low and a lower close, and closed under its open. Otherwise it prints 0.

A run of lower highs and lower lows, the downtrend idea in John J. Murphy, Technical Analysis of the Financial Markets (1999), chapter 2. This flag also asks for a lower close and a close under the open. Reviewed by the ChartLabs team, updated Nov 2026.

Example market1hIndicatorsAtlas AINBars Downchartlabs.co/charts
Atlas reads it

NBarsDown is 0.000.

NBarsDown 0.000

Atlas reads it

NBarsDown is 0.000.

NBarsDown 0.000

Illustration on simulated data.

NBars DownWhat is the NBars Down indicator?

Bar count is 3, from 1 to 500. The column is #FF0000, in its own panel, fixed at 3 decimals, base 0.

Four bars: open 14 high 15 low 13 close 13.5, then open 13.6 high 14 low 12 close 12.5, then open 12.6 high 13 low 11 close 11.5, then open 11.6 high 12 low 10 close 10.5. The flags are 0.0000, 0.0000, 0.0000 and 1.0000. Each bar after the first has a lower high, a lower low, a lower close, and a close under the open. The streak hits 3 on the fourth bar.

The up flag is the mirror, in green, and it needs rising bars. A failed bar here resets the streak. A non-numeric open, high, low or close is empty and also resets it. The column never prints the streak length.

Record 0

There is no previous bar, so the first flag of a chart is 0 unless the bar is empty.

Not a window tally

It does not count how many of the last 14 bars had a lower low. It counts a streak, then collapses it to 0 or 1.

NBars Down signalsFour patterns to know.

1Bearish lean

Run complete

The fourth bar prints 1.0000. Three falling bars each passed all four tests.

2Inconclusive

Still building

The second and third bars print 0.0000 while the streak climbs toward 3.

3Bullish lean

Run broken

Any bar that fails a test prints 0 and clears the streak. A higher low is enough to do that.

4Inconclusive

Still just 1

A gentle staircase and a steep one both print 1.0000 once the streak is long enough.

NBars Down formulaHow it is calculated.

flag=1 when the falling run reaches the bar count
STEP 1

Score each bar against the one before

Lower high, lower low, lower close, close under the open.

STEP 2

Count the streak

The example reaches 3 on the fourth bar.

STEP 3

Print the flag

1.0000 there. The earlier bars stay 0.0000.

NBars Down settingsEvery setting, explained.

SettingDefaultRangeWhat it changes
Bar count31 to 500How many falling bars in a row are required.
Column#FF0000FixedA red column of 1 when the run qualifies, else 0.
Record 00FixedNo previous bar, so the run starts at 0.
Setting
Bar count
Default
3
Range
1 to 500
What it changes
How many falling bars in a row are required.
Setting
Column
Default
#FF0000
Range
Fixed
What it changes
A red column of 1 when the run qualifies, else 0.
Setting
Record 0
Default
0
Range
Fixed
What it changes
No previous bar, so the run starts at 0.
34 bars that must keep falling
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.

NBars Down strategiesUse it in 3 setups.

Three falling bars

Thefourth bar is1.0000

Traders often check the larger trend around that column. The flag itself is only the streak. The panel shows 1.000.

Do not jump on the second bar

Itis0.0000

One falling bar is a streak of 1, under the default count.

A single higher low ends it

Ifany of the four tests failsthenthe next 1 needs three new bars

The streak does not pause. It resets.

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

NBars Down mistakesCommon mistakes.

Using the up colours and the up tests

This column is #FF0000 and the tests are lower, with the close under the open. The worked closes are 13.5, 12.5, 11.5 and 10.5.

Reading the column as the number of down bars

The fourth bar is 1.0000, not 3.0000.

Keeping an old periods value of 14

That input did not change the flags. The only length is Bar count, default 3.

NBars Down combinationsPair it with these.

NBars Down FAQQuestions traders ask.

What is the NBars Down setting?

Bar count 3, from 1 to 500. The column is #FF0000.

What is the worked series?

Four falling bars print 0.0000, 0.0000, 0.0000 and 1.0000.

Which four tests?

Lower high, lower low, lower close than the previous bar, and a close under the open.

Why not the same bars as NBars Up?

Those bars rise. This example falls, so the fourth bar can print 1.0000 on the down rule.

What resets the streak?

Any bar that fails a test, and any bar whose open, high, low or close is not a number.

Can the column show the streak?

No. It shows 0 or 1, not the number of falling bars.

Does it repaint?

No. A closed bar stays. The live bar moves until it closes.

Who is the published relative?

John J. Murphy (1999), chapter 2, on lower highs and lower lows. The kernel also requires a lower close and a close under the open.

Related indicatorsMore support and resistance tools.

All support and resistance indicators

Try NBars Down on a live chart.
Free. No download.

Works in your browser and on iPhone too.

Example market1h
NBars Down