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 CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      163 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      81 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      125 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      206 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      184 views
      0 likes
      Last Post CarlTrading  
      Working...
      X