The Normalized Average True Range (NATR) is a variation of the Average True Range (ATR) indicator. It expresses the ATR as a percentage of the current price, providing a normalized measure of volatility. This makes the indicator more useful for comparing volatility across different instruments with varying price ranges.
const period = 14; // Lookback period for the NATR calculation
const atr = new I.NATR([period]);
period
(Integer):
period
of 14 calculates the normalized ATR based on the last 14 data points.The NATR
object provides a series of values, where each value represents the normalized ATR as a percentage of the corresponding price point. The initial values may be undefined
if there are insufficient data points for the specified period
.
True Range (TR):
The True Range for each period is the greatest of:
Average True Range (ATR):
ATR is the average of the True Range over the specified period
.
Normalization:
NATR is calculated by dividing the ATR by the current price and expressing it as a percentage
const period = 14; // Calculate NATR over 14 periods
const natr = new I.NATR([period]);
console.log(natr); // Outputs an array containing NATR values
Add NATR as an indicator to visualize normalized volatility on a trading chart:
chart.addIndicator(natr, {
color: "blue",
label: "NATR(14)"
});
NATR can guide decision-making in volatility-sensitive strategies: