Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

COBC = false and stops

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

    COBC = false and stops

    I'm thinking about running a strategy with COBC = false.
    What happens if my strategy is in a position and later in the trading session
    my stop and a reversal in strategy position is called upon during the same tick?
    Does the stop happen first and then a new strategy position taken?

    I'm worried about multiple positions being taken.


    Thanks

    #2
    Hello,

    This is a just worry to have.

    This would be known as an over fill.

    Over-Fills is a serious issue that can occur when using complex entry conditions that bracket the market in both directions end up with both entries being filled instead of one being cancelled. Over-Fills can also occur when you place a trade quickly hoping to close a position while a prior order to close the same position already had an in-flight execution. The exact scenarios in which an over-fill can occur is highly dependent on the specific strategy programming. By default, NinjaTrader will protect against over-fills even though you are using the Unmanaged approach by halting the strategy, but should you decide to custom program your own over-fill handling it is up to you to either prevent over-fills from being a possibility in your code or by introducing logic to address over-fills should one occur.


    As a workaround you may want to make sure to cancel your stop before reversing your position. Or code your own ovefill handing in the case this was to occur:



    Let me know if I can be of further assistance.
    BrettNinjaTrader Product Management

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    18 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    120 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    174 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    92 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    134 views
    0 likes
    Last Post cmoran13  
    Working...
    X