• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

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.
    https://ninjatrader.com/support/help..._positions.htm

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

    https://ninjatrader.com/support/help..._account_p.htm

    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 marcus2300, Today, 04:20 AM
      0 responses
      4 views
      0 likes
      Last Post marcus2300  
      Started by teafortwo, Today, 12:51 AM
      0 responses
      9 views
      0 likes
      Last Post teafortwo  
      Started by wevermord, Today, 12:17 AM
      0 responses
      1 view
      0 likes
      Last Post wevermord  
      Started by johnnymustard, Yesterday, 11:45 PM
      0 responses
      22 views
      0 likes
      Last Post johnnymustard  
      Started by Mttzern, 02-22-2020, 10:42 AM
      1 response
      27 views
      0 likes
      Last Post NinjaTrader_Marco  
      Working...
      X