Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

isLiveUntilCancelled bool

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

    isLiveUntilCancelled bool

    Hello,

    I'm having my entry limit orders cancelled if not filled on current bar and I have found a lot of posts on isLiveUntilCancelled bool. Please assist a non-coder and point to where that command should be inserted. I understand it should be set to true to prevent order cancellation. Below is my order entry line.. I've unlocked the strategy and ready to change the code. Where and how should isLiveUntilCancelled used?

    EnterShortLimit(Convert.ToInt32(Contracts), (Close[0]+(44*TickSize)), @"short");

    Thank you so much

    #2
    Hello Apollo91,

    Orders submitted without using the isLiveUntilCancelled parameter or are submitted with isLiveUntilCancelled as false are automatically cancelled when the submission bar closes if the order has not filled.
    To keep the order alive, the order method would need to be called on each new bar.
    When isLiveUntilCancelled is supplied as true, the order is not cancelled when the submission bar closes.

    EnterLongLimit(int barsInProgressIndex, bool isLiveUntilCancelled, int quantity, double limitPrice, string signalName)


    EnterShortLimit(0, true, Convert.ToInt32(Contracts), (Close[0]+(44*TickSize)), @"short");
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Worked like a charm, thank you so much ChelseaB!​

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      87 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      128 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      65 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      117 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      67 views
      0 likes
      Last Post PaulMohn  
      Working...
      X