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 CortexZenUSA, Today, 12:53 AM
    0 responses
    1 view
    0 likes
    Last Post CortexZenUSA  
    Started by CortexZenUSA, Today, 12:46 AM
    0 responses
    1 view
    0 likes
    Last Post CortexZenUSA  
    Started by usazencortex, Today, 12:43 AM
    0 responses
    5 views
    0 likes
    Last Post usazencortex  
    Started by sidlercom80, 10-28-2023, 08:49 AM
    168 responses
    2,265 views
    0 likes
    Last Post sidlercom80  
    Started by Barry Milan, Yesterday, 10:35 PM
    3 responses
    11 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Working...
    X