Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Is there a way to test when a trade has just been stopped out?

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

    Is there a way to test when a trade has just been stopped out?

    I'd like to know if theres a function you can use to test whether a trade has just been closed eg either stopped out or profit target.

    #2
    In 6.5 you can monitor the OnOrderUpdate() method. Here is a reference sample that may provide some guidance - http://www.ninjatrader-support.com/v...ead.php?t=5790.

    Alternatively, you can also monitor for profit levels and compare new profit after a trade is closed (Position.MarketPosition can be monitored) to what you would expect if your target or stop was hit.
    RayNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    559 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    324 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    546 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    547 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X