Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ATR PriorDay

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

    ATR PriorDay

    Hello,

    Is there any function to know the ATR of prior day, similar to PriorDayOHLC()?

    Thanks in advance and regards.

    #2
    Hello soyjesus,

    Thanks for your post.

    You can access any value of bars ago of the ATR. Please see the helpguide here: http://ninjatrader.com/support/helpG..._range_atr.htm

    Comment


      #3
      Thanks for your answer, but my question is about access to ATR from yesterday, for example, while I have a chart in minutes and get it without add a new time-frame.

      Comment


        #4
        Hello soyjesus,

        Thanks for your reply.

        To answer your original question, no there is no method like PriorDayOHLC to obtain the prior day ATR from 1 minute bars. You would need to code something up to accomplish this where you would have a set of dataseries variables where you could save the values of ATR such as ATR High, ATR Low. Through the day the ATR of the current bar can be compared and if exceeds the high or low write the new high or low to the dataseries. Not sure if you want the ATR of the opening bar but you could obtain that by saving the ATR value of that bar when FirstBarOfSession is true. Likewise you could get the previous days last ATR value also when FirsBarOfSession is true by examining the ATR()[1].

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by kinfxhk, 07-14-2026, 09:39 AM
        0 responses
        127 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 10:18 AM
        0 responses
        105 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 09:50 AM
        0 responses
        85 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 07:21 AM
        0 responses
        105 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-11-2026, 02:11 AM
        0 responses
        86 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X