ATR

Top  Previous  Next

Keyword Description

Average True Range (Wilder)

Cllass

Indicator

Where Legal

Resources

Entry Logic

Exit Logic

Initial Size

Resize

(Pre-Category)

Resize

(Category-Level)

l

l

l

 

 

 

Syntax

ATR[n]

Where n is an integer representing the number of days in the study.

Example

Sample code

COL2 = ATR[15] 'use the original with exponential average

-OR-

COL2 = ATR[1]  'use with simple average

COL3 = SMA[COL2, 15, 0] 

 

ThumbTack white

This indicator was designed and popularized by Welles Wilder and is calculated exactly as he specified. Other software products use their own calculation methods.

True Range is defined as the maximum of:

Today's High - Today's Low

Today's High - Yesterday's Close

Yesterday's Close - Today's Low

The Average True Range function returns the exponential average of the true range over a selected number of days.