Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Enter position on bar close

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

    Enter position on bar close

    Does NT have a feature like this available? Will it be added?

    #2
    Hello JTizz,

    Thank you for the post.

    You could certainly do that from NinjaScript, generally you would use some kind of price analysis or condition to determine if this bar should have an entry or not. You could also just enter on every bar if that is what you wanted to do.

    NinjaScript strategies and indicators by default will work OnBarClose so you could do this with the default settings. A strategy would be easiest to submit an order from, I noticed you had this in the Indicator forum. Are you asking to submit orders from an indicator specifically? If not we have a video that covers using the strategy builder in the following link if you wanted to create a strategy: https://youtu.be/HCyt90GAs9k


    I look forward to being of further assistance.

    Comment


      #3
      "You could also just enter on every bar if that is what you wanted to do."

      Sorry to bring up this old thread. I am looking for this, Jesse.
      How to make a Strategy with Strategy Builder that enters either Long or Short when enabled, on the close of the current candle? Or even on the open of the next candle?
      What are the conditions you need to enter?
      For example, I am looking to enter a position on the open of the next 2 minute candle.
      Thank you in advance...

      Comment


        #4
        Hello betsuni_123,

        Use the Calculate.OnBarClose setting in the Strategy parameters in the Strategies window.

        This will cause the logic to be evaluated after a bar closes and a new bar opens.

        To submit the order on the first real-time bar, require that Misc > Current state Equals Misc > State > Realtime.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Chelsea, thank you so much! That worked.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          579 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          334 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          101 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          554 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          551 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X