Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Entry condition inconsistency

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

    Entry condition inconsistency

    I have run a strategy with simple entry condition.
    Action, target and stop conditions are set simply. Buy or sell, 4 tick profit, 4 tick stop.

    I run the strategy and get 346 entries, with 40% profitable rate.

    I then reverse the strategy actions for the condition, so that in either case it sells instead of buys, or buys instead of sells.

    The entry condition, target and stop remain exactly the same.

    I run the strategy again. I assume I will see 346 entries again, as the entry condition remains exactly the same, only the “action” has been reversed, and actions don't effect the original condition.

    Only, to my shock, this time I get 340 entries.

    This does not make sense to me, the entry condition is exactly the same, only the action differs…. why would the number of entries change?

    #2
    Hello ScottieDog,

    Thank you for your post.

    Set the Fill Type to Liberal with a Slippage of 0 in the Strategy Analyzer and run both tests again. You should see the same number of trades.

    Due to how the Default Fill Type handles the different order types (Stop Market for Stop Loss vs. Limit for Profit Target) the fills occur at different times.

    You can view the code for Liberal and Default fill types under Documents\NinjaTrader 7\bin\Custom\Type on your PC. The two files are named @DefaultFillType.cs and @LiberalFillType.cs.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    62 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    33 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    44 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    58 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    47 views
    0 likes
    Last Post CarlTrading  
    Working...
    X