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

Why the new instance of strategy kills live orders, submitted with previous one?

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

    Why the new instance of strategy kills live orders, submitted with previous one?

    Hello.

    I the strategy opens position and submits protective orders.
    I disable strategy, position and both orders are alive.
    The strategy start behaviour WaitUntilFlat.
    I enable the strategy and it cancels both orders, position still alive.

    Why?

    (On startup the strategy don't cancel manually submitted account orders)
    fx.practic
    NinjaTrader Ecosystem Vendor - fx.practic

    #2
    Hello fx.practic,

    Thanks for your post.

    When you are using Wait Until Flat, you are telling NinjaTrader that you want the strategy to start from a flat position. The strategy will cancel open orders that were previously submitted by the strategy, and the strategy will wait until its virtual position (calculated from historical data) is closed out before it can submit a live order.

    From the Help Guide:

    When your strategy starts it will check for any active orders previously generated by the strategy on your account and cancel those first. Should the strategy be unable to cancel and receive confirmation on the cancellation of these orders within 40 seconds the strategy will not start and an alert will be issued.


    In addition to the start behaviors, it is important to understand the difference between strategy and account positions.



    We look forward to being of further assistance.
    JimNinjaTrader Customer Service

    Comment


      #3
      Shame on me.
      I always thought that WaitUntilFlat is simple and clear thing and paid attention to more sophisticated on start behaviours.
      fx.practic
      NinjaTrader Ecosystem Vendor - fx.practic

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Rogers101, 05-05-2024, 11:30 AM
      3 responses
      21 views
      0 likes
      Last Post Rogers101  
      Started by nightstalker, 05-04-2024, 02:05 PM
      5 responses
      53 views
      1 like
      Last Post nightstalker  
      Started by MSerag, Yesterday, 11:52 PM
      0 responses
      9 views
      0 likes
      Last Post MSerag
      by MSerag
       
      Started by DynamicTest, Yesterday, 11:18 PM
      0 responses
      3 views
      0 likes
      Last Post DynamicTest  
      Started by dcriador, Yesterday, 01:43 AM
      3 responses
      21 views
      0 likes
      Last Post dcriador  
      Working...
      X