Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Time since condition was met

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

    Time since condition was met

    Any way to use the condition builder to check whether a specific condition has been met at some point over the last X number of days?

    My understanding is that you can easily check for a condition a certain number of days (or bars) ago....but is there something that will check the entire period from a certain number of days (or bars) ago?

    Thanks in advance.

    #2
    Unfortunately not in the wizard, although this is supported programatically.
    RayNinjaTrader Customer Service

    Comment


      #3
      Thanks NinjaTrader_Ray,

      Any way I can request this as a condition builder enhancement....seems like it would be fairly straightforward to and extremely useful to a lot of people/strategies.

      I'll look into the programatic solution.

      Thanks again.

      Comment


        #4
        Thanks for the suggestion.
        RayNinjaTrader Customer Service

        Comment


          #5
          Mro

          Hi 3

          I would suggest firing up the wizard, generate the template, then edit the code.

          Use the MRO function to check if a condition was true within a certain period.

          Read the help file to see how to do it.

          Cheers

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by CarlTrading, 03-31-2026, 09:41 PM
          1 response
          67 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          36 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          60 views
          1 like
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          62 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          53 views
          0 likes
          Last Post CarlTrading  
          Working...
          X