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 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