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 charlesugo_1, 05-26-2026, 05:03 PM
          0 responses
          57 views
          0 likes
          Last Post charlesugo_1  
          Started by DannyP96, 05-18-2026, 02:38 PM
          1 response
          143 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 05-11-2026, 05:56 AM
          0 responses
          161 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 05-10-2026, 08:12 PM
          0 responses
          97 views
          0 likes
          Last Post CarlTrading  
          Started by Hwop38, 05-04-2026, 07:02 PM
          0 responses
          276 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Working...
          X