Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 llanqui, Today, 10:29 AM
          0 responses
          2 views
          0 likes
          Last Post llanqui
          by llanqui
           
          Started by llanqui, Today, 08:32 AM
          1 response
          8 views
          0 likes
          Last Post llanqui
          by llanqui
           
          Started by lollers, Yesterday, 03:26 AM
          1 response
          53 views
          0 likes
          Last Post lollers
          by lollers
           
          Started by Salahinho99, 05-05-2024, 04:13 AM
          7 responses
          62 views
          0 likes
          Last Post Salahinho99  
          Started by knighty6508, 05-10-2024, 01:20 AM
          4 responses
          30 views
          0 likes
          Last Post knighty6508  
          Working...
          X