Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

All or None

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

    All or None

    Hello.

    _numOfContracts = 2;
    EnterLongLimit(0, true, _numOfContracts, Close[0], "Long Entry");

    I want either the 2 contracts filled at the limit price or nothing.filled.

    I want to avoid a situation where only 1 contract gets filled at the limit.

    Is there a way to force either an "all or none" condition?

    #2
    Originally posted by rcsingleton View Post
    Hello.

    _numOfContracts = 2;
    EnterLongLimit(0, true, _numOfContracts, Close[0], "Long Entry");

    I want either the 2 contracts filled at the limit price or nothing.filled.

    I want to avoid a situation where only 1 contract gets filled at the limit.

    Is there a way to force either an "all or none" condition?
    That will be a FillOrKill order. NT does not support it, or at least does not list it as an OrderType anymore.

    Comment


      #3
      Hi rcsingleton, thanks for your note.

      That would be called a partial fill in NinjaTrader. You can detect and handle partial fills using on OnOrderUpdate. There is not an order type that would do this automatically. The behavior would need to be customized in OnOrderUpdate.

      Please let me know if I can assist any further.

      Comment


        #4
        Originally posted by NinjaTrader_ChrisL View Post
        Hi rcsingleton, thanks for your note.

        That would be called a partial fill in NinjaTrader. You can detect and handle partial fills using on OnOrderUpdate. There is not an order type that would do this automatically. The behavior would need to be customized in OnOrderUpdate.

        Please let me know if I can assist any further.
        Actually he says that he does not want a partial fill at all; only a complete fill.

        Comment


          #5
          Hello all,

          Unfortunately, NinjaTrdader does not support a KoF or IOC Time in Force. I'll add a feature request to add a KoF option and upvote SFT-1489 which is a request to add IOC Time in Force.

          Please let me know if I can assist any further.

          Comment


            #6
            More info on SFT-1489 here,
            Last edited by bltdavid; 03-31-2020, 12:25 PM. Reason: Fixed link

            Comment


              #7
              Originally posted by bltdavid View Post
              Circular link referencing this very thread? Mistake?

              Comment


                #8
                Oops, yes, it was a mistake ... I fixed the link.

                Thanks!

                Comment

                Latest Posts

                Collapse

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