Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

EnterShortLimit Duration

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

    EnterShortLimit Duration

    Hi,
    How long is EnterShortLimit/EnterLongLimit good for? Can I limit it to be valid for only a certain time frame? Say 3 bars?
    Thanks ... Ed

    #2
    Hello,

    Thank you for the question,

    If you take a look at the documentation for this located here:


    It shows there is an overload in which controls this

    Code:
    EnterShortLimit(int barsInProgressIndex,[B] bool liveUntilCancelled[/B], int quantity, double limitPrice, string signalName)
    Specifically the LiveUntilCancelled part. If you were to set this to true, it will tell the order to be live until it is canceled. Otherwise an order will last 1 bar unless called again in the next OnBarUpdate.

    There is some additional information on these types of orders located here:


    Please let me know if I may be of additional assistance.

    Comment


      #3
      Jesse, in order for bool liveUntilCancelled to work in the line of code you provided, where in the code and in what format liveUntilCancelled=true should be specified?
      Thank you


      Originally posted by NinjaTrader_Jesse View Post
      Hello,

      Thank you for the question,

      If you take a look at the documentation for this located here:


      It shows there is an overload in which controls this

      Code:
      EnterShortLimit(int barsInProgressIndex,[B] bool liveUntilCancelled[/B], int quantity, double limitPrice, string signalName)
      Specifically the LiveUntilCancelled part. If you were to set this to true, it will tell the order to be live until it is canceled. Otherwise an order will last 1 bar unless called again in the next OnBarUpdate.

      There is some additional information on these types of orders located here:


      Please let me know if I may be of additional assistance.

      Comment


        #4
        Hello,

        I am unsure if I understand your question.

        Are you asking what a bool is or are you asking where you would place the true or false statement in between the ( ) ?

        I look forward to being of further assistance.

        Comment


          #5
          Thats all right, I figured out myself already, thank you.

          Originally posted by NinjaTrader_Jesse View Post
          Hello,

          I am unsure if I understand your question.

          Are you asking what a bool is or are you asking where you would place the true or false statement in between the ( ) ?

          I look forward to being of further assistance.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          638 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          366 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          107 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          569 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          572 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X