Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

orders got cancelled

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

    orders got cancelled

    when i running my strategy, some orders got automatically canceled without a reason. my condition is when crossabove enter a limit order to get current bid price. may somebody tell me what went wrong? thanks.

    #2
    Hi light7801,

    Orders can automatically expire if the condition no longer exists, and the limit price is not reach after one bar.

    More info at - http://www.ninjatrader-support.com/H...tml?Overview36

    This may or may not have been what happened in your case.

    I may be able to tell you more if...

    1. You send a note to [email protected]

    2. Include "ATTN: TIM" in the subject line

    3. Include your most recent Log and Trace file
    You can find these files at the following locations:
    Start Menu--> My Documents--> NinjaTrader 6.5--> Log--> log.yyyymmdd
    Start Menu--> My Documents--> NinjaTrader 6.5--> Trace--> trace.yyyymmdd

    4. Referrence this post: http://www.ninjatrader-support2.com/...ad.php?t=28620
    Last edited by NinjaTrader_Tim; 04-28-2010, 12:46 PM.
    TimNinjaTrader Customer Service

    Comment


      #3
      hi Tim, for a buy or sell order, i think the condition just exists for one instant once a indicator cross a line. i think a condition does not contain any time frame...it's just a time point. so i don't really understand "Orders can automatically expire if the condition no longer exists"

      also, if the order will get canceled when the limit price is not reached after one bar, can we manually change it to for example 3 bars? or given a period of time before it gets expired? thanks.

      Comment


        #4
        Is this what you need?

        TimeInForce = Cbi.TimeInForce.Gtc;

        Comment


          #5
          Hi light7801,

          For a CrossAbove, the lookBackPeriod period for the condition may no longer exist.

          You can increase the lookBackPeriod, or alternatively, you can use an overload that accepts liveUntilCancelled, for which you would have to manually cancel the order.
          TimNinjaTrader Customer Service

          Comment


            #6
            Hi Tim, how do i increase the lookbackperiod? thanks.

            Comment


              #7
              Hi light7801,

              The lookBackPeriod is one of the parameters in the overload.

              For example....

              CrossAbove(Close, 1000, 3)

              instead of....

              CrossAbove(Close, 1000, 1)


              More info at - http://www.ninjatrader-support.com/H...tml?CrossAbove
              TimNinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              648 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
              109 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              573 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              575 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X