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 chbruno, Today, 04:10 PM
    0 responses
    1 view
    0 likes
    Last Post chbruno
    by chbruno
     
    Started by josh18955, 03-25-2023, 11:16 AM
    6 responses
    436 views
    0 likes
    Last Post Delerium  
    Started by FAQtrader, Today, 03:35 PM
    0 responses
    6 views
    0 likes
    Last Post FAQtrader  
    Started by rocketman7, Today, 09:41 AM
    5 responses
    19 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by frslvr, 04-11-2024, 07:26 AM
    9 responses
    127 views
    1 like
    Last Post caryc123  
    Working...
    X