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 charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        65 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        149 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        162 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        99 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        286 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X