Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

How is the Average True Range calculated in Ninjatrader?

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

    How is the Average True Range calculated in Ninjatrader?

    Can someone explain this ?

    If I have ATR with period "1", I get these results for the last 10 days in FESX:

    1. 137
    2. 133
    3. 147
    4. 112
    5. 139
    6. 205
    7. 67
    8. 42
    9. 127
    10. 126

    Alltogether it is 1235.
    Now i want to have a ATR with perod "10".
    Ninjatrader has 141,28 as the result.

    But if I divide 1235 with 10, I get 123,50 as a result.
    With an other chartprogramm I get 123, 50 as a result, too.

    So, how is Ninjatrader ATR calculated to get 141,28 as a result ?


    Best regards,

    bbakee

    #2
    Hello,

    The official calculation of ATR does NOT use solely the averaging period and true ranges of period bars looking back to do the calculation. ATR uses the averaging period of the AVERAGED ATR values for the bars within your period. To help understand this how this works take a look at this link:


    And/or go to Tools>Edit>Indicator>ATR>OK and take a look at the calculation we use, which matches the official calculation.
    DenNinjaTrader Customer Service

    Comment


      #3
      Hi!

      Thanks for your answer.
      So, there are different ways to calculate the ATR and the one that Ninjatrader uses is the official one ?

      Comment


        #4
        Hello,

        ATR by definition is only calculated one way that I am aware of. If you see another calculation that has been published from a significant source, please let us know. If it is not calculated the way we calculate it, it is arguably not ATR.
        DenNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by FrancisMorro, Today, 03:24 AM
        0 responses
        1 view
        0 likes
        Last Post FrancisMorro  
        Started by Segwin, 05-07-2018, 02:15 PM
        10 responses
        1,769 views
        0 likes
        Last Post Leafcutter  
        Started by Rapine Heihei, 04-23-2024, 07:51 PM
        2 responses
        30 views
        0 likes
        Last Post Max238
        by Max238
         
        Started by Shansen, 08-30-2019, 10:18 PM
        24 responses
        943 views
        0 likes
        Last Post spwizard  
        Started by Max238, Today, 01:28 AM
        0 responses
        10 views
        0 likes
        Last Post Max238
        by Max238
         
        Working...
        X