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 futtrader, 04-21-2024, 01:50 AM
          6 responses
          57 views
          0 likes
          Last Post futtrader  
          Started by sgordet, Today, 11:48 AM
          0 responses
          2 views
          0 likes
          Last Post sgordet
          by sgordet
           
          Started by Trader146, Today, 11:41 AM
          0 responses
          5 views
          0 likes
          Last Post Trader146  
          Started by jpapa, 04-23-2024, 07:22 AM
          2 responses
          18 views
          0 likes
          Last Post rene69851  
          Started by funk10101, Today, 11:35 AM
          0 responses
          2 views
          0 likes
          Last Post funk10101  
          Working...
          X