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, 03:53 AM
          0 responses
          6 views
          0 likes
          Last Post llanqui
          by llanqui
           
          Started by burtoninlondon, Today, 12:38 AM
          0 responses
          10 views
          0 likes
          Last Post burtoninlondon  
          Started by AaronKoRn, Yesterday, 09:49 PM
          0 responses
          15 views
          0 likes
          Last Post AaronKoRn  
          Started by carnitron, Yesterday, 08:42 PM
          0 responses
          11 views
          0 likes
          Last Post carnitron  
          Started by strategist007, Yesterday, 07:51 PM
          0 responses
          14 views
          0 likes
          Last Post strategist007  
          Working...
          X