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 cmoran13, 04-16-2026, 01:02 PM
        0 responses
        36 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        23 views
        0 likes
        Last Post PaulMohn  
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        162 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        96 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        152 views
        2 likes
        Last Post CaptainJack  
        Working...
        X