• 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 Derjan, Today, 03:09 AM
    0 responses
    2 views
    0 likes
    Last Post Derjan
    by Derjan
     
    Started by exutmlay, Today, 02:38 AM
    0 responses
    1 view
    0 likes
    Last Post exutmlay  
    Started by CDXTrader, Today, 12:29 AM
    0 responses
    3 views
    0 likes
    Last Post CDXTrader  
    Started by TopGun13, Yesterday, 10:35 PM
    0 responses
    4 views
    0 likes
    Last Post TopGun13  
    Started by Audiofail, Yesterday, 05:40 AM
    6 responses
    19 views
    0 likes
    Last Post willwin
    by willwin
     
    Working...
    X