Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Detect synchronized Order within NinjaScript

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

    Detect synchronized Order within NinjaScript

    For a Long-order, I have a working StopLoss-Order. After losing connection i restart my strategy (SyncAccountPosition = true). In my chart,i can see the order as "Synchronize". But the StopLoss-Order isn't there.

    Questions:
    1. Why is the sl-order not at the broker?
    2. Must i resubmit the sl-order?
    3. How can i get the IOrder-Reference to a "Synchronize"-marked order?

    I'm working on Sim_Account and use unmanaged approach.

    Thanks for help
    Eddy

    #2
    Hi Eddy, the sync order is submitted outside of the strategy instance so unfortunately there's no IOrder reference available for it, we do have this however as enhancement request on our feedback list.

    Do you restart the strategy manually then or would the connection loss handling take care of the reactivation in this case?

    If you could send us your trace / log files we could review the exact event sequence seen. This could be easily done via Help >> Mail to Support.

    Thanks

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    61 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    148 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    162 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    98 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    286 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X