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 NullPointStrategies, Today, 05:17 AM
      0 responses
      30 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      124 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      64 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      41 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      46 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X