Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Terminated after manually moving stop in SuperDOM

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

    Strategy Terminated after manually moving stop in SuperDOM

    Hi,

    I am using:
    NinjaTrader Version: 8.0.24.3 64-bit

    My strategy uses unmanaged orders.

    In the OnOrderUpdate event I detect manual changes to stops/limits and redraw the stops/limits I draw on the chart and change the strategy current stop loss/limit value. So the strategy can continue and process correctly now knowing the current stop loss/limit.

    This action is now terminating the strategy.

    This code has worked for years (first used in NinjaTrader 7 in 2015).

    Is there a setting in NinjaTrader 8 that will not stop the strategy when an unmanaged order is moved manually in the SuperDOM?

    This happens both in Playback and in a Live market.

    Attached is the end of my strategy log.

    Note that my code is not calling SetState(State.Terminated)


    Thanks in advance,
    AusTrader
    Attached Files

    #2
    Hello AusTrader,

    Thank you for the post.

    From the log provided I can't really tell what was being done at the time to better understand if that would be expected or not. In general it is not expected to manually modify strategy based orders or manipulate strategy positions as that can cause the strategy to disable in some cases. Using an Indicator with the addon framework would be the suggestion in place of using the strategies unmanaged approach if you are trying to incorporate manual modifications.

    If you have a simplified sample script which can demonstrate the problem along with the steps to see the problem we can further investigate if that is expected or not.

    I look forward to being of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    59 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    133 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    73 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