Bentrix Docs
HomePricingDashboard

Normalized Average True Range NATR

Volatilityoscillatorone linein every package

Normalized ATR — the ATR divided by the close and expressed as a percentage.

It measures the same typical bar movement, on a scale that IS comparable across instruments and across price levels. This is the form to use when gold and silver are being compared; the plain ATR is not.

01The study, live

Live figureScroll to zoom, drag the bars to pan.
bar —O — H — L — C —main line —first value at —
Show where:

Computed by Bentrix’s own code over the same synthetic bars on every page — an illustration of how the study behaves, not a market.

What this figure shows

The figure is computed over 300 sample bars. NATR has no value on the first 14 — the bars it needs before it can answer — and its first value stands on bar 15. Its line runs between 0.0598 and 0.1213 on these bars, and the last value is 0.0942. Counting the conditions the study declares on these bars: turns up 76 times; turns down 76 times. Press a condition under the figure to see each place marked. As states rather than moments: is rising on 133 bars; is falling on 152 bars.

02Its parts, named

The bars it readseach bar's open, high, low and closeWarm-upno value on the first 14 bars: thestudy needs them before it cananswerThe main linethe study's own value on each bar
Computed by Bentrix’s own code over the sample bars. It is drawn on once, as you reach the figure.

03What you see

The normalised ATR: the ATR as a percentage of the close, comparable between markets.

NATR is one line in a pane of its own, never below zero, in per cent of price. It has the ATR's shape — slow swells in volatile periods, slow decay in quiet ones — on a scale that reads the same on any instrument.

04Where it comes from

J. Welles Wilder introduced the true range and its average in his 1978 book, for commodities that often opened with a gap. A bar's high minus its low misses a gap from the previous close; the true range includes it.

05The formula

TRt=max(Ht−Lt, |Ht−Ct−1|, |Lt−Ct−1|)
ATRt=(N−1)ATRt−1+TRtN
NATRt=100·ATRtCt
Ht, Lt, Ctthis bar's high, low and close
Ct−1the close of the bar before
TRtthe bar's true range
Nthe period — 14 by default

The ATR inside it uses Wilder's smoothing, as TA-Lib computes it. MetaTrader 5's ATR is a simple average of the true range instead, so a NATR worked out from MetaTrader's ATR differs from this line, most at the start.

06A worked example

Take an ATR of 3.56 on a bar that closes at 24 (the sample bars of the ATR page, period 3).

NATR = 3.56 / 24 × 100 = 14.81 %

A typical bar has lately covered about 14.8 % of the price. The same market at ten times the price would have an ATR ten times larger and the same NATR.

07Built in Assay

The same study written in Assay, Bentrix’s script language, and drawn by Bentrix itself as the script’s graph: each block is one step of the formula. On the ladder the steps stand in the script’s order, one a row; on the board each wire carries a value from the block that gives it to the block that reads it, left to right. The script computes exactly what the study computes — Bentrix checks the two against each other, candle by candle.

THE SCRIPT’S GRAPH
//@version=6
indicator("Normalized Average True Range")
length = input.int(14, "Length")
trueRange = math.max(high - low, math.abs(high - close[1]), math.abs(low - close[1]))
atr = ta.rma(trueRange, length)
// The average true range as a percentage of the close.
natr = atr / close * 100
plot(natr, "NATR")

Paste it into the Assay IDE to put it on a chart, or to change it. Looking at the graph is free in every package; editing it as blocks is Plus.

08Readings — what traders look for

Its level is read as how large the bars have been against the price: on daily bars a reading of 1 says a typical day has covered about one per cent.

Rising NATR is read as bars getting larger for the price — often around a breakout or in a fall; falling NATR as a calmer market.

Against another instrument's NATR, or against the same instrument's years ago, which is the comparison the ATR in price units cannot make.

Comparing markets. The percentage form exists so that the volatility of a 20-dollar and a 2000-dollar instrument, or of one instrument in two decades, can be set side by side. It fails for instruments whose price can approach zero or go negative, where a percentage of price means little.

How a rising NATR fails. As with the ATR: larger bars, in any direction or none.

09In different markets and timeframes

NATR is the ATR as a percentage of price: the form for comparing volatility across instruments and across years. It behaves as the ATR does.

