Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Stop Loss under OnExecution() vs. OnBarUpdate()

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

    Stop Loss under OnExecution() vs. OnBarUpdate()

    Do I have this correct for stops....When using ExitLongStop under OnExecution() this is setting the stop as soon as the trade is executed. Using SetStopLoss under OnBarUpdate() and say I'm using 5min bars, the stop will not be set until a 5min bar completes(if CalcOnBarClose=True). So using SetStop your stop placement is subject to a potential 5min delay and could even be missed. Therefore setting the stop under OnExecution() would be the better route?

    #2
    Hello,

    Both using ExitLongStop in OnExecution() and SetStopLoss in OnBarUpdate will have the stops applied intrabar.

    The set methods are special calls that allow entry orders to be bracketed right off the bat.


    When dealing with more complex order management the OnExecution() route is going to offer more flexibility.

    Let me know if I can further assist.
    LanceNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    647 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
    573 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X