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 SalmaTrader, 07-07-2026, 10:26 PM
          0 responses
          45 views
          0 likes
          Last Post SalmaTrader  
          Started by CarlTrading, 07-05-2026, 01:16 PM
          0 responses
          22 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 06-17-2026, 10:32 AM
          0 responses
          14 views
          0 likes
          Last Post CaptainJack  
          Started by kinfxhk, 06-17-2026, 04:15 AM
          0 responses
          20 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Started by kinfxhk, 06-17-2026, 04:06 AM
          0 responses
          22 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Working...
          X