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 carnitron, Today, 08:42 PM
                0 responses
                5 views
                0 likes
                Last Post carnitron  
                Started by strategist007, Today, 07:51 PM
                0 responses
                6 views
                0 likes
                Last Post strategist007  
                Started by StockTrader88, 03-06-2021, 08:58 AM
                44 responses
                3,974 views
                3 likes
                Last Post jhudas88  
                Started by rbeckmann05, Today, 06:48 PM
                0 responses
                8 views
                0 likes
                Last Post rbeckmann05  
                Started by rhyminkevin, Today, 04:58 PM
                4 responses
                58 views
                0 likes
                Last Post dp8282
                by dp8282
                 
                Working...
                X