Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Submitting orders to a diff bar series

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

    Submitting orders to a diff bar series

    Hi,

    Is it possible to submit to another bar series without having to code in all the management for quantities?

    EX: I'm using:

    ExitLongStop(1, false, 0, <price>, <price>,"LS", "L");

    which is the only override I've found that lets you specify a bar series other than 0. The problem is, as far as I can tell, because you are forced to submit the quantity as well, I have to build all the logic around handling split fills etc.

    Is there an easier way?

    Jeremy
    Jeremytang
    NinjaTrader Ecosystem Vendor - Shark Indicators

    #2
    Hi Jeremy,

    Correct - there is only one overload that allows you to specify a specific series to submit orders to. Unfortunately all the fields here must be filled out.

    ExitLongStop(int barsInProgressIndex, bool liveUntilCancelled, int quantity, double stopPrice, string signalName, string fromEntrySignal)
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      I have to build all the logic around handling split fills etc.
      If its for exits you can put quantity = Position.Quantity

      Comment


        #4
        Thanks Baruch, I wish I saw your reply earlier... I'd spent the day unsuccessfully working out split fill logic... and now I know I don't have to!
        Jeremytang
        NinjaTrader Ecosystem Vendor - Shark Indicators

        Comment


          #5
          With the " bool liveUntilCancelled " does false == order dies at completion of the bar ??

          Jon

          Comment


            #6
            Correct Jon, it would expire then on the closing tick of the bar = opening tick of new bar.

            Comment

            Latest Posts

            Collapse

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