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 CarlTrading, 03-31-2026, 09:41 PM
            1 response
            67 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            36 views
            0 likes
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            60 views
            1 like
            Last Post CaptainJack  
            Started by CarlTrading, 03-30-2026, 11:51 AM
            0 responses
            62 views
            0 likes
            Last Post CarlTrading  
            Started by CarlTrading, 03-30-2026, 11:48 AM
            0 responses
            53 views
            0 likes
            Last Post CarlTrading  
            Working...
            X