Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Calculate on Bar Close and Close[0]

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

    Calculate on Bar Close and Close[0]

    If Calculate on Bar Close is set to false:
    Will Close[0] always be the last tick received of the curent bar?
    If it is, then can I assume that the High and Low for the in progress bar is the high and low up to the current last tick of the bar?

    #2
    Hello sgordet,

    Yes, Close[0] is the last trade when using CalculateOnBarClose = false. High[0] and Low[0] when using COBC false will be the high and low for the bar currently forming.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      If I could also ask you:
      If I have two contracts exiting at different points and I can't use SetStopLoss and Target because my exits are dynamic, do I need to enter each contract separately so I can tie each to ExitLong or Exit short? I also assume that I need two Exits for each, one for the stop and one for the target. If my position goes flat, the other exits are cancelled but how do I cancel the one remaining stop or target from the closed contract when I still have one contract working?
      A corollary question is, "How do I cancel and how do I replace a SetStopLoss/Target or an ExitLong?Short?"

      Comment


        #4
        You can't combine both Set statements with Exit statements. One of these will be ignored according to Internal order handling rules.

        There's also no way to cancel a stop loss order submitted with a set statement.

        Correct, if you want to use Exit statements for your stop and limit orders, will need two statements.

        NinjaTrader order handling will automatically cancel any exit orders (submitted with either exit or set statements) if there is no longer an open position.
        Ryan M.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

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