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 Balage0922, Today, 07:38 AM
    0 responses
    3 views
    0 likes
    Last Post Balage0922  
    Started by JoMoon2024, Today, 06:56 AM
    0 responses
    6 views
    0 likes
    Last Post JoMoon2024  
    Started by Haiasi, 04-25-2024, 06:53 PM
    2 responses
    19 views
    0 likes
    Last Post Massinisa  
    Started by Creamers, Today, 05:32 AM
    0 responses
    6 views
    0 likes
    Last Post Creamers  
    Started by Segwin, 05-07-2018, 02:15 PM
    12 responses
    1,786 views
    0 likes
    Last Post Leafcutter  
    Working...
    X