Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

how to find our barid against which i enetered order.

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

    how to find our barid against which i enetered order.

    how do i find the barid against which i placed order. i want to cancel it if the orderis not filled after 2 bars.

    if i stop and start a strategy. how do i detect it from my code so that i can reinitialize all my strategy values on restart.
    Last edited by junkone; 05-26-2009, 05:40 AM.

    #2
    You would need to store the barnumber with CurrentBar you placed the order on - http://www.ninjatrader-support.com/H...urrentBar.html

    Then CancelOrder it if CurrentBar is higher than your variable + x


    (sample script for this is also found on this helpguide page)

    Unfortunately there's no method to detect if the strategy is started / stopped.

    Comment


      #3
      do you ahve a eta when the cancel order prob will be resolved.

      Comment


        #4
        Please be more specific as to what you are referring to. Thank you.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          there was a bug quoted earlier that if a order is cancelled, new orders cannot be placed?

          Comment


            #6
            Right. If you cancel an exit order for an entry you will not be able to resubmit that same exit order for that same entry. We have already provided you workarounds for that. Unfortunately there is no ETA I can provide you at this time for when the fix will be available. This is a very sensitive area that has many implications everywhere and every precaution needs to be taken in creating this fix. Thank you for understanding.
            Josh P.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            23 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            20 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            14 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            10 views
            0 likes
            Last Post TheRealMorford  
            Started by Mindset, 02-28-2026, 06:16 AM
            0 responses
            41 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Working...
            X