Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ATR with custom input dataseries

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

    ATR with custom input dataseries

    I have a simple question.
    As described here: http://stockcharts.com/school/doku.p...true_range_atr
    The ATR indicator uses various dataseries as input (High, Low, Close, etc)

    What I want to do is to construct an ATR with custom input dataseries but I only just found a contructor that receive only one IDataSeries as input...
    From documentation this is the only two ways to contruct an ATR

    ATR(int period)
    ATR(IDataSeries inputData, int period)

    Im assuming the first one uses the default series High, Low, Close... but what it does the second one ???

    #2
    stormze, yes the first uses High, Low, Close as you can see when you open up the ATR indicator souce code. I'm checking into the second one and will update you later.

    Comment


      #3
      stormze, you would need to code a custom indicator to use custom dataseries for the High, Low, Close.

      Comment


        #4
        ah ok, well may be you need to consider adding a constructor with 3 IDataSeries to builtin ATR indicator.
        And also for any other indicator that uses varios dataseries as input, just a suggestion.
        Thanks for your fast support

        Comment


          #5
          You're welcome - thanks for the suggestion!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by charlesugo_1, 05-26-2026, 05:03 PM
          0 responses
          61 views
          0 likes
          Last Post charlesugo_1  
          Started by DannyP96, 05-18-2026, 02:38 PM
          1 response
          148 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 05-11-2026, 05:56 AM
          0 responses
          162 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 05-10-2026, 08:12 PM
          0 responses
          99 views
          0 likes
          Last Post CarlTrading  
          Started by Hwop38, 05-04-2026, 07:02 PM
          0 responses
          286 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Working...
          X