Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Stop entering positions at certain time

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

    Stop entering positions at certain time

    I have the timestart and timeend for 930 to 4 so positions can remain open all day but how do I set it to stop entering new positions say at 11am? Or can you direct me to a section of the manual?

    thanks

    #2
    Hello zachj,

    You may use time filters to be able to limit the time of your trading. We have a reference sample that you may view a the following thread that give an example of this.

    JCNinjaTrader Customer Service

    Comment


      #3
      Looked over the example. Ok so when ToTime is used that's just controlling the time new positions can be entered correct? It won't close any current open positions that go beyond ToTime(Time[0]) < 1100

      Comment


        #4
        Actually I guess this is pretty self explanatory, you would set the time period in the entry condition for new positions to be entered. And then set the time in the exit condition for when all trades should be closed by.

        Comment


          #5
          Hello zachj,

          Correct.
          JCNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

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