Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

EnterLongLimit order

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

    EnterLongLimit order

    i have EnterLongLimit order in my strategy which executes outside price range.

    the orders are executed at 1.5723 however the price don't reach it.

    this is the code from barupdate method:

    double priceRange=(10000*(Bollinger(1, 5).Upper[0]-Bollinger(1, 5).Lower[0]));
    EnterLongLimit(Swing(5).SwingHigh[0], n+"");
    SetProfitTarget("", CalculationMode.Ticks, priceRange);
    SetStopLoss("", CalculationMode.Ticks, 3*priceRange, false);

    Last edited by mike8943; 07-04-2008, 01:29 PM.

    #2
    See the section on Historical fill processing.

    RayNinjaTrader Customer Service

    Comment


      #3
      i understand there are two types of the fill for limit orders, liberal and default,
      but i still dont understand why the orders are getting filled OUTSIDE the price range, higher than bars high?

      Comment


        #4
        Limit orders do not guarantee you to be filled within the bar. They do guarantee you your limit price or no fill at all. This is the case because a limit order waits for the limit price and depending on bid/ask pressures you can theoretically get filled above/below any of the last traded prices.
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        572 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        331 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        549 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        550 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X