Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

affected order buytocover

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

    affected order buytocover

    Hi today i had a trade on which was in profit the stop was moved to breakeven plus one tick ... when the market turned the buy to cover order was affected which was a stop market order

    the affected order caused 100s of popup errors and froze the platform , it also disabled the strategy but did not exit the position which left me naked in the market with a frozen platform.

    how can i make sure when this happens that the position is closed. i understand fast ,moving markets can skip my stop level but i can not afford to be left naked without a stop in the market.

    Any help is appreciated


    #2
    Hello gbux11,

    Thank you for the note

    If the market moves quickly, setting stops and targets close to each other could cause this error. What you could do is implement error handling logic that will handle rejected orders.

    You need to set RealtimeErrorHandling = RealtimeErrorHandling.IgnoreAllErrors; in your strategy so that NinjaTrader does not disable the strategy and implement error rejection logic. There is a brief example on this help guide page:



    Please also see this help guide page on submitting protective orders in OnOrderUpdate and OnExecuitionUpdate.



    Please let me know if I can assist further.
    Chris L.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by smartromain, Today, 10:50 PM
    0 responses
    2 views
    0 likes
    Last Post smartromain  
    Started by popecapllc, 08-09-2023, 07:42 PM
    10 responses
    1,366 views
    0 likes
    Last Post BartMan
    by BartMan
     
    Started by jbays87, Today, 09:46 PM
    0 responses
    6 views
    0 likes
    Last Post jbays87
    by jbays87
     
    Started by ETFVoyageur, 04-30-2024, 02:04 PM
    11 responses
    101 views
    0 likes
    Last Post ETFVoyageur  
    Started by bubblegum, 03-18-2024, 10:41 AM
    3 responses
    48 views
    0 likes
    Last Post vjsworld  
    Working...
    X