Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
      Chris L.NinjaTrader Customer Service

      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.
          Chris L.NinjaTrader Customer Service

          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 Stanfillirenfro, Yesterday, 09:19 AM
                7 responses
                51 views
                0 likes
                Last Post NinjaTrader_Gaby  
                Started by TraderCro, 04-12-2024, 11:36 AM
                4 responses
                69 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Mindset, Yesterday, 02:04 AM
                1 response
                15 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by agclub, 04-21-2024, 08:57 PM
                4 responses
                18 views
                0 likes
                Last Post NinjaTrader_Gaby  
                Started by Irukandji, Today, 04:58 AM
                0 responses
                6 views
                0 likes
                Last Post Irukandji  
                Working...
                X