Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Builder Entry Orders

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

    Strategy Builder Entry Orders

    Good Morning. Can Strategy Builder Entry Orders be extended past the Current Bar? For example a Stop Limit Order placed above the market will cancel out when the current bar closes. Can Builder keep it alive for one or X more bars? Any sample Builder script? Maybe a feature request?
    How do you subscribe to a topic if posting from a mobile device? Do not see that Subscribe button as on a PC.
    Thanks.

    #2
    Never mind. Have to Post first before subscribing.

    Comment


      #3
      Hello Trader17,

      Thanks for your post.

      You could keep order methods alive using the isLiveUntilCancelled syntax overload.

      For example, EnterLongStopLimit(int barsInProgressIndex, bool isLiveUntilCancelled, int quantity, double limitPrice, double stopPrice, string signalName)

      Note that you would need to unlock the script from the Strategy Builder using the 'Unlock code' button and manually program this yourself. The isLiveUntilCanceled overload cannot be used with the Strategy Builder.

      See the help guide pages below for more information and sample code.

      Keeping Orders Alive: https://ninjatrader.com/support/help...ders_alive.htm
      isLiveUntilCancelled: https://ninjatrader.com/support/help...tlonglimit.htm
      Live Until Canceled Orders: https://ninjatrader.com/support/help...ancelledOrders

      Let us know if we may assist further.

      <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

      Comment


        #4
        Thanks Brandon. So this is a two part method as we need to make sure that it is cancelled at some point. Would be nice if the method had an input to change it to false after X bars. Or basically cancel itself out after X bars have elapsed since activating it.

        Now what if the order is still live after X bars and a reverse signal comes along? Will just the reversal cancel a LiveUntilCancelled Type order automatically or again we need to do that manually?

        Can you put in a feature request for Strategy Builder to be able to do it also at some point in the future?

        Thanks.

        Comment


          #5
          Hello Trader17,

          Thanks for your note.

          "Will just the reversal cancel a LiveUntilCancelled Type order automatically or again we need to do that manually?"

          The order would remain alive and you would need to cancel the order. The CancelOrder() method could be used to cancel a specified order.

          See the reference sample below demonstrating using CancelOrder().

          Using CancelOrder() method to cancel orders: https://ninjatrader.com/support/help...thod_to_ca.htm

          The internal tracking number for your feature request is SFT-3807. Please reference this internal tracking number when contacting Platform Support if you ever have questions regarding this feature request.

          When a feature request is implemented, you'll find a description of the new feature in the release notes:Let us know if we may assist further.
          <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

          Comment


            #6
            Thanks Brandon. Now what happens when you are trying to reverse and have to cancel order on the same bar update? Because we update orders under OnOrderUpdate and below OnExecutionUpdate updates executions. So in real life trading how would you handle something possibly impossible to do on a single bar update? Because order to enter will be updated first before the order or execution update.
            Thanks.

            Comment


              #7
              Hello Trader17,

              Thanks for your note.

              A reverse and a cancel cannot happen at the same time. You would need to wait for the confirmation of the cancellation to occur before submitting an order in the opposite direction.

              Please let us know if we may further assist.
              <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

              Comment


                #8
                Thanks NinjaTrader_BrandonH So is there a way to go around that? Can Nt8 cancel it and then enter on the same bar update?
                Thanks.

                Comment


                  #9
                  Hello Trader17,

                  Thanks for your note.

                  No, there is no workaround for this. You must wait for the cancellation to happen before submitting an order in the opposite direction.

                  Let us know if we may assist further.
                  <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by johnMoss, Yesterday, 08:56 PM
                  2 responses
                  20 views
                  0 likes
                  Last Post johnMoss  
                  Started by michelz, Yesterday, 08:30 AM
                  5 responses
                  44 views
                  0 likes
                  Last Post MiCe1999  
                  Started by ntbone, Yesterday, 01:50 AM
                  13 responses
                  55 views
                  0 likes
                  Last Post MiCe1999  
                  Started by gyilaoliver, Today, 10:30 AM
                  1 response
                  10 views
                  0 likes
                  Last Post NinjaTrader_Gaby  
                  Started by Irukandji, Yesterday, 04:24 PM
                  2 responses
                  27 views
                  0 likes
                  Last Post NinjaTrader_LuisH  
                  Working...
                  X