Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Debug assertion failed

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

    Debug assertion failed

    Here's what happens. I place an entry order via EnterLongStop (NT-00000) and use the SetStopLoss(double currency) and SetProfitTarget(double currency) to generate my exit orders. I imagine these are NT-00001 and NT-00002, respectively.

    The stop loss order is hit, and for a while I keep placing orders that I cancel 2 bars later because they are not filled. The last order I place before it crashes is NT-00013.

    2008-01-26 00:27:20:468 WARNING: Stop/target handling for strategy 'Retracement' set to 'ByStrategyPosition' since currency based stop order was placed.
    2008-01-26 00:27:20:546 ---- DEBUG ASSERTION FAILED ----
    ---- Assert Short Message ----
    Strategy.StrategyBase.PlaceStopTarget1: Execution='NT-00002' Instrument='YM ##-##' Account='Sim101' Name='LongEntry' Exchange=Default Price=14089 Quantity=40 Market position=Long Commission=0 Order='NT-00013' Time='10/10/2007 1:31:40 PM'


    Thanks,
    Brian

    #2
    Are you on latest 6.5.0.7 or 6.0.1000.8? If so, please provide a step by step guide on how to reproduce this problem. Thanks
    DierkNinjaTrader Customer Service

    Comment


      #3
      I figured out how to prevent it. The strategy was calling CancelOrder() twice with the same order id. The CancelOrder() help does not mention this as being a problem, so I assumed it was okay.

      If you'd like I can send you the strategy file with instructions for reproducing the error if it should not be happening anyway.

      Comment


        #4
        Thanks for feedback.

        - which NT version is this?
        - could you provide details on whose to reproduce the issue like:
        * is this backtest or live
        * sample strategy
        * settings for this strategy
        etc.
        DierkNinjaTrader Customer Service

        Comment


          #5
          NT 6.5.0.8 and NT 6.5.06. I sent you an email with a strategy and further details

          Comment


            #6
            Thanks, will look into and let you know.
            DierkNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by jcbinks, Today, 03:32 PM
            2 responses
            15 views
            0 likes
            Last Post jcbinks
            by jcbinks
             
            Started by Stefan Mayer, Today, 03:09 PM
            1 response
            14 views
            0 likes
            Last Post NinjaTrader_Kate  
            Started by M_ichel, Today, 03:18 PM
            1 response
            11 views
            0 likes
            Last Post NinjaTrader_ShawnB  
            Started by ralett, Today, 02:43 PM
            2 responses
            16 views
            0 likes
            Last Post ralett
            by ralett
             
            Started by Nightmaregpu, Today, 02:18 PM
            1 response
            14 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Working...
            X