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 jpapa, Today, 07:22 AM
      1 response
      4 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by kevinenergy, 02-17-2023, 12:42 PM
      116 responses
      2,757 views
      1 like
      Last Post kevinenergy  
      Started by franatas, 12-04-2023, 03:43 AM
      7 responses
      106 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by Jltarrau, Today, 05:57 AM
      3 responses
      8 views
      0 likes
      Last Post Jltarrau  
      Started by f.saeidi, Today, 05:56 AM
      2 responses
      8 views
      0 likes
      Last Post NinjaTrader_Erick  
      Working...
      X