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 NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      54 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      130 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      72 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      44 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      49 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X