Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Why orders partially executed in the last day and how to fix it?

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

    Why orders partially executed in the last day and how to fix it?

    I am typing

    string message = "Please buy " + symbol + " at market";
    Print(Time[0] + " " + message);


    RIGHT BEFORE

    EnterLong();


    And see all related messages in the Output window, but only small portion of the orders/executions/trades in the Strategy results (in Strategy Analyzer).

    I am wondering why it is so and how to fix it?

    #2
    tealover007,

    I am not quite sure what you mean. Can you please clarify what you mean by orders partially executing?
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Josh View Post
      tealover007,

      I am not quite sure what you mean. Can you please clarify what you mean by orders partially executing?
      Here goes explanation:

      I am quite sure that EnterLong() got executed for a specific symbol. (i.e. execution thread passed through this "command" or "statement").

      I can see "confirmation" in my output window because I am printing it.

      However, as a see my "Print" message in the output window, the corresponding order that was supposed to be generated by the EnterLong() for that specific symbol doesn't appear in the Strategy Analyzer grids and not get accounted for in the strategy statistics.

      I wouldn't be surprised so much if let's say all orders doesn't show up in the grids. But I AM surprised because some of them show up and the others - not. (and I see ALL of them in the Output window: all symbols I would like to run EnterLong() for; I am running this command, but it fails!)
      Last edited by tealover007; 02-04-2010, 05:40 PM.

      Comment


        #4
        I am loosing more orders than I thought!!!

        I just calculated how many times EnterLong and EnterShort was called during the strategy backtesting.

        Stratgy analyzer tells me that total orders were 107, but number of times EnterLong and Enter Short was called is 395. I can see about every 4TH trade only!!!

        Where are the other 288. They all different symbols, I just double checked.

        More info:

        missing orders are consistent from run to run. I.e. I see the same sequince every time I backtest:

        1, 4, 6, 9, 10, 12, 16, 19, 25, 29, 31, 32, 35, 36, 38, 39, 40, 42, 43, 44, 47, 48, 49, 50, 51, 52, 54, 55, 56, 58, 61, 64, 65, 66, 67, 70, 71, 72, 73, 74, 75, 77, 79, 80, 81, 82, 84, 85, 87, 88, 91, 92, 93, 94, 95, 96, 97, 99, 100, 104, 105, 106, 107

        ("total # of trades": 67 in the Summary)
        Last edited by tealover007; 02-04-2010, 07:22 PM.

        Comment


          #5
          never mind

          mistery solved.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          105 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          52 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          34 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          38 views
          0 likes
          Last Post TheRealMorford  
          Started by Mindset, 02-28-2026, 06:16 AM
          0 responses
          74 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Working...
          X