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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    32 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, Yesterday, 02:41 AM
    0 responses
    14 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    23 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    40 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    34 views
    0 likes
    Last Post CarlTrading  
    Working...
    X