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 CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      178 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      99 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      131 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      210 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      186 views
      0 likes
      Last Post CarlTrading  
      Working...
      X