Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to place All Or Nothing order??

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

    How to place All Or Nothing order??

    Hallo.
    How to place AOL orders. I use EntryLimit orders and sometimes unfilled part is smaller than lot and this is a case of error and strategy termination. This happened in forex if the order quantity is 25 000 then filled part is 20000 so the rest 5000 made error because smallest quantity is 18 000.
    Czarek

    #2
    Hello,

    This is not supported, sorry.
    DenNinjaTrader Customer Service

    Comment


      #3
      How to avoid this problem ?? Strategy sometimes terminate by its self.
      Czarek.

      Comment


        #4
        Which broker are you executing on?

        Comment


          #5
          Interactive Brokers

          Comment


            #6
            Please go to Tools > Options > Strategies > NinjaScript and try setting your OrderHandling option to 'ByStrategyPosition'.

            Please also check this link - http://www.ninjatrader-support.com/H...tegiesTab.html

            Comment


              #7
              Hallo.
              I'm not sure if this could help. OrderHandling option to 'ByStrategyPosition'. Concern Stop los and target orders. However, the problem is that if I want to buy 25000Euro, and I got 20000 filled then if strategy want to buy outstanding 5 000 Euro, I got the Error because smallest amount, I can buy is 18 000. Therefore, trategy close all orders and terminate it self.
              So the error comming from entry order not stop or target order.
              Czarek.

              Comment


                #8
                Hi Czarek, I see - please send your log and trace files to support at ninjatrader dot com Attn Bertrand so I can investigate further. Thanks!

                Comment


                  #9
                  Bertrand.
                  The message I got is: Order Message: Warring: our order is smaller than the minimum order size of 20000 EUR (399) Affected order Buy 5000 Limit.

                  Czarek

                  Comment


                    #10
                    Thanks for the clarification Czarek - I would suggesting to contact your broker on why you get these partial fills - have you tried using a different order type such as a market / stop order?

                    Comment


                      #11
                      Bertrand.
                      I tried market orders but I lost to much on each transaction. Today I talked to TWS team, and I found out that actually the small order (5000EURO) is placed but not in Idea Pro but is transferred to Idea and can get filled. Unfortunately simultaneously the error message is sent by TWS and there is now way to turn it off in TWS. Are any way that Ninja strategy will be ignoring such error messages????
                      Czarek

                      Comment


                        #12
                        Unfortunately not Czarek, if an error is generated the strategy will terminate, unless you look into this option - http://www.ninjatrader-support.com/H...rHandling.html But this is an advanced topic and will require your due diligence in using it. Thanks.

                        Comment


                          #13
                          Bertrand.
                          If I put this code:
                          protected override void Initialize()
                          {
                          RealtimeErrorHandling = RealtimeErrorHandling.TakeNoAction;
                          }
                          will the strategy not take any action for the error messages and keep working ???? I play using my strategy about 4 months live and until now only the partial filled error appeared so I'm not afraid on any other event happened? However, because of this error I lost a very big target.
                          Czarek

                          Comment


                            #14
                            RealtimeErrorHandling turns off all handling. You need to manage everything yourself if you decide to use it.
                            Josh P.NinjaTrader Customer Service

                            Comment


                              #15
                              Is that mean "turns off all error handling" and if I do not put any error handling rules strategy will not take any action if error appeared ?

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                              0 responses
                              574 views
                              0 likes
                              Last Post Geovanny Suaza  
                              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                              0 responses
                              332 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
                              553 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by RFrosty, 01-28-2026, 06:49 PM
                              0 responses
                              551 views
                              1 like
                              Last Post RFrosty
                              by RFrosty
                               
                              Working...
                              X