Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ATR indicator average type

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

    ATR indicator average type

    Does the NT7 ATR indicator use the exponential moving average to calculate the average?

    Thanks!

    #2
    Hi zeeee,

    No, the ATR is calculated with traditional methods described here - http://stockcharts.com/help/doku.php...e_true_range_a

    Here's the code used by NinjaTrader:

    Code:
    double trueRange = High[0] - Low[0];
    trueRange = Math.Max(Math.Abs(Low[0] - Close[1]), Math.Max(trueRange, Math.Abs(High[0] - Close[1])));
    Value.Set(((Math.Min(CurrentBar + 1, Period) - 1 ) * Value[1] + trueRange) / Math.Min(CurrentBar + 1, Period));
    TimNinjaTrader Customer Service

    Comment


      #3
      Thankyou and my apologies I didn't realise that you could edit the system indicators to see the code!

      Ta
      Last edited by zeeee; 07-21-2010, 12:47 PM.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      583 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      339 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      103 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      554 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      552 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X