Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ATM Strategy Rejected Stop Order

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

    ATM Strategy Rejected Stop Order

    I've written a strategy that relies on an ATM Strategy Template to manage the trades. I recently received the attached error when running the strategy. It appears that the stop order was rejected, which then caused an issue with the target order. I'm familiar with why the stop order was rejected, but I'm not sure how to work around the issue when it happens in the ATM Strategy. Any advice?
    Attached Files

    #2
    Hello SystemTrading,

    Thank you for your note.

    So I may accurately assist you, please answer all of the following questions:
    • What version of NinjaTrader are you using? Please provide the entire version number. This can be found under Help -> About (Example: 8.?.?.?)
    • Who are you connected to? This is displayed in green in the lower-left corner of the Control Center window.
    • Do you receive an error on the screen? Are there errors on the Log tab of the Control Center? If so, what do these errors report?
      • For example, prior to this error message, were there any messages related to the Stop Loss order? This can be seen for profit targets if the stop loss order tied to the target via OCO is also rejected upon submission.
    I am editing my response; I see you have specifically said it was a rejected stop order. I can see Target1 was rejected as well. What I suspect happened is that the Stop Order was submitted at a price very close to the market, and ended up being on the incorrect side of the market (this can happen in moments of high volatility). Then, since the Stop order was rejected, the OCO ID is no longer valid. The Profit Target order subsequently gets submitted but is also rejected and the OCO ID is no longer valid due to the stop being rejected.

    A way to prevent this from happening is to use wider stops in your ATM strategy template.

    Please let me know if I may be of further assistance.
    Last edited by NinjaTrader_Emily; 08-11-2023, 09:27 AM.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Today, 05:17 AM
    0 responses
    50 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    126 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    69 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    42 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    46 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X