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 XXtrader, Yesterday, 11:30 PM
    2 responses
    11 views
    0 likes
    Last Post XXtrader  
    Started by Waxavi, Today, 02:10 AM
    0 responses
    6 views
    0 likes
    Last Post Waxavi
    by Waxavi
     
    Started by TradeForge, Today, 02:09 AM
    0 responses
    11 views
    0 likes
    Last Post TradeForge  
    Started by Waxavi, Today, 02:00 AM
    0 responses
    2 views
    0 likes
    Last Post Waxavi
    by Waxavi
     
    Started by elirion, Today, 01:36 AM
    0 responses
    4 views
    0 likes
    Last Post elirion
    by elirion
     
    Working...
    X