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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    648 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    369 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    108 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    572 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    574 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X