Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ATR Calculation

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    ATR Calculation

    Hi

    Somehow I am stuck with understanding how the ATR is calculated. I understand the formula and the code, but somehow I get different results.
    I have this data: (Date, Open, High, Low, Close)
    15.10.2012 1428.75 1441.31 1427.24 1440.13 16.10.2012 1440.31 1455.51 1440.31 1454.92 17.10.2012 1454.22 1462.2 1453.35 1460.91 18.10.2012 1460.94 1464.02 1452.63 1457.34
    When I calculate ATR(1) with NT I get these values:
    15.10.2012: 14.07
    16.10.2012: 15.38
    17.10.2012: 8.85
    18.10.2012: 11.39
    They are correct.
    When I calcluate ATR(2) with NT I get these values:
    17.10.2012: 11.57
    18.10.2012: 11.48

    To my understanding this should be the average of 2 ATR. But it is not. The average would be 12.12 and 10.12

    thanks for your feedback
    Do I overlook something

    #2
    Hello Beauregard,
    The SMA is calculated as the (current value + last average value)/2. You can calculating it as current value + previous value)/2.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Joydeep View Post
      Hello Beauregard,
      The SMA is calculated as the (current value + last average value)/2. You can calculating it as current value + previous value)/2.
      Edited 17.11:
      Ok, I see what was misleading to me. The definition in the help section it is written that ATR is a moving average, which I assumed to be a simple moving average. In fact it is an exponential one
      Last edited by Beauregard; 11-17-2012, 08:57 AM.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by sjsj2732, Yesterday, 04:31 AM
      0 responses
      39 views
      0 likes
      Last Post sjsj2732  
      Started by NullPointStrategies, 03-13-2026, 05:17 AM
      0 responses
      290 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      289 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      135 views
      1 like
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      96 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Working...
      X