Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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

    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.

        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.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by cls71, Today, 04:45 AM
            0 responses
            1 view
            0 likes
            Last Post cls71
            by cls71
             
            Started by mjairg, 07-20-2023, 11:57 PM
            3 responses
            213 views
            1 like
            Last Post PaulMohn  
            Started by TheWhiteDragon, 01-21-2019, 12:44 PM
            4 responses
            544 views
            0 likes
            Last Post PaulMohn  
            Started by GLFX005, Today, 03:23 AM
            0 responses
            3 views
            0 likes
            Last Post GLFX005
            by GLFX005
             
            Started by XXtrader, Yesterday, 11:30 PM
            2 responses
            12 views
            0 likes
            Last Post XXtrader  
            Working...
            X