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.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by TraderG23, 12-08-2023, 07:56 AM
    9 responses
    382 views
    1 like
    Last Post Gavini
    by Gavini
     
    Started by oviejo, Today, 12:28 AM
    0 responses
    1 view
    0 likes
    Last Post oviejo
    by oviejo
     
    Started by pechtri, 06-22-2023, 02:31 AM
    10 responses
    125 views
    0 likes
    Last Post Leeroy_Jenkins  
    Started by judysamnt7, 03-13-2023, 09:11 AM
    4 responses
    59 views
    0 likes
    Last Post DynamicTest  
    Started by ScottWalsh, Yesterday, 06:52 PM
    4 responses
    36 views
    0 likes
    Last Post ScottWalsh  
    Working...
    X