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 cmoran13, Yesterday, 01:02 PM
            0 responses
            29 views
            0 likes
            Last Post cmoran13  
            Started by PaulMohn, 04-10-2026, 11:11 AM
            0 responses
            21 views
            0 likes
            Last Post PaulMohn  
            Started by CarlTrading, 03-31-2026, 09:41 PM
            1 response
            160 views
            1 like
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            95 views
            1 like
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            148 views
            2 likes
            Last Post CaptainJack  
            Working...
            X