Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Unmanaged exit order filling to early

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

    Unmanaged exit order filling to early

    I placed a BuyToCover limit order at 3321.75... it came back with a fill price of 3307.5 well below the limit price.

    Also, it filled in the same bar it was placed.

    Below are some relevant values.

    I'm tired... but shouldn't a Buy Limit order fill at 3321.75 or higher

    execution.Order.Name "Sell Rule1-2 @9/28 02:07 3309.75_loss" string
    execution.Order.OrderType Limit NinjaTrader.Cbi.OrderType
    execution.Order.StopPrice 0 double
    execution.Order.LimitPrice 3321.75 double
    execution.Order.AverageFillPrice 3307.5 double
    execution.Order.Filled 1 int
    execution.Order.OrderAction BuyToCover NinjaTrader.Cbi.OrderAction
    Open[0] 3308.25 double
    High[0] 3308.5 double
    Low[0] 3307 double
    Close[0] 3307.25 double
    execution.Order.IsLiveUntilCancelled true bool



    #2
    Hello BrianARice,

    Is this a real-time order or a historical order? (Which can be filled differently)
    Was this an order filled on the brokerage servers, or a Sim101 filled using NinjaTrader's simulation engine?

    A limit order fills at the specified order price or better. A fill price of 3307.5 would be a better fill price for a buy limit.

    This means that the buy limit order can only fill at 3321.75 or below or the order does not fill and continues working until the price comes down to the price of the buy limit price.

    Try placing a manual limit order on the SuperDOM or ChartTrader to see what prices the order is able to fill at.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by carnitron, Today, 08:42 PM
    0 responses
    5 views
    0 likes
    Last Post carnitron  
    Started by strategist007, Today, 07:51 PM
    0 responses
    6 views
    0 likes
    Last Post strategist007  
    Started by StockTrader88, 03-06-2021, 08:58 AM
    44 responses
    3,974 views
    3 likes
    Last Post jhudas88  
    Started by rbeckmann05, Today, 06:48 PM
    0 responses
    8 views
    0 likes
    Last Post rbeckmann05  
    Started by rhyminkevin, Today, 04:58 PM
    4 responses
    58 views
    0 likes
    Last Post dp8282
    by dp8282
     
    Working...
    X