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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    64 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    35 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    59 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    62 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    51 views
    0 likes
    Last Post CarlTrading  
    Working...
    X