Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Open Next Bar?

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

    Open Next Bar?

    How does NT call the open of the next bar as in:

    EnterLongStop = (Open next bar + 1 tick, "LongEntry");

    Tradestation allows that coding but will not work with NT.

    Thanks

    #2
    Correct, this is not supported. You would have to go with Close of current bar + 1 tick. We do not allow this since we do not provide access to data into the future.
    RayNinjaTrader Customer Service

    Comment


      #3
      Thank you for your quick response. A little clarification please. If I code close of this bar + 1 tick and CalculateOnBarClose = true then after the current bar closes we get the closing price and one tick will be added to that. Will the entry order be working right away or will that have to wait one more bar?

      GT

      Comment


        #4
        To know that the current bar closed the new bar has already begun. It will be submitted on that bar.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Hi, I think my question is relevant to this...

          I want to backtest a strat and I want the orders to take the close of the period when the signal is generated (+1 tick is ok), how / where do i code it?

          Is it as part of the filltype


          thanks

          Comment


            #6
            Do you mean you want your fill price of any order to be the close of the signal bar plus a 1 tick offset?
            RayNinjaTrader Customer Service

            Comment


              #7
              Hi R

              This is what I am trying to simulate:

              I am watching a screen, 3 min bars, I see the indicator turn 'order' at the period close and I buy at that price, maybe with a tick slip.
              I then exit the order at the close of a 3min bar which signals exit.

              I just created a new fill type, and in some cases (when running the strategy analyzer) the order is not taking place in the bar after the signal...

              Comment


                #8
                You can create a new fill type to your own custom logic but we don't provide any formal support to code this.
                RayNinjaTrader Customer Service

                Comment


                  #9
                  is that the right 'best' way to do it?

                  are there alternatives?

                  p.s sorted out the delay.

                  Comment


                    #10
                    If you always want a fill price to be the close price despite the type of order it is, then yes, you would have to code a custom fill type.
                    RayNinjaTrader Customer Service

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                    0 responses
                    599 views
                    0 likes
                    Last Post Geovanny Suaza  
                    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                    0 responses
                    344 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by Mindset, 02-09-2026, 11:44 AM
                    0 responses
                    103 views
                    0 likes
                    Last Post Mindset
                    by Mindset
                     
                    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                    0 responses
                    558 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by RFrosty, 01-28-2026, 06:49 PM
                    0 responses
                    557 views
                    1 like
                    Last Post RFrosty
                    by RFrosty
                     
                    Working...
                    X