Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to trade a strategy between start and end time provided as input paramters

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

    How to trade a strategy between start and end time provided as input paramters

    Hello:
    Using strategy builder, How do I go about running strategy between start and end time provided as input ? I tried using Time variable Runstart/Runend comparing with start and end input but seems not working. An example would be appreciated. Thanks

    #2
    Hi Mtamaku,
    have you tried setting trading hour for your strategy?

    Comment


      #3
      Hello mtamaku,

      Thank you for your post.

      You'd need to compare the current bar time to your start and end times. Here's a link to our help guide that goes over setting up time conditions:

      https://ninjatrader.com/support/help...ateTimeFilters

      I've also attached a simple example Strategy Builder strategy that illustrates this - it will only enter trades between the user input start and end time.

      Please let us know if we may be of further assistance to you.
      Attached Files

      Comment


        #4
        Perfect Kate !! I was using TimeValue vs TimeSeries.. Now it works between the time range provided as input variable. Thank you so much,

        Comment


          #5
          Hello: How do I trade using 24 hrs clock time. Currently it works only for current day, Example, let's say 6PM current day to next day 5PM want to trade. Thanks,

          Comment


            #6
            Hello mtamaku,

            Thank you for your reply.

            You'd set it up somewhat similarly but you'd want to use If Any instead of if all in the time condition. I'm attaching a simple sample strategy that will take orders from 6pm to the following 5pm and when it hits 5 pm will exit any open position and not take any more trades until 6 pm.

            Please let us know if we may be of further assistance to you.
            Attached Files

            Comment


              #7
              Thanks, It works in range now between two timezone.
              Would be nice to have that option (Between similar to greater than, less than, cross over...) in the builder. Thanks,

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              649 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              370 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              109 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              574 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              576 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X