Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by rajendrasubedi2023, Today, 09:50 AM
    2 responses
    12 views
    0 likes
    Last Post rajendrasubedi2023  
    Started by geddyisodin, Today, 05:20 AM
    4 responses
    28 views
    0 likes
    Last Post geddyisodin  
    Started by geotrades1, Today, 10:02 AM
    2 responses
    8 views
    0 likes
    Last Post geotrades1  
    Started by ender_wiggum, Today, 09:50 AM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by bmartz, Today, 09:30 AM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_Erick  
    Working...
    X