• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

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 ArthurH, Today, 11:52 AM
    0 responses
    5 views
    0 likes
    Last Post ArthurH
    by ArthurH
     
    Started by Darylbe, Today, 11:51 AM
    0 responses
    3 views
    0 likes
    Last Post Darylbe
    by Darylbe
     
    Started by MavMoney, Yesterday, 07:17 AM
    2 responses
    18 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by ksarin, 02-27-2020, 01:39 PM
    4 responses
    30 views
    0 likes
    Last Post emuns
    by emuns
     
    Started by Janfor, Today, 10:19 AM
    0 responses
    4 views
    0 likes
    Last Post Janfor
    by Janfor
     
    Working...
    X