• 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

Strange Order Cancellation Behavior

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

  • NinjaTrader_PaulH
    replied
    Hello calebsandfort,

    Thanks for your post.

    From the help guide on managed approach, "By default, orders submitted via Entry() and Exit() methods automatically cancel at the end of a bar if not re-submitted" https://ninjatrader.com/support/help...d_approach.htm

    The advanced order options you mention in your 2nd post will prevent the orders from auto-canceling on the next bar when the bool isLiveUntilCancelled is set to true

    Leave a comment:


  • calebsandfort
    replied
    Since I'm using High Order Resolution needed to use the

    ExitShortLimit(int barsInProgressIndex, bool isLiveUntilCancelled, int quantity, double limitPrice, string signalName, string fromEntrySignal) version of order methods

    and set isLiveUntilCancelled to true.

    Leave a comment:


  • calebsandfort
    started a topic Strange Order Cancellation Behavior

    Strange Order Cancellation Behavior

    Hi

    I am working on a strategy where I scale in at various price levels and have separate profit/stop orders for each entry. The behavior I'm experiencing is that when the first profit/stop is filled, the profit/stop orders for the other entries are cancelled.

    I've attached the strategy and a screenshot of the Strategy Analyzer settings I'm using.

    Relevant code is in the OnExecutionUpdate method.

    ​​​​​​​Any help would be appreciated.
    Attached Files

Latest Posts

Collapse

Topics Statistics Last Post
Started by Trade95, Yesterday, 05:38 PM
1 response
8 views
0 likes
Last Post NinjaTrader_EricB  
Started by Karelgp7, Yesterday, 03:16 PM
1 response
12 views
0 likes
Last Post NinjaTrader_ChelseaB  
Started by orenytz, Yesterday, 01:18 PM
1 response
22 views
0 likes
Last Post NinjaTrader_PaulH  
Started by des.kkeng, Yesterday, 01:10 PM
1 response
13 views
0 likes
Last Post NinjaTrader_PatrickG  
Started by Capablanca, Yesterday, 12:35 PM
1 response
10 views
0 likes
Last Post NinjaTrader_ChelseaB  
Working...
X