Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Order problems

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

    Order problems

    I want to use an strategy with 1 tick triailling stop and when I run it in mkt replay It shows me these two errors.
    Attached Files

    #2
    Hello Caconero,

    Thanks for your post and welcome to the NinjaTrader forums!

    The error messages are advising that the strategy tried to move the stop and that the move of the stop would have resulted in a rejected order because the stop was now above the current price.

    If you are using the SetTrailStop() method then please note the following information in the help guide: "Trail stop orders are modified based on the strategies 'Calculate' settings. In the case of 'Calculate' on bar close, when the bar closes the trail stop order modification will occur using the lowest/highest price of the bar as the reference price to apply the trail offset. Subsequently if the open price of the next bar is significantly higher or lower than this price then there is a possibility that the calculated trail stop price is now an invalid stop price. This is a risk with modifying any stop order closer to the current market price since any modification above/below the current price would be rejected."

    Here is the link to the SetTrailStop(): https://ninjatrader.com/support/help...ttrailstop.htm

    Strategies generally run in the "Managed approach" and there are other considerations you may want to review, here is a link to the help guide: https://ninjatrader.com/support/help...d_approach.htm

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    88 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    135 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    119 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    69 views
    0 likes
    Last Post PaulMohn  
    Working...
    X