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 DannyP96, 05-18-2026, 02:38 PM
      1 response
      27 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      117 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      69 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      226 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      417 views
      0 likes
      Last Post CaptainJack  
      Working...
      X