Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Stop Loss and Target at the same Bar Question

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

    Stop Loss and Target at the same Bar Question

    I was wondering how trades are counted in the strategy analyzer if the target price and the stop loss fall into the same bar. I ran an optimization on stop loss, target price and data series and got results too good to be true without any warning.

    There should be some indication when this situation occurs.

    #2
    Hello,

    Either the stop or the target will be executed depending on where the bar closes and where those orders were working before the bars closes.

    So I may better document your feature request, what type of indication would you like to see in this situation? Is the situation strictly when the stop or target is executed on the same bar?
    MatthewNinjaTrader Product Management

    Comment


      #3
      This situtation was strictly when both orders fell into the same bar, two OCO orders executing at the same bar.

      My preferred solution would be an entry in the summary screen, with a count of OCO conflicts added.

      I added a minute bar for the orders, and the results are now reasonable. (first optimization result was 4 ticks SL, 10 ticks target and 60 min bars)

      Comment


        #4
        Thank you for your suggestion for the improvement of NinjaTrader. I have submitted it into our tracking system with the unique ID # 1985
        MatthewNinjaTrader Product Management

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        20 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        120 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        175 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        92 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        134 views
        0 likes
        Last Post cmoran13  
        Working...
        X