Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

What would cause an ExitLong() to happen but not get executed?

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

    What would cause an ExitLong() to happen but not get executed?

    In my backtesting, I am doing a ExitLong() or ExitShort() at 141400 or later...I have a Log() in there and it's getting to that code, but it sometimes doesn't get out?!?

    How is this possible?

    I'm backtesting with Range=2

    I've moved that time back to as early as 140000 and it still sometimes doesn't execute?

    Any ideas?

    #2
    gv1150, please try using the order tracing tool to see what could be happening. In the Initialize() section of code add this line:
    Code:
    TraceOrders = true;
    This links to a post by Josh that tells how to use the tool.
    AustinNinjaTrader Customer Service

    Comment


      #3
      Also, check the LOG tab to see if its being ignored due to some internal order handling rule.
      mrlogik
      NinjaTrader Ecosystem Vendor - Purelogik Trading

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      68 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      38 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      63 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