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 rocketman7, Today, 09:41 AM
    4 responses
    15 views
    0 likes
    Last Post rocketman7  
    Started by selu72, Today, 02:01 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_Zachary  
    Started by WHICKED, Today, 02:02 PM
    2 responses
    12 views
    0 likes
    Last Post WHICKED
    by WHICKED
     
    Started by f.saeidi, Today, 12:14 PM
    8 responses
    21 views
    0 likes
    Last Post f.saeidi  
    Started by Mikey_, 03-23-2024, 05:59 PM
    3 responses
    56 views
    0 likes
    Last Post Sam2515
    by Sam2515
     
    Working...
    X