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

Reject Order.

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

    Reject Order.

    Could you please help me with this reject order? What can I do in my strategy to solve this kind of error?

    Time Category Message
    3/26/2020 11:00:03 AM Order Order='d65dc0a22fbe45d5863b48083dfce62c/52857' Name='Profit target' New state='Rejected' Instrument='WIN 04-20' Action='Sell' Limit price=82825 Stop price=0 Quantity=1 Type='Limit' Time in force=DAY Oco='72204:13563764:2' Filled=0 Fill price=0 Error='Order rejected' Native error='Order price is outside the limits 'Ask of 82825.00 violates High Limit of 82320.00''

    #2
    Hello wagner4691,

    Thanks for your post.

    This indicates that the order is placed too far away from the last traded price per the exchange regulations. The order will need to be placed closer to the last traded price.

    To prevent the strategy from being deactivated, you can set the strategy's RealtimeErrorHandling property to IgnoreAllErrors or StopCancelCloseIgnoreRejects. With this property set, you can then trap order rejections in OnOrderUpdate if you would like to have the strategy attempt a different action.

    RealtimeErrorHandling - https://ninjatrader.com/support/help...orhandling.htm

    OnOrderUpdate() - https://ninjatrader.com/support/help...rderupdate.htm

    Please let me know if I can be of further assistance.
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by tsantospinto, 04-12-2024, 07:04 PM
    5 responses
    67 views
    0 likes
    Last Post tsantospinto  
    Started by cre8able, Today, 03:20 PM
    0 responses
    6 views
    0 likes
    Last Post cre8able  
    Started by Fran888, 02-16-2024, 10:48 AM
    3 responses
    47 views
    0 likes
    Last Post Sam2515
    by Sam2515
     
    Started by martin70, 03-24-2023, 04:58 AM
    15 responses
    114 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by The_Sec, Today, 02:29 PM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X