A daily reading of 1 % on a large stock index and 0.6 % on a major currency pair can be compared directly, which their ATRs in points cannot. On intraday bars the percentage is small — hundredths of a per cent on M1 — and follows the clock, widening at session opens. Over years it removes the effect of a rising price: an instrument that tripled shows a tripled ATR and, if its behaviour did not change, the same NATR.

10With other studies

Read beside the ATR (the same line in price units) and beside the standard deviation or a volatility estimator for a second opinion.

11What it does not tell you

!

NATR has no direction: a rally and a collapse can have the same reading. It describes how big recent bars were against the price, not how big the next one will be.

12Inputs and defaults

NATR (14, Chart)settings card
1Period14
2TimeframeChart
3Wait for the candle to closeOn
  1. 1
    Period — 14The window of Wilder's smoothing. Longer: a steadier line that reacts late. Shorter: quick and erratic. Wilder's own figure is 14.
  2. 2
    Timeframe — ChartThe chart's own by default; any higher one, read on the last closed candle. A finer one is never offered.
  3. 3
    Wait for the candle to close — OnThe value of a higher timeframe is taken only from a candle that has finished.

The settings in use

  • In use14.

13Limits and common misreadings

A percentage of the close. Where the price is very small, or a series can pass through zero (a spread, a rate), dividing by it makes the reading huge or meaningless.

It inherits the ATR's lag. The reading follows a change of volatility by the smoothing of the ATR inside it.

14Conditions an alert or a strategy can watch

turns up eventturns down eventis rising stateis falling state

Event: the bar it happens on an event happens on one barState: every bar while it holds a state holds on every bar while it lasts

These are the conditions the study itself declares — the same rules the alert editor and the strategy engine read, and the ones the figure's chips show.

15Practise it in the laboratory

Put NATR 14 on two instruments of very different price and compare the readings; then put ATR 14 on both and note that those cannot be compared.

Open the laboratory

17In Bentrix

  • From the menu: a chart's Indicators button › Volatility › NATR, or type NATR in its search.
  • Its settings: the settings card opens when it is added; its legend's name opens it again.

18From an agent or a program

Two tools reach it. study_values computes it over a workbench’s candles up to the clock — no chart needed — and study_attach puts it on a chart, where it is drawn and saved with the chart ({"chart": "<chart uri>", "kind": "natr"}).

The study, as a chart files it

This is a new NATR’s entry — its kind, its calculation, the price it reads and its settings. Change a setting here to read it with other inputs.

{
  "applied": "close",
  "convention": "talib",
  "kind": "natr",
  "settings": {
    "period": 14,
    "shape": "period"
  }
}

An agent

An agent calls the MCP tool with it:

{
  "name": "study_values",
  "arguments": {
    "bench": "bentrix://lab/\u2026/bench/\u2026",
    "symbol": "EURUSD",
    "timeframe": "H1",
    "limit": 5,
    "study": {
      "applied": "close",
      "convention": "talib",
      "kind": "natr",
      "settings": {
        "period": 14,
        "shape": "period"
      }
    }
  }
}

A program

A program does the same in its language — bench and market as in the built-in indicators guide:

Python

values = client.study.values(bench, market, "H1", {"applied": "close", "convention": "talib", "kind": "natr", "settings": {"period": 14, "shape": "period"}}, limit=5)
print("times:", values["times"])
for line in values["lines"]:
    print("line:", line["line"])
    print("  newest values:", line["values"])

JSJavaScript

const values = await client.study.values({ bench, symbol: market, timeframe: "H1", study: { "applied": "close", "convention": "talib", "kind": "natr", "settings": { "period": 14, "shape": "period" } }, limit: 5 });
console.log("times:", values.times);
for (const line of values.lines) {
  console.log("line:", line.line);
  console.log("  newest values:", line.values);
}

C#C#

var values = await client.Study.Values(bench, market, "H1", new Dictionary<string, object?> { ["applied"] = "close", ["convention"] = "talib", ["kind"] = "natr", ["settings"] = new Dictionary<string, object?> { ["period"] = 14, ["shape"] = "period" } }, limit: 5);
Console.WriteLine($"times: {values!["times"]!}");
foreach (var line in values!["lines"]!.AsArray())
{
    Console.WriteLine($"line: {line!["line"]!}");
    Console.WriteLine($"  newest values: {line!["values"]!}");
}

