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

Multi Insruments Multiple Opposing Limit Order Entry not fixed

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

    Multi Insruments Multiple Opposing Limit Order Entry not fixed

    Hi,

    I brought up this issue when NT was in beta 10. Ray said it's a bug that has been fixed in the next version (which is ver.6.5.1000.1). But when i test it, it's still can't send multiple opposing limit orders to broker (all are different instruments). It just only send short limit / long limit order only. I would like to have this bug fixed as soon as possible as i really need it.

    My limit orders code are:

    PHP Code:
    entryOrder_1 EnterShortLimit(0true100000, (GetCurrentBid(0)), "Short 1");
    entryOrder_2 EnterLongLimit(1true100000, (GetCurrentAsk(1)), "Long 2");
    entryOrder_3 EnterLongLimit(2true100000, (GetCurrentAsk(2)), "Long 3"); 

    PS: I am using MBT sending forex type orders.

    Thanks.

    #2
    Hi goover,

    Have you tried using TraceOrders = true? Anything interesting being printed with that set to true?
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Yes, this is the output:

      PHP Code:
      3/19/2008 12:03:00 AM Entered internal PlaceOrder() method at 3/19/2008 12:03:00 AMAction=SellShort OrderType=Limit Quantity=0.01M LimitPrice=155.01 StopPrice=0 SignalName='Short 1' FromEntrySignal=''
      3/19/2008 12:03:00 AM Entered internal PlaceOrder() method at 3/19/2008 12:03:00 AMAction=Buy OrderType=Limit Quantity=0.01M LimitPrice=1.5781 StopPrice=0 SignalName='Long 2' FromEntrySignal=''
      3/19/2008 12:03:00 AM Entered internal PlaceOrder() method at 3/19/2008 12:03:00 AMAction=Buy OrderType=Limit Quantity=0.01M LimitPrice=0.9900 StopPrice=0 SignalName='Long 3' FromEntrySignal='' 


      Attached with the code with i do testing:

      PHP Code:
        private IOrder entryOrder_1 null;
        private 
      IOrder entryOrder_2 null;
        private 
      IOrder entryOrder_3 null;
        
      /// <summary>
              /// This method is used to configure the strategy and is called once before any strategy method is called.
              /// </summary>
              
      protected override void Initialize()
              {
         
      Add("$EURUSD"PeriodType.Minute1);
         
      Add("$USDCHF"PeriodType.Minute1);
         
      TraceOrders true;
         
      CalculateOnBarClose false;
         
      EntriesPerDirection 1
         
      EntryHandling EntryHandling.UniqueEntries;
         
      ExitOnClose false;
         
      TraceOrders true;
              }
              
      /// <summary>
              /// Called on each bar update event (incoming tick)
              /// </summary>
              
      protected override void OnBarUpdate()
              {
         if(
      entryOrder_1 == null && entryOrder_2 == null && entryOrder_3 == null)
         {
          
      entryOrder_1 EnterShortLimit(0true10000, (GetCurrentBid(0)), "Short 1");
          
      entryOrder_2 EnterLongLimit(1true10000, (GetCurrentAsk(1)), "Long 2");
          
      entryOrder_3 EnterLongLimit(2true10000, (GetCurrentAsk(2)), "Long 3");
          
      //entryOrder_1 = EnterShort(0, 10000, "Short 1");
          //entryOrder_2 = EnterLong(1, 10000, "Long 2");
          //entryOrder_3 = EnterLong(2, 10000, "Long 3");
         

       
         
      DrawTextFixed("MO",    "\nP.1.: " Positions[0].MarketPosition.ToString() +
                 
      "\nP.2.: " Positions[1].MarketPosition.ToString() +
                 
      "\nP.3.: " Positions[2].MarketPosition.ToString(), TextPosition.TopLeft);
              } 
      Attached Files

      Comment


        #4
        Thanks for providing the sample. We will investigate this.
        RayNinjaTrader Customer Service

        Comment


          #5
          We believe we have resolved this issue and Josh will be running some internal tests on the changes in the upcoming days, if all is well, we will have it in our next update.
          RayNinjaTrader Customer Service

          Comment


            #6
            Thanks, please keep me informed once this limitation has been removed and will be included in the next version.

            Originally posted by NinjaTrader_Ray View Post
            We believe we have resolved this issue and Josh will be running some internal tests on the changes in the upcoming days, if all is well, we will have it in our next update.

            Comment


              #7
              Hi goover,

              We are still investigating the situation at hand and will keep you posted. Thank you for your patience.
              Josh P.NinjaTrader Customer Service

              Comment


                #8
                Hi goover,

                Thank you for reporting the bug. We will work to rectify the issue and inform you when the fix is ready.
                Josh P.NinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by sgordet, Today, 11:48 AM
                0 responses
                0 views
                0 likes
                Last Post sgordet
                by sgordet
                 
                Started by Trader146, Today, 11:41 AM
                0 responses
                2 views
                0 likes
                Last Post Trader146  
                Started by jpapa, 04-23-2024, 07:22 AM
                2 responses
                16 views
                0 likes
                Last Post rene69851  
                Started by funk10101, Today, 11:35 AM
                0 responses
                1 view
                0 likes
                Last Post funk10101  
                Started by samish18, Today, 11:26 AM
                0 responses
                1 view
                0 likes
                Last Post samish18  
                Working...
                X