Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy not in sync between chart and actual execution

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

    Strategy not in sync between chart and actual execution


    Hello,

    I have a strategy that triggered a stop loss order "HALong_SL [email protected]" mid bar at the right tick, as you can see in the attached snapshot of the chart. However several things are out of sync:
    1. Even though the chart displays the stop order was executed at the right tick right away, I didn't hear the "Order submitted" voice until bar close.
    2. In control center, it shows no execution or order took place, and there are still 29 shares of SPY. How is there 29 shares of SPY in control center, it should be 19 shares to begin with, or 10 shares after profit target, or 0 shares after stop loss?

    The stop loss was placed right after long entry as:
    stopOrder = ExitLongStopMarket(barsInProgressIndex: 0, isLiveUntilCancelled: true, quantity: posQuantity,
    stopPrice: initialStopPr, signalName: stopSignalName, fromEntrySignal: entrySignalName);

    Then it trails up at each bar close as:

    ChangeOrder(order: stopOrder, quantity: posQuantity, limitPrice: 0, stopPrice: stopPr);

    And there've been no errors thrown in the process.

    Can you please help me understand how the chart shows the timing of the orders/executions correctly, but in fact no execution took place, and the alert sound was at bar close ?

    Thanks!


    Click image for larger version

Name:	NinjaSyncIssue.png
Views:	190
Size:	96.0 KB
ID:	1206888

    #2
    I also want to add that the orders were placed in real time. But I've been shutting down and re-opening NinjaTrader, as well as disabling and re-enabling the strategy.

    Comment


      #3
      Please ignore the "order submitted" voice alert at bar close issue, I've figured that out. I still want to know how come the HALong_SL trade shows in chart (and strategy performance), but not in control center (not reflected in positions, orders, execution, or log). Thanks!

      Comment


        #4
        Hello chuggachoo,

        Thank you for your post.

        Since this is in regards to a NinjaScript strategy I've moved your inquiry to a more appropriate forum.

        With things like this we will need to take a look at your log and trace files to see what may have occurred - screenshots after the strategy was stopped and restarted would not accurately reflect what occurred in real time as it would now be iterating over historical data.

        However, we don't want you to post those here on the forums as they may contain personally identifiable information, but rather, send them in to us directly through the platform.

        You can do this by going to the Control Center-> Help-> Email Support. Ensuring 'Log and Trace Files' is checked will include these files. This is checked by default.

        Please reference the following ticket number in the body of the email: 3677123 ATTN Kate W., and include a link to this thread in the body as well.

        Thanks in advance; I look forward to assisting you further.

        Comment


          #5
          Thank you Kate. I appreciate your quick response.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by NullPointStrategies, Yesterday, 05:17 AM
          0 responses
          62 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          134 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          75 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          45 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          50 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X