GOGo

values := must(client.Study.Values(ctx, mcp.StudyValuesArgs{Bench: bench, Symbol: market, Timeframe: "H1", Study: map[string]any{"applied": "close", "convention": "talib", "kind": "natr", "settings": map[string]any{"period": 14, "shape": "period"}}, Limit: mcp.Ptr[int64](5)}))
fmt.Println("times:", at(values, "times"))
for _, line := range at(values, "lines").([]any) {
	fmt.Println("line:", at(line, "line"))
	fmt.Println("  newest values:", at(line, "values"))
}

Java

Object values = client.study.values(new Bentrix.StudyApi.ValuesArgs(bench, market, "H1", obj("applied", "close", "convention", "talib", "kind", "natr", "settings", obj("period", 14, "shape", "period"))).limit(5L));
System.out.println("times:" + " " + at(values, "times"));
for (Object line : (List<Object>) at(values, "lines")) {
    System.out.println("line:" + " " + at(line, "line"));
    System.out.println("  newest values:" + " " + at(line, "values"));
}

C++C++

auto values = client.study.values_(StudyApi::ValuesArgs(bench, market, "H1", Json::Object{{"applied", "close"}, {"convention", "talib"}, {"kind", "natr"}, {"settings", Json::Object{{"period", 14}, {"shape", "period"}}}}).limit(5));
std::cout << "times:" << " " << values["times"].dump() << std::endl;
for (const Json &line : values["lines"].arr()) {
    std::cout << "line:" << " " << line["line"].dump() << std::endl;
    std::cout << "  newest values:" << " " << line["values"].dump() << std::endl;
}

Julia

values = client.study.values(bench, market, "H1", Dict{String,Any}("applied" => "close", "convention" => "talib", "kind" => "natr", "settings" => Dict{String,Any}("period" => 14, "shape" => "period")); limit = 5)
println("times:", " ", values["times"])
for line in values["lines"]
    println("line:", " ", line["line"])
    println("  newest values:", " ", line["values"])
end

RR

values <- client$study$values(bench, market, "H1", list(applied = "close", convention = "talib", kind = "natr", settings = list(period = 14, shape = "period")), limit = 5)
cat("times:", format(values$times), "\n")
for (line in values$lines) {
  cat("line:", format(line$line), "\n")
  cat("  newest values:", format(line$values), "\n")
}

RRust

let values = client.study().values(mcp::StudyValuesArgs::new(bench.clone(), market.clone(), "H1", serde_json::json!({"applied": "close", "convention": "talib", "kind": "natr", "settings": {"period": 14, "shape": "period"}})).limit(5))?;
println!("times: {}", values["times"]);
for line in values["lines"].as_array().into_iter().flatten() {
    println!("line: {}", line["line"]);
    println!("  newest values: {}", line["values"]);
}

Reading the answer

  • times — the candles’ open times, in milliseconds since 1970 (UTC), oldest first.
  • lines — one entry per line, in this order, each with its line name and its values; values[i] belongs to the candle at times[i].
  • The last value is the candle at the clock’s, which may still be forming: it changes until that candle closes, as on the chart. Nothing after the clock is ever computed.
  • null is a candle with no value yet — the warm-up, about 1 × the period at the start of the history.
lineWhat it is
Mainthe indicator's own value

In a strategy

Filed under a key of your choice in a strategy document’s studies — here natr: {"natr": {"applied": "close", "convention": "talib", "kind": "natr", "settings": {"period": 14, "shape": "period"}}} — its rules can name:

WriteWhat it is
natrits main line, as a value in a compare
{"cond": "natr:line.turns_up"}a condition it declares itself
{"cond": "natr:line.turns_down"}a condition it declares itself
{"cond": "natr:line.rising"}a condition it declares itself
{"cond": "natr:line.falling"}a condition it declares itself

19Sources

  1. Wilder, J. Welles Jr. New Concepts in Technical Trading Systems. Trend Research, 1978.

Bentrix 0.1.382Every number, name and default on these pages is read from the application itself.What is comingWhat changed