Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Output when a Stop or Profit target hit

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

    Output when a Stop or Profit target hit

    Is there a way to have an output if your profit target was hit and a different output if your stop is hit on a 5 minute chart, then you can take in consideration of the last trade outcome on your next?
    Basically I want to have a value of lets say 1 if the profit target of the last trade hit or 2 if the stop hit.

    Could this be done in the strategy builder or would it have to be done via ninjascript?

    Thanks!​

    #2
    Hello pattersp,

    An addon could do this if you mean detecting when a manual trade closes and what order that trade was closed with. A strategy wouldn't be able to see any manual trades but it would know when one of its own trades closed and have the event for that .

    For manually placed trades you would need to use an indicator and the addon framework: https://ninjatrader.com/support/help...ount_class.htm

    For a strategy you can use OnExecutionUpdate: https://ninjatrader.com/support/help...xecutionUpdate

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    633 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    364 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    105 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    567 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    568 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X