• 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

Keeping orders open

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

    Keeping orders open

    When my conditions are met I have limit orders to scale in, either short or long. How do I keep those orders on for the next couple bars. The ones that don't get filled are cancelled after the condition bar closes.

    Thanks

    #2
    Hello dedouglas,

    If isLiveUntilCancelled is not used the default value is false.

    When false, orders will be cancelled when the bar closes.

    You can use the isLiveUntilCancelled bool and set this to true, or you can also resubmit the order on the next bar to keep the order alive.

    An example of orders that are kept alive by resubmitting them can be found here.
    https://ninjatrader.com/support/foru...427#post527427

    Below is a link to the help guide on EnterLongLimit() and ExitLongLimit().
    https://ninjatrader.com/support/help...rlonglimit.htm
    https://ninjatrader.com/support/help...tlonglimit.htm
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by jaboo, Today, 11:53 AM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by iq200, Today, 02:32 PM
    0 responses
    2 views
    0 likes
    Last Post iq200
    by iq200
     
    Started by egurenk, Today, 09:49 AM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_Kate  
    Started by teafortwo, Today, 02:05 PM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_Jim  
    Started by bosajin, Today, 02:06 PM
    0 responses
    7 views
    0 likes
    Last Post bosajin
    by bosajin
     
    Working...
    X