Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Order Stuck on Initialized

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

    Order Stuck on Initialized

    Hello,

    I am trying to execute an ATM strategy via an indicator (Have done plenty of times before) but for some reason when I submit the order it just gets stuck on "Initialized"

    I have recreated a simple version of what I am writing and attaching below. I am also attaching my log and trace files as well but didn't see anything odd in those either.

    Let me know what I am doing wrong

    Thanks!
    Attached Files

    #2
    Hello Vikuno1,

    Thank you for your post.

    From the Help Guide on StartAtmStrategy():

    "Critical: The "name" argument on the CreateOrder() method MUST be named "Entry" for the ATM Strategy to be started successfully.​​"



    Try using "Entry" for the name argument in your CreateOrder() call. Are you still seeing the same behavior?

    Comment


      #3
      Originally posted by NinjaTrader_Gaby View Post
      Hello Vikuno1,

      Thank you for your post.

      From the Help Guide on StartAtmStrategy():

      "Critical: The "name" argument on the CreateOrder() method MUST be named "Entry" for the ATM Strategy to be started successfully.​​"



      Try using "Entry" for the name argument in your CreateOrder() call. Are you still seeing the same behavior?
      That did it! Thanks so much!

      Comment


        #4
        [QUOTE=NinjaTrader_Gaby;n1318485]


        Another quick question. So when you submit a sell stopmarket order above market price it rejects.

        If I place it above price from the beginning, meaning the order doesn't exist and I am first submitting it, it rejects fine and I can catch it in the code and execute whatever logic I want.

        But if the order already exists and it is a change being submitted it sends an error and it looks like it rejects but if you look at the log or print what comes out of the OnOrderUpdate function there is no rejection. Is there a work around for this other than checking the price of the submitted change? I am afraid if I have it check the price before then there could be a scenario where it actually goes through but still executes logic like it was on the wrong side of price

        Let me know!

        Thanks

        Comment


          #5
          Hello Vikuno1,

          We kindly ask that you create a new thread for this question as it is unrelated to your initial inquiry. Please note, any time you reply to a thread this will go to the person you are working with. Reply instead of creating a new thread when you would like to continue investigating an existing inquiry.

          Any time you create a new thread, this will create a new inquiry and a new case ticket, which will be answered by the first person available and may not be the person you are previously working with. Create a new thread instead of a reply when you have a new question that is unrelated to a previous inquiry. This will allow us to properly track each issue.

          We appreciate your cooperation in this regard.​

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          581 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          338 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          103 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          554 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          552 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X