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 DannyP96, 05-18-2026, 02:38 PM
    1 response
    89 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    143 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    83 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    257 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    334 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X