Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

enterlong on close

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

    enterlong on close

    Hi, How do I enter long on the current bar at close realtime in dayly charts?

    On ProRealTime the code is BUY 1 SHARE AT MARKET thisbaronclose

    #2
    Hello fercho,
    In NinjaTrader there is no bar close events. Formation of a new bar essentially represents that a bar has closed. In case of a daily bars since a new bar is only formed on the next day the close of the bar is not represented the way you want and as such you cannot submit an order "on close of the bar" in a daily chart.

    You can however create a multi-series strategy with the secondarily series being a intraday bars array and submit an order accordingly.

    Please let me know if I can assist you any further.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Joydeep View Post
      Hello fercho,
      In NinjaTrader there is no bar close events. Formation of a new bar essentially represents that a bar has closed. In case of a daily bars since a new bar is only formed on the next day the close of the bar is not represented the way you want and as such you cannot submit an order "on close of the bar" in a daily chart.

      You can however create a multi-series strategy with the secondarily series being a intraday bars array and submit an order accordingly.

      Please let me know if I can assist you any further.
      Could you please post a simple code example for it,
      Thank you in advance

      Comment


        #4
        Please see our reference sample on backtesting with an intrabar granularity:

        You can submit orders to different Bars objects. This allows you the flexibility of submitting orders to different timeframes. Like in live trading, taking entry conditions from a 5min chart means executing your order as soon as possible instead of waiting until the next 5min bar starts building. You can achieve this by
        MatthewNinjaTrader Product Management

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        647 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        369 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        108 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        572 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        573 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X