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 thumper57, Yesterday, 04:30 PM
          1 response
          9 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Started by dcriador, Yesterday, 12:06 PM
          1 response
          16 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Started by dcriador, Yesterday, 12:04 PM
          1 response
          18 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Started by cutzpr, Yesterday, 08:54 AM
          1 response
          14 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Started by gcztraders, Yesterday, 03:58 AM
          1 response
          17 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Working...
          X