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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    95 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    140 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    125 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    74 views
    0 likes
    Last Post PaulMohn  
    Working...
    X