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

Target partly filled, what happens to stop?

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

    Target partly filled, what happens to stop?

    Suppose I have a custom strategy that enters the market and then sets a stoploss and profit target as OCO orders. Suppose also that that the profit target gets partly filled and then the price retraces before the stoploss is even accepted. I know that if the target is fully filled before the stoploss order is accepted then the stoploss gets rejected. But if the target is partly filled, does the stop still get rejected or does the OCO handling at the exchange automatically adjust the number of contracts in the stop so that the order is still accepted, just with fewer contracts?

    #2
    Hello westofpluto,

    Thanks for your post.

    I really could not say without testing, and this kind of scenario would be very difficult to test to see how the stop (or target in a flipped scenario) would be accepted if the OCO pair started filling (but not completely) before the other leg was accepted.

    This may also vary from broker to broker if their order routing servers would handle that case.

    I would suggest asking that specific question to your broker's order desk as they would have more intrinsic knowledge of how orders would be accepted in that scenario. As I understand with NinjaTrader Brokerage, the stop would be accepted as long as margin allows. (This should very much be confirmed with the broker, though.)

    We look forward to assisting.
    Last edited by NinjaTrader_Jim; 08-11-2021, 08:34 AM.
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by ageeholdings, Today, 07:43 AM
    0 responses
    2 views
    0 likes
    Last Post ageeholdings  
    Started by pibrew, Today, 06:37 AM
    0 responses
    4 views
    0 likes
    Last Post pibrew
    by pibrew
     
    Started by rbeckmann05, Yesterday, 06:48 PM
    1 response
    14 views
    0 likes
    Last Post bltdavid  
    Started by llanqui, Today, 03:53 AM
    0 responses
    6 views
    0 likes
    Last Post llanqui
    by llanqui
     
    Started by burtoninlondon, Today, 12:38 AM
    0 responses
    12 views
    0 likes
    Last Post burtoninlondon  
    Working...
    X