Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

TP and SL do not close the active trade

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

    TP and SL do not close the active trade


    Hello, I have an issue with my Orders not closing when a TP or SL is hit. This issue cam out of the blue as All last week I had no issue with this. ATM orders work just fine. It's when I manually place a TP SL via LMT or STP orders. I also have trading bots that never had an issue closing trades when TP or SL were hit now all of a sudden they do not close.. I have invoked the help of Grok 3 A.I. I have tried all the trouble shooting tips it recommended but No Dice. I turned on and off the OCO function but still nothing works. Trades open Price will shoot right on past the TP or SL and nothing happens even the limit or Stop order stays in place. Sometimes it just disappears. I'm tempted to do a complete un-install but not sure if that will work since settings tend to stay Any help with this issue is greatly appreciated.


    #2
    Hello NWVW22,

    Thank you for the message.

    1. First, please note that orders are filled at the exchange, not by NinjaTrader; so the platform and/or NinjaTrader Brokerage has no effect over whether your order fills or at which price the order fills at.
    • If using market orders, the amount of slippage you receive on your order will vary depending on market conditions at that time.
    • Limit orders are filled at the exchange based on price availability at that time.

    Limit orders are filled by the simulator based off of several factors to ‘best guess’ what would occur in a live market.
    • The sim engine uses depth of market, approximate position in queue, and volatility to estimate where you would be filled in a live market
    • However, there is no way to exactly replicate what would occur in a live market trade.

    Limit orders are always filled at the limit price or better, so these will inherently have no slippage.

    In short:
    • Market Orders guarantee a Fill, but they do not guarantee a Price.
    • Limit Orders guarantee a Price, but they do not guarantee a fill.

    2. If you would like further help investigating the behavior further, please use the following steps to send your log and trace files to the support team directly from your NinjaTrader Platform so we may investigate this behavior further:
    • Within NinjaTrader, go to the Control Center > Help > Email Support...
    • To: Set this to "Platform Technical Support"
    • Subject: Copy and paste the Forum URL
    • Attach: Attach a file, picture, or compressed file to share multiple files/pictures
    • Body: Answer all of the following questions:
      • What instrument were you trading?
      • Was this a live or simulation order?
      • What time and date did this most recently occur?
      • What Order ID was assigned to this order?
        • If this order was placed today, you can check in the Executions or Orders tab of the Control Center.
        • If this order occurred on a previous date, you may locate the order ID by contacting your broker or by going to New > Trade Performance, generating a Trade Performance report for that date and locating the order in the 'Orders' display.
      • Do you receive an error on screen? Are there errors on the Log tab of the Control Center? If so, what do these errors report?
    • Make sure 'Log and Trace files' is checked to include the requested files
      • Send the email

    Please let us know if we may provide any further assistance.

    Comment


      #3
      Hello thanks for the quick response. I actually just figured it out. I had an indicator I downloaded recently named ATM identifier. It was not loaded on any chart. I checked the log and it said this
      Failed to submit orders: System.NullReferenceException: Object reference not set to an instance of an object. at NinjaTrader.NinjaScript.Indicators.AtmStrategyIden tifier.CheckActiveAtmStrategyOrders() in C:\Users\Nick Jones\Documents\NinjaTrader 8\bin\Custom\Indicators\ATMStrategyIdentifier.cs:l ine 191 at NinjaTrader.NinjaScript.Indicators.AtmStrategyIden tifier.Account_OrderUpdate(Object sender OrderEventArgs e) in C:\Users\Nick Jones\Documents\NinjaTrader 8\bin\Custom\Indicators\ATMStrategyIdentifier.cs:l ine 289 at System.EventHandler`1.Invoke(Object sender TEventArgs e) at NinjaTrader.Cbi.Account.RaiseOrderUpdate(OrderEven tArgs e) at NinjaTrader.Cbi.Account.OrderUpdateCallback(Order order String orderId Double limitPrice Double stopPrice Int32 quantity Double averageFillPrice Int32 filled OrderState orderState DateTime time ErrorCode error String comment DateTime statementDate) at NinjaTrader.Cbi.Simulator.OnTimerSubmitNow(Order order) at NinjaTrader.Cbi.Simulator.SubmitNow() at NinjaTrader.Cbi.Simulator.Submit() at NinjaTrader.Cbi.Account.Submit(IEnumerable`1 orders)
      This indicator was not compiled it had errors. I guess this was messing with my exit orders. ​I don't understand how exactly but deleting that indicator fixed my issue. ​
      Last edited by NWVW22; 02-24-2025, 01:11 PM.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      60 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      39 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      21 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      23 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      51 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X