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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        64 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        35 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        59 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        62 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        51 views
        0 likes
        Last Post CarlTrading  
        Working...
        X