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 charlesugo_1, 05-26-2026, 05:03 PM
            0 responses
            60 views
            0 likes
            Last Post charlesugo_1  
            Started by DannyP96, 05-18-2026, 02:38 PM
            1 response
            148 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 05-11-2026, 05:56 AM
            0 responses
            162 views
            0 likes
            Last Post CarlTrading  
            Started by CarlTrading, 05-10-2026, 08:12 PM
            0 responses
            97 views
            0 likes
            Last Post CarlTrading  
            Started by Hwop38, 05-04-2026, 07:02 PM
            0 responses
            284 views
            0 likes
            Last Post Hwop38
            by Hwop38
             
            Working...
            X