Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Complete lockup, Most Setups Lost, Missed NinjaScript, Missed Trade

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

    Complete lockup, Most Setups Lost, Missed NinjaScript, Missed Trade

    Att: Josh:

    Please see the attached code & screen dumps.
    I ran this backtest and it missed obvious logic.
    See Test9.cs: Notice it is supposed to exit long trades when the LinReg goes against the Long trade.
    See NT-Bug21 for the Setup Screen used with Test9.
    See NT-Bug23 for the LinReg values...today LR[0] = 1116.35, LR[1] = 1116.44
    Obviously, the Long trade should have exited. This screen dump shows the IF statement just before the ExitLong command should have been run.
    I have run this code several times. I used the debugger 5 times to get these screen dumps. As soon as I try to execute this line...the PC & NT totally lock up. If I wait a while, I can get back into the PC, but NT is dead. I cannot restart NT, because Windows says its already running. I had to reboot and run everything again.
    When I try to start NT again, Almost All Workspace settings are gone...No Charts, No default settings, etc. Other times, it seems like only the Charts are gone.
    If I run at full speed, AND it gets past this problem, you can easily see from the attached screen dump NT-Bug 25...that Not Only did the LinReg turn down, but the momentum Also dropped below 0...which is the other part of the logic that was missed.
    Attached Files

    #2
    ChuckAllen,

    Please reattach NT-Bug21. It did not make it through in your email or on this thread either. Thanks.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      ChuckAllen,

      Unfortunately the use of Visual Studio is beyond the scope of what our support can cover. We would not know why the VS environment would cause you to lock up.

      For your actual strategy, you gave your entry orders a signal name of "" which is essentially a blank signal name. Your exit orders are using this signature:
      Code:
      ExitLong(string fromEntrySignal)
      You pass in "ExitLong" for the fromEntrySignal, but the long order is not named this and as such will not make any exit because there is nothing to exit for the particular signal name that was passed in. Please pass in the same name of the exact entry order you want to exit, in this case, a blank string should do it.
      Josh P.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      607 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      353 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      105 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      560 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      561 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X