• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Order not Executing

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

    Order not Executing

    Hey guys, I have an issue with my scaleout order not executing. Its on the Sim101 account.

    I have a strategy where there is a target, then once Close[0] gets above that target I send an order like:

    e=1;
    exitlongMACDScaling = ExitLong(e, "exitlongMACDScaling", "enterLongMACD1a");

    On the first pass, the order executes, then it resets the target to a higher level. Once the higher level hits, the next pass does not execute. Any idea why? There is a single entry, for say 5 contracts with the order name enterLongMACD1a.

    I also have print statements surrounding the above order and they both work fine.

    Thanks,
    EliteTraderNYC

    #2
    Hello EliteTraderNYC,

    Thank you for your note.

    Are you setting exitlongMACDScaling to null when it has filled? If not, please do so and advise if this resolves the matter.
    Code:
    protected override void OnOrderUpdate(IOrder order)
    {
        if (exitlongMACDScaling != null && exitlongMACDScaling == order)
        {
            if (order.OrderState == OrderState.Cancelled)
             {
                  exitlongMACDScaling = null;
             }
        }
    }
    Patrick H.NinjaTrader Customer Service

    Comment


      #3
      Hi sir, unfortunately this did not solve the problem. I also tried Order status filled and that did not work. Any other ideas?

      Comment


        #4
        Hello EliteTraderNYC,

        Thank you for your response.

        Do you have a test script or may I test your full strategy on my end?
        Patrick H.NinjaTrader Customer Service

        Comment


          #5
          Hi, yes what is your email?

          Comment


            #6
            Hell elitetradernyc,

            Thanks for your reply.

            Please email support[at]ninjatrader[dot]com you test script. In the message put ATTN Patrick and include a link to this forum topic.
            BrandonNinjaTrader Customer Service

            Comment


              #7
              Originally posted by elitetradernyc View Post
              Hi sir, unfortunately this did not solve the problem. I also tried Order status filled and that did not work. Any other ideas?
              So you made a single entry order and are trying to scale out in exits?

              Comment


                #8
                Yes thats right, support staff tells me i need to create different order names for the scaleout sells.

                Comment


                  #9
                  Originally posted by elitetradernyc View Post
                  Yes thats right, support staff tells me i need to create different order names for the scaleout sells.
                  No can do, period in NT7. This is a bug that NT has already acknowledged, but will not fix in the current iteration.

                  More information is in this single post: http://www.ninjatrader.com/support/f...d.php?p=371491

                  It is part of two pretty long discussions which show that, in NT7, one cannot scale out without scaling in.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Dagamos, Today, 11:48 AM
                  1 response
                  9 views
                  0 likes
                  Last Post NinjaTrader_RyanS  
                  Started by kantkant2, Yesterday, 03:20 PM
                  4 responses
                  24 views
                  0 likes
                  Last Post eDanny
                  by eDanny
                   
                  Started by EnveousColnago, Today, 11:50 AM
                  1 response
                  6 views
                  0 likes
                  Last Post NinjaTrader_ShawnB  
                  Started by Skyfly1715, 01-20-2020, 03:36 PM
                  4 responses
                  33 views
                  1 like
                  Last Post eDanny
                  by eDanny
                   
                  Started by Cyanez, Yesterday, 05:05 PM
                  1 response
                  10 views
                  0 likes
                  Last Post NinjaTrader_PaulH  
                  Working...
                  X