Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Using PriorDayOHLC for more than the "prior" day

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

    Using PriorDayOHLC for more than the "prior" day

    Within strategy wizard is it possible to use PriorDayOHLC indicator to reference days further back than just the "prior" day?
    For example a 5 min bar close greater than the daily bar high 5 days ago.

    #2
    Hello dtf139,

    Thank you for your post.

    This can be done by using Bars.BarsSinceSession + 1. Please visit the following link for information on Bars: http://www.ninjatrader.com/support/h...s/nt7/bars.htm

    Please let me know if I may be of further assistance.

    Comment


      #3
      I'm not a programmer so I was looking for something within the strategy wizard or at most editing the existing code within a strategy

      Comment


        #4
        Hello dtf139,

        Thank you for your response.

        While this coudl not be done with the Strategy Wizard, you can unlock the code to add the Bars.BarsSinceSession as the int BarsAgo for the PriorDayOHLC().

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by kevinenergy, 02-17-2023, 12:42 PM
        117 responses
        2,766 views
        1 like
        Last Post jculp
        by jculp
         
        Started by Mongo, Today, 11:05 AM
        5 responses
        15 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by traderqz, Today, 12:06 AM
        8 responses
        16 views
        0 likes
        Last Post traderqz  
        Started by SightCareAubetter, Today, 12:50 PM
        0 responses
        2 views
        0 likes
        Last Post SightCareAubetter  
        Started by Skifree, Today, 03:41 AM
        5 responses
        14 views
        0 likes
        Last Post Skifree
        by Skifree
         
        Working...
        X