Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Placing BuyStop & SellStop orders

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

    Placing BuyStop & SellStop orders

    I am having a problem placing a BuyStop & SellStop orders at the same time from my strategy, I get the following error "**NT** An Enter() method to submit an entry order at '4/22/2013 7:00:00 AM' has been ignored. Please search on the term 'Internal Order Handling Rules' in the Help Guide for detailed explanation.". I thought I could do this if I have unique entry order names. Below is the code where I am placing the orders.....

    {
    LE1 = EnterLongStopLimit(0, true, qty1, SwHi, SwHi, "Long1");
    if (qty2 != 0)
    LE2 = EnterLongStopLimit(0, true, qty2, SwHi, SwHi, "Long2");
    if (qty3 != 0)
    LE3 = EnterLongStopLimit(0, true, qty3, SwHi, SwHi, "Long3");


    }


    {
    SE1 = EnterShortStopLimit(0, true, qty1, SwLo, SwLo, "Short1");
    if (qty2 != 0)
    SE2 = EnterShortStopLimit(0, true, qty2, SwLo, SwLo, "Short2");
    if (qty3 != 0)
    SE3 = EnterShortStopLimit(0, true, qty3, SwLo, SwLo, "Short3");


    }

    Can you tell me what I have wrong here?

    Thanks
    Last edited by mlarocco; 03-26-2014, 08:21 PM.

    #2
    Hi mlarocco, for the managed mode this would be expected - as you run into the order handling rules here with the opposite order placement - http://www.ninjatrader.com/support/h...d_approach.htm (bottom section here).

    You could for example monitor price and only place one set of entries (and then CancelOrder the other unneeded set) or use the unmanaged mode that would be more flexibile for those approaches since the order handling rules would not trigger.

    Comment


      #3
      Ok, thought it was related to the managed approach. So I can do this with an ATM strategy in the strategy but I ran into another question. Is there a way for me to query the price of the "working" order? Perhaps using a "GetAtmStrategy" command? I haven't been able to figure out how to get that order price.

      Thanks

      Comment


        #4
        Correct, ATM's would work in that sense like unmanaged so without the managed mode order handling rules. You could only query the fill prices, not the working order ones. Would suggest to just store in a variable the price at which you have submitted then so you can reference later.

        Comment


          #5
          AH,good idea.... Thanks!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          649 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          370 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          109 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          574 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          576 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X