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 pmachiraju, 11-01-2023, 04:46 AM
      8 responses
      147 views
      0 likes
      Last Post rehmans
      by rehmans
       
      Started by mattbsea, Today, 05:44 PM
      0 responses
      5 views
      0 likes
      Last Post mattbsea  
      Started by RideMe, 04-07-2024, 04:54 PM
      6 responses
      33 views
      0 likes
      Last Post RideMe
      by RideMe
       
      Started by tkaboris, Today, 05:13 PM
      0 responses
      5 views
      0 likes
      Last Post tkaboris  
      Started by GussJ, 03-04-2020, 03:11 PM
      16 responses
      3,282 views
      0 likes
      Last Post Leafcutter  
      Working...
      X