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 SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        46 views
        0 likes
        Last Post SalmaTrader  
        Started by CarlTrading, 07-05-2026, 01:16 PM
        0 responses
        22 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 06-17-2026, 10:32 AM
        0 responses
        14 views
        0 likes
        Last Post CaptainJack  
        Started by kinfxhk, 06-17-2026, 04:15 AM
        0 responses
        20 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 06-17-2026, 04:06 AM
        0 responses
        22 